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()
359 if (const auto *Ph = dyn_cast<til::Phi>(E)) in getValueDeclFromSExpr() local
360 return Ph->clangDecl(); in getValueDeclFromSExpr()
747 auto *Ph = dyn_cast<til::Phi>(CurrE); in makePhiNodeVar() local
748 assert(Ph && "Expecting Phi node."); in makePhiNodeVar()
750 Ph->values()[ArgIndex] = E; in makePhiNodeVar()
756 til::Phi *Ph = new (Arena) til::Phi(Arena, NPreds); in makePhiNodeVar() local
757 Ph->values().setValues(NPreds, nullptr); in makePhiNodeVar()
759 Ph->values()[PIdx] = CurrE; in makePhiNodeVar()
761 Ph->values()[ArgIndex] = E; in makePhiNodeVar()
762 Ph->setClangDecl(CurrentLVarMap[i].first); in makePhiNodeVar()
766 Ph->setStatus(til::Phi::PH_Incomplete); in makePhiNodeVar()
769 CurrentArguments.push_back(Ph); in makePhiNodeVar()
770 if (Ph->status() == til::Phi::PH_Incomplete) in makePhiNodeVar()
771 IncompleteArgs.push_back(Ph); in makePhiNodeVar()
774 CurrentLVarMap.elem(i).second = Ph; in makePhiNodeVar()
845 auto *Ph = dyn_cast_or_null<til::Phi>(PE); in mergePhiNodesBackEdge() local
846 assert(Ph && "Expecting Phi Node."); in mergePhiNodesBackEdge()
847 assert(Ph->values()[ArgIndex] == nullptr && "Wrong index for back edge."); in mergePhiNodesBackEdge()
849 til::SExpr *E = lookupVarDecl(Ph->clangDecl()); in mergePhiNodesBackEdge()
851 Ph->values()[ArgIndex] = E; in mergePhiNodesBackEdge()
988 for (auto *Ph : IncompleteArgs) { in exitCFG() local
989 if (Ph->status() == til::Phi::PH_Incomplete) in exitCFG()
990 simplifyIncompleteArg(Ph); in exitCFG()