Lines Matching refs:PHINode
38 SSAUpdater::SSAUpdater(SmallVectorImpl<PHINode*> *NewPHI)
65 static bool IsEquivalentPHI(PHINode *PHI,
100 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) {
138 if (isa<PHINode>(BB->begin())) {
141 PHINode *SomePHI;
143 (SomePHI = dyn_cast<PHINode>(It)); ++It) {
150 PHINode *InsertedPHI = PHINode::Create(ProtoType, PredValues.size(),
181 if (PHINode *UserPN = dyn_cast<PHINode>(User))
198 if (PHINode *UserPN = dyn_cast<PHINode>(User))
212 typedef PHINode PhiT;
220 PHINode *PHI;
224 explicit PHI_iterator(PHINode *P) // begin iterator
226 PHI_iterator(PHINode *P, bool) // end iterator
248 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) {
267 PHINode *PHI = PHINode::Create(Updater->ProtoType, NumPreds,
274 static void AddPHIOperand(PHINode *PHI, Value *Val, BasicBlock *Pred) {
280 static PHINode *InstrIsPHI(Instruction *I) {
281 return dyn_cast<PHINode>(I);
286 static PHINode *ValueIsPHI(Value *Val, SSAUpdater *Updater) {
287 return dyn_cast<PHINode>(Val);
292 static PHINode *ValueIsNewPHI(Value *Val, SSAUpdater *Updater) {
293 PHINode *PHI = ValueIsPHI(Val, Updater);
301 static Value *GetPHIValue(PHINode *PHI) {