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()
376 if (const auto *Ph = dyn_cast<til::Phi>(E)) in getValueDeclFromSExpr() local
377 return Ph->clangDecl(); in getValueDeclFromSExpr()
764 auto *Ph = dyn_cast<til::Phi>(CurrE); in makePhiNodeVar() local
765 assert(Ph && "Expecting Phi node."); in makePhiNodeVar()
767 Ph->values()[ArgIndex] = E; in makePhiNodeVar()
773 til::Phi *Ph = new (Arena) til::Phi(Arena, NPreds); in makePhiNodeVar() local
774 Ph->values().setValues(NPreds, nullptr); in makePhiNodeVar()
776 Ph->values()[PIdx] = CurrE; in makePhiNodeVar()
778 Ph->values()[ArgIndex] = E; in makePhiNodeVar()
779 Ph->setClangDecl(CurrentLVarMap[i].first); in makePhiNodeVar()
783 Ph->setStatus(til::Phi::PH_Incomplete); in makePhiNodeVar()
786 CurrentArguments.push_back(Ph); in makePhiNodeVar()
787 if (Ph->status() == til::Phi::PH_Incomplete) in makePhiNodeVar()
788 IncompleteArgs.push_back(Ph); in makePhiNodeVar()
791 CurrentLVarMap.elem(i).second = Ph; in makePhiNodeVar()
862 auto *Ph = dyn_cast_or_null<til::Phi>(PE); in mergePhiNodesBackEdge() local
863 assert(Ph && "Expecting Phi Node."); in mergePhiNodesBackEdge()
864 assert(Ph->values()[ArgIndex] == nullptr && "Wrong index for back edge."); in mergePhiNodesBackEdge()
866 til::SExpr *E = lookupVarDecl(Ph->clangDecl()); in mergePhiNodesBackEdge()
868 Ph->values()[ArgIndex] = E; in mergePhiNodesBackEdge()
1005 for (auto *Ph : IncompleteArgs) { in exitCFG() local
1006 if (Ph->status() == til::Phi::PH_Incomplete) in exitCFG()
1007 simplifyIncompleteArg(Ph); in exitCFG()