Lines Matching refs:Ph

65   if (const auto *Ph = dyn_cast<til::Phi>(E))  in isIncompletePhi()  local
66 return Ph->status() == til::Phi::PH_Incomplete; in isIncompletePhi()
339 if (const auto *Ph = dyn_cast<til::Phi>(E)) in getValueDeclFromSExpr() local
340 return Ph->clangDecl(); in getValueDeclFromSExpr()
727 auto *Ph = dyn_cast<til::Phi>(CurrE); in makePhiNodeVar() local
728 assert(Ph && "Expecting Phi node."); in makePhiNodeVar()
730 Ph->values()[ArgIndex] = E; in makePhiNodeVar()
736 til::Phi *Ph = new (Arena) til::Phi(Arena, NPreds); in makePhiNodeVar() local
737 Ph->values().setValues(NPreds, nullptr); in makePhiNodeVar()
739 Ph->values()[PIdx] = CurrE; in makePhiNodeVar()
741 Ph->values()[ArgIndex] = E; in makePhiNodeVar()
742 Ph->setClangDecl(CurrentLVarMap[i].first); in makePhiNodeVar()
746 Ph->setStatus(til::Phi::PH_Incomplete); in makePhiNodeVar()
749 CurrentArguments.push_back(Ph); in makePhiNodeVar()
750 if (Ph->status() == til::Phi::PH_Incomplete) in makePhiNodeVar()
751 IncompleteArgs.push_back(Ph); in makePhiNodeVar()
754 CurrentLVarMap.elem(i).second = Ph; in makePhiNodeVar()
825 auto *Ph = dyn_cast_or_null<til::Phi>(PE); in mergePhiNodesBackEdge() local
826 assert(Ph && "Expecting Phi Node."); in mergePhiNodesBackEdge()
827 assert(Ph->values()[ArgIndex] == nullptr && "Wrong index for back edge."); in mergePhiNodesBackEdge()
829 til::SExpr *E = lookupVarDecl(Ph->clangDecl()); in mergePhiNodesBackEdge()
831 Ph->values()[ArgIndex] = E; in mergePhiNodesBackEdge()
968 for (auto *Ph : IncompleteArgs) { in exitCFG() local
969 if (Ph->status() == til::Phi::PH_Incomplete) in exitCFG()
970 simplifyIncompleteArg(Ph); in exitCFG()