Lines Matching defs:MBBI
120 MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI,
125 emitARMRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes,
128 emitT2RegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes,
134 MachineBasicBlock::iterator MBBI = MBB.begin();
148 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc();
164 emitSPUpdate(isARM, MBB, MBBI, dl, TII, -ArgRegsSaveSize,
169 emitSPUpdate(isARM, MBB, MBBI, dl, TII, -NumBytes,
214 if (GPRCS1Size > 0) MBBI++;
225 BuildMI(MBB, MBBI, dl, TII.get(ADDriOpc), FramePtr)
232 if (GPRCS2Size > 0) MBBI++;
247 MBBI++;
250 while (MBBI->getOpcode() == ARM::VSTMDDB_UPD)
251 MBBI++;
256 MBBI = skipAlignedDPRCS2Spills(MBBI, AFI->getNumAlignedDPRCS2Regs());
267 emitSPUpdate(isARM, MBB, MBBI, dl, TII, -NumBytes,
298 AddDefaultCC(AddDefaultPred(BuildMI(MBB, MBBI, dl,
309 AddDefaultPred(BuildMI(MBB, MBBI, dl, TII.get(ARM::tMOVr), ARM::R4)
311 AddDefaultCC(AddDefaultPred(BuildMI(MBB, MBBI, dl,
315 AddDefaultPred(BuildMI(MBB, MBBI, dl, TII.get(ARM::tMOVr), ARM::SP)
329 BuildMI(MBB, MBBI, dl,
334 AddDefaultPred(BuildMI(MBB, MBBI, dl, TII.get(ARM::tMOVr),
348 MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr();
349 assert(MBBI->isReturn() && "Can only insert epilog into returning blocks");
350 unsigned RetOpcode = MBBI->getOpcode();
351 DebugLoc dl = MBBI->getDebugLoc();
373 emitSPUpdate(isARM, MBB, MBBI, dl, TII, NumBytes);
375 // Unwind MBBI to point to first LDR / VLDRD.
377 if (MBBI != MBB.begin()) {
379 --MBBI;
380 while (MBBI != MBB.begin() && isCSRestore(MBBI, TII, CSRegs));
381 if (!isCSRestore(MBBI, TII, CSRegs))
382 ++MBBI;
396 emitARMRegPlusImmediate(MBB, MBBI, dl, ARM::SP, FramePtr, -NumBytes,
408 emitT2RegPlusImmediate(MBB, MBBI, dl, ARM::R4, FramePtr, -NumBytes,
410 MBBI, dl, TII.get(ARM::tMOVr),
417 BuildMI(MBB, MBBI, dl, TII.get(ARM::MOVr), ARM::SP)
420 AddDefaultPred(BuildMI(MBB, MBBI, dl, TII.get(ARM::tMOVr),
425 emitSPUpdate(isARM, MBB, MBBI, dl, TII, NumBytes);
429 MBBI++;
432 while (MBBI->getOpcode() == ARM::VLDMDIA_UPD)
433 MBBI++;
435 if (AFI->getGPRCalleeSavedArea2Size()) MBBI++;
436 if (AFI->getGPRCalleeSavedArea1Size()) MBBI++;
441 MBBI = MBB.getLastNonDebugInstr();
442 MachineOperand &JumpTarget = MBBI->getOperand(0);
449 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, dl, TII.get(TCOpcode));
462 BuildMI(MBB, MBBI, dl,
467 MachineInstr *NewMI = prior(MBBI);
468 for (unsigned i = 1, e = MBBI->getNumOperands(); i != e; ++i)
469 NewMI->addOperand(MBBI->getOperand(i));
472 MBB.erase(MBBI);
473 MBBI = NewMI;
477 emitSPUpdate(isARM, MBB, MBBI, dl, TII, ArgRegsSaveSize);
1033 for (MachineFunction::const_iterator MBBI = MF.begin(), E = MF.end();
1034 MBBI != E; ++MBBI) {
1035 const MachineBasicBlock &MBB = *MBBI;