Lines Matching refs:Ph
63 if (const auto *Ph = dyn_cast<til::Phi>(E)) in isIncompletePhi() local
64 return Ph->status() == til::Phi::PH_Incomplete; in isIncompletePhi()
302 if (auto *Ph = dyn_cast<til::Phi>(E)) in getValueDeclFromSExpr() local
303 return Ph->clangDecl(); in getValueDeclFromSExpr()
677 til::Phi *Ph = dyn_cast<til::Phi>(CurrE); in makePhiNodeVar() local
678 assert(Ph && "Expecting Phi node."); in makePhiNodeVar()
680 Ph->values()[ArgIndex] = E; in makePhiNodeVar()
686 til::Phi *Ph = new (Arena) til::Phi(Arena, NPreds); in makePhiNodeVar() local
687 Ph->values().setValues(NPreds, nullptr); in makePhiNodeVar()
689 Ph->values()[PIdx] = CurrE; in makePhiNodeVar()
691 Ph->values()[ArgIndex] = E; in makePhiNodeVar()
692 Ph->setClangDecl(CurrentLVarMap[i].first); in makePhiNodeVar()
696 Ph->setStatus(til::Phi::PH_Incomplete); in makePhiNodeVar()
700 CurrentArguments.push_back(Ph); in makePhiNodeVar()
701 if (Ph->status() == til::Phi::PH_Incomplete) in makePhiNodeVar()
702 IncompleteArgs.push_back(Ph); in makePhiNodeVar()
705 CurrentLVarMap.elem(i).second = Ph; in makePhiNodeVar()
777 til::Phi *Ph = dyn_cast_or_null<til::Phi>(PE); in mergePhiNodesBackEdge() local
778 assert(Ph && "Expecting Phi Node."); in mergePhiNodesBackEdge()
779 assert(Ph->values()[ArgIndex] == nullptr && "Wrong index for back edge."); in mergePhiNodesBackEdge()
781 til::SExpr *E = lookupVarDecl(Ph->clangDecl()); in mergePhiNodesBackEdge()
783 Ph->values()[ArgIndex] = E; in mergePhiNodesBackEdge()
920 for (auto *Ph : IncompleteArgs) { in exitCFG() local
921 if (Ph->status() == til::Phi::PH_Incomplete) in exitCFG()
922 simplifyIncompleteArg(Ph); in exitCFG()