Lines Matching defs:Phi
56 for (PHINode &Phi : Invoke->getNormalDest()->phis()) {
57 int Idx = Phi.getBasicBlockIndex(OrigBlock);
60 Phi.setIncomingBlock(Idx, MergeBlock);
88 for (PHINode &Phi : Invoke->getUnwindDest()->phis()) {
89 int Idx = Phi.getBasicBlockIndex(OrigBlock);
92 auto *V = Phi.getIncomingValue(Idx);
93 Phi.setIncomingBlock(Idx, ThenBlock);
94 Phi.addIncoming(V, ElseBlock);
118 PHINode *Phi = Builder.CreatePHI(OrigInst->getType(), 0);
121 U->replaceUsesOfWith(OrigInst, Phi);
122 Phi->addIncoming(OrigInst, OrigInst->getParent());
123 Phi->addIncoming(NewInst, NewInst->getParent());