Lines Matching refs:PHINode
38 SSAUpdater::SSAUpdater(SmallVectorImpl<PHINode*> *NewPHI) in SSAUpdater()
65 static bool IsEquivalentPHI(PHINode *PHI, in IsEquivalentPHI()
100 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) { in GetValueInMiddleOfBlock()
138 if (isa<PHINode>(BB->begin())) { in GetValueInMiddleOfBlock()
141 PHINode *SomePHI; in GetValueInMiddleOfBlock()
143 (SomePHI = dyn_cast<PHINode>(It)); ++It) { in GetValueInMiddleOfBlock()
150 PHINode *InsertedPHI = PHINode::Create(ProtoType, PredValues.size(), in GetValueInMiddleOfBlock()
182 if (PHINode *UserPN = dyn_cast<PHINode>(User)) in RewriteUse()
199 if (PHINode *UserPN = dyn_cast<PHINode>(User)) in RewriteUseAfterInsertions()
213 typedef PHINode PhiT;
221 PHINode *PHI;
225 explicit PHI_iterator(PHINode *P) // begin iterator in PHI_iterator()
227 PHI_iterator(PHINode *P, bool) // end iterator in PHI_iterator()
249 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) { in FindPredecessorBlocks()
267 PHINode *PHI = PHINode::Create(Updater->ProtoType, NumPreds, in CreateEmptyPHI()
274 static void AddPHIOperand(PHINode *PHI, Value *Val, BasicBlock *Pred) { in AddPHIOperand()
280 static PHINode *InstrIsPHI(Instruction *I) { in InstrIsPHI()
281 return dyn_cast<PHINode>(I); in InstrIsPHI()
286 static PHINode *ValueIsPHI(Value *Val, SSAUpdater *Updater) { in ValueIsPHI()
287 return dyn_cast<PHINode>(Val); in ValueIsPHI()
292 static PHINode *ValueIsNewPHI(Value *Val, SSAUpdater *Updater) { in ValueIsNewPHI()
293 PHINode *PHI = ValueIsPHI(Val, Updater); in ValueIsNewPHI()
301 static Value *GetPHIValue(PHINode *PHI) { in GetPHIValue()