Lines Matching refs:Ph
64 if (const auto *Ph = dyn_cast<til::Phi>(E)) in isIncompletePhi() local
65 return Ph->status() == til::Phi::PH_Incomplete; in isIncompletePhi()
313 if (const auto *Ph = dyn_cast<til::Phi>(E)) in getValueDeclFromSExpr() local
314 return Ph->clangDecl(); in getValueDeclFromSExpr()
701 auto *Ph = dyn_cast<til::Phi>(CurrE); in makePhiNodeVar() local
702 assert(Ph && "Expecting Phi node."); in makePhiNodeVar()
704 Ph->values()[ArgIndex] = E; in makePhiNodeVar()
710 til::Phi *Ph = new (Arena) til::Phi(Arena, NPreds); in makePhiNodeVar() local
711 Ph->values().setValues(NPreds, nullptr); in makePhiNodeVar()
713 Ph->values()[PIdx] = CurrE; in makePhiNodeVar()
715 Ph->values()[ArgIndex] = E; in makePhiNodeVar()
716 Ph->setClangDecl(CurrentLVarMap[i].first); in makePhiNodeVar()
720 Ph->setStatus(til::Phi::PH_Incomplete); in makePhiNodeVar()
723 CurrentArguments.push_back(Ph); in makePhiNodeVar()
724 if (Ph->status() == til::Phi::PH_Incomplete) in makePhiNodeVar()
725 IncompleteArgs.push_back(Ph); in makePhiNodeVar()
728 CurrentLVarMap.elem(i).second = Ph; in makePhiNodeVar()
799 auto *Ph = dyn_cast_or_null<til::Phi>(PE); in mergePhiNodesBackEdge() local
800 assert(Ph && "Expecting Phi Node."); in mergePhiNodesBackEdge()
801 assert(Ph->values()[ArgIndex] == nullptr && "Wrong index for back edge."); in mergePhiNodesBackEdge()
803 til::SExpr *E = lookupVarDecl(Ph->clangDecl()); in mergePhiNodesBackEdge()
805 Ph->values()[ArgIndex] = E; in mergePhiNodesBackEdge()
942 for (auto *Ph : IncompleteArgs) { in exitCFG() local
943 if (Ph->status() == til::Phi::PH_Incomplete) in exitCFG()
944 simplifyIncompleteArg(Ph); in exitCFG()