Lines Matching refs:MBB
124 void SPUInstrInfo::copyPhysReg(MachineBasicBlock &MBB, in copyPhysReg() argument
134 BuildMI(MBB, I, DL, get(SPU::LRr128), DestReg) in copyPhysReg()
139 SPUInstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB, in storeRegToStackSlot() argument
168 if (MI != MBB.end()) DL = MI->getDebugLoc(); in storeRegToStackSlot()
169 addFrameReference(BuildMI(MBB, MI, DL, get(opc)) in storeRegToStackSlot()
174 SPUInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB, in loadRegFromStackSlot() argument
203 if (MI != MBB.end()) DL = MI->getDebugLoc(); in loadRegFromStackSlot()
204 addFrameReference(BuildMI(MBB, MI, DL, get(opc), DestReg), FrameIdx); in loadRegFromStackSlot()
213 SPUInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, in AnalyzeBranch() argument
218 MachineBasicBlock::iterator I = MBB.end(); in AnalyzeBranch()
219 if (I == MBB.begin()) in AnalyzeBranch()
223 if (I == MBB.begin()) in AnalyzeBranch()
234 if (I == MBB.begin() || !isUnpredicatedTerminator(--I)) { in AnalyzeBranch()
258 if (SecondLastInst && I != MBB.begin() && in AnalyzeBranch()
288 static void removeHBR( MachineBasicBlock &MBB) { in removeHBR() argument
289 for (MachineBasicBlock::iterator I = MBB.begin(); I != MBB.end(); ++I){ in removeHBR()
292 I=MBB.erase(I); in removeHBR()
298 SPUInstrInfo::RemoveBranch(MachineBasicBlock &MBB) const { in RemoveBranch()
299 MachineBasicBlock::iterator I = MBB.end(); in RemoveBranch()
300 removeHBR(MBB); in RemoveBranch()
301 if (I == MBB.begin()) in RemoveBranch()
305 if (I == MBB.begin()) in RemoveBranch()
316 I = MBB.end(); in RemoveBranch()
317 if (I == MBB.begin()) in RemoveBranch()
338 static MachineBasicBlock::iterator findHBRPosition(MachineBasicBlock &MBB) in findHBRPosition() argument
340 MachineBasicBlock::iterator J = MBB.end(); in findHBRPosition()
342 if( J == MBB.begin() ) return J; in findHBRPosition()
349 SPUInstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, in InsertBranch() argument
360 bool haveHBR = MBB.size()>8; in InsertBranch()
362 removeHBR(MBB); in InsertBranch()
363 MCSymbol *branchLabel = MBB.getParent()->getContext().CreateTempSymbol(); in InsertBranch()
366 MIB = BuildMI(&MBB, DL, get(SPU::HBR_LABEL)).addSym(branchLabel); in InsertBranch()
372 MIB = BuildMI(&MBB, DL, get(SPU::BR)); in InsertBranch()
380 MIB = BuildMI( MBB, findHBRPosition(MBB), DL, get(SPU::HBRA)); in InsertBranch()
386 MIB = BuildMI(&MBB, DL, get(Cond[0].getImm())); in InsertBranch()
390 MIB = BuildMI(MBB, findHBRPosition(MBB), DL, get(SPU::HBRA)); in InsertBranch()
400 MIB = BuildMI(&MBB, DL, get(Cond[0].getImm())); in InsertBranch()
401 MachineInstrBuilder MIB2 = BuildMI(&MBB, DL, get(SPU::BR)); in InsertBranch()
408 MIB = BuildMI( MBB, findHBRPosition(MBB), DL, get(SPU::HBRA)); in InsertBranch()