Lines Matching refs:PHINode
37 SSAUpdater::SSAUpdater(SmallVectorImpl<PHINode*> *NewPHI) in SSAUpdater()
64 static bool IsEquivalentPHI(PHINode *PHI, in IsEquivalentPHI()
99 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) { in GetValueInMiddleOfBlock()
137 if (isa<PHINode>(BB->begin())) { in GetValueInMiddleOfBlock()
140 PHINode *SomePHI; in GetValueInMiddleOfBlock()
142 (SomePHI = dyn_cast<PHINode>(It)); ++It) { in GetValueInMiddleOfBlock()
149 PHINode *InsertedPHI = PHINode::Create(ProtoType, PredValues.size(), in GetValueInMiddleOfBlock()
180 if (PHINode *UserPN = dyn_cast<PHINode>(User)) in RewriteUse()
197 if (PHINode *UserPN = dyn_cast<PHINode>(User)) in RewriteUseAfterInsertions()
211 typedef PHINode PhiT;
219 PHINode *PHI;
223 explicit PHI_iterator(PHINode *P) // begin iterator in PHI_iterator()
225 PHI_iterator(PHINode *P, bool) // end iterator in PHI_iterator()
247 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) { in FindPredecessorBlocks()
266 PHINode *PHI = PHINode::Create(Updater->ProtoType, NumPreds, in CreateEmptyPHI()
273 static void AddPHIOperand(PHINode *PHI, Value *Val, BasicBlock *Pred) { in AddPHIOperand()
279 static PHINode *InstrIsPHI(Instruction *I) { in InstrIsPHI()
280 return dyn_cast<PHINode>(I); in InstrIsPHI()
285 static PHINode *ValueIsPHI(Value *Val, SSAUpdater *Updater) { in ValueIsPHI()
286 return dyn_cast<PHINode>(Val); in ValueIsPHI()
291 static PHINode *ValueIsNewPHI(Value *Val, SSAUpdater *Updater) { in ValueIsNewPHI()
292 PHINode *PHI = ValueIsPHI(Val, Updater); in ValueIsNewPHI()
300 static Value *GetPHIValue(PHINode *PHI) { in GetPHIValue()