Lines Matching refs:PHI
188 MachineInstrBuilder InsertedPHI = InsertNewDef(TargetOpcode::PHI, BB, in GetValueInMiddleOfBlock()
252 MachineInstr *PHI; member in llvm::SSAUpdaterTraits::PHI_iterator
257 : PHI(P), idx(1) {} in PHI_iterator()
259 : PHI(P), idx(PHI->getNumOperands()) {} in PHI_iterator()
264 unsigned getIncomingValue() { return PHI->getOperand(idx).getReg(); } in getIncomingValue()
266 return PHI->getOperand(idx+1).getMBB(); in getIncomingBlock()
269 static inline PHI_iterator PHI_begin(PhiT *PHI) { return PHI_iterator(PHI); } in PHI_begin() argument
270 static inline PHI_iterator PHI_end(PhiT *PHI) { in PHI_end() argument
271 return PHI_iterator(PHI, true); in PHI_end()
300 MachineInstr *PHI = InsertNewDef(TargetOpcode::PHI, BB, Loc, in CreateEmptyPHI() local
303 return PHI->getOperand(0).getReg(); in CreateEmptyPHI()
308 static void AddPHIOperand(MachineInstr *PHI, unsigned Val, in AddPHIOperand() argument
310 MachineInstrBuilder(*Pred->getParent(), PHI).addReg(Val).addMBB(Pred); in AddPHIOperand()
330 MachineInstr *PHI = ValueIsPHI(Val, Updater); in ValueIsNewPHI() local
331 if (PHI && PHI->getNumOperands() <= 1) in ValueIsNewPHI()
332 return PHI; in ValueIsNewPHI()
338 static unsigned GetPHIValue(MachineInstr *PHI) { in GetPHIValue() argument
339 return PHI->getOperand(0).getReg(); in GetPHIValue()