Lines Matching full:mbb
116 bool SparcInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB,
123 MachineBasicBlock::iterator I = MBB.end();
124 MachineBasicBlock::iterator UnCondBrIter = MBB.end();
125 while (I != MBB.begin()) {
148 while (llvm::next(I) != MBB.end())
154 if (MBB.isLayoutSuccessor(I->getOperand(0).getMBB())) {
157 I = MBB.end();
158 UnCondBrIter = MBB.end();
174 if (AllowModify && UnCondBrIter != MBB.end() &&
175 MBB.isLayoutSuccessor(TargetBB)) {
194 BuildMI(MBB, UnCondBrIter, MBB.findDebugLoc(I), get(Opcode))
196 BuildMI(MBB, UnCondBrIter, MBB.findDebugLoc(I), get(SP::BA))
198 MBB.addSuccessor(TargetBB);
202 UnCondBrIter = MBB.end();
203 I = MBB.end();
219 SparcInstrInfo::InsertBranch(MachineBasicBlock &MBB,MachineBasicBlock *TBB,
229 BuildMI(&MBB, DL, get(SP::BA)).addMBB(TBB);
237 BuildMI(&MBB, DL, get(SP::BCOND)).addMBB(TBB).addImm(CC);
239 BuildMI(&MBB, DL, get(SP::FBCOND)).addMBB(TBB).addImm(CC);
243 BuildMI(&MBB, DL, get(SP::BA)).addMBB(FBB);
247 unsigned SparcInstrInfo::RemoveBranch(MachineBasicBlock &MBB) const
249 MachineBasicBlock::iterator I = MBB.end();
251 while (I != MBB.begin()) {
263 I = MBB.end();
269 void SparcInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
274 BuildMI(MBB, I, DL, get(SP::ORrr), DestReg).addReg(SP::G0)
277 BuildMI(MBB, I, DL, get(SP::FMOVS), DestReg)
280 BuildMI(MBB, I, DL, get(Subtarget.isV9() ? SP::FMOVD : SP::FpMOVD), DestReg)
287 storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
292 if (I != MBB.end()) DL = I->getDebugLoc();
296 BuildMI(MBB, I, DL, get(SP::STri)).addFrameIndex(FI).addImm(0)
299 BuildMI(MBB, I, DL, get(SP::STFri)).addFrameIndex(FI).addImm(0)
302 BuildMI(MBB, I, DL, get(SP::STDFri)).addFrameIndex(FI).addImm(0)
309 loadRegFromStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
314 if (I != MBB.end()) DL = I->getDebugLoc();
317 BuildMI(MBB, I, DL, get(SP::LDri), DestReg).addFrameIndex(FI).addImm(0);
319 BuildMI(MBB, I, DL, get(SP::LDFri), DestReg).addFrameIndex(FI).addImm(0);
321 BuildMI(MBB, I, DL, get(SP::LDDFri), DestReg).addFrameIndex(FI).addImm(0);
333 // Insert the set of GlobalBaseReg into the first MBB of the function