Lines Matching refs:PHI
361 PHINode *PHI = dyn_cast<PHINode>(&I); in getCallRetPHINode() local
362 if (!PHI) in getCallRetPHINode()
364 int IX = PHI->getBasicBlockIndex(From); in getCallRetPHINode()
367 Value *V = PHI->getIncomingValue(IX); in getCallRetPHINode()
385 PHINode *PHI = dyn_cast<PHINode>(&I); in fixupPHINodeForUnwind() local
386 if (!PHI) in fixupPHINodeForUnwind()
388 int IX = PHI->getBasicBlockIndex(OrigBB); in fixupPHINodeForUnwind()
391 Value *V = PHI->getIncomingValue(IX); in fixupPHINodeForUnwind()
392 PHI->addIncoming(V, IndirectCallBB); in fixupPHINodeForUnwind()
393 PHI->setIncomingBlock(IX, DirectCallBB); in fixupPHINodeForUnwind()
407 PHINode *PHI = dyn_cast<PHINode>(&I); in fixupPHINodeForNormalDest() local
408 if (!PHI) in fixupPHINodeForNormalDest()
410 int IX = PHI->getBasicBlockIndex(OrigBB); in fixupPHINodeForNormalDest()
413 Value *V = PHI->getIncomingValue(IX); in fixupPHINodeForNormalDest()
415 PHI->setIncomingBlock(IX, IndirectCallBB); in fixupPHINodeForNormalDest()
416 PHI->addIncoming(NewInst, OrigBB); in fixupPHINodeForNormalDest()
419 PHI->addIncoming(V, IndirectCallBB); in fixupPHINodeForNormalDest()