Lines Matching refs:MBBI
200 MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, in spillCalleeSavedRegisters() argument
218 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, DL, TII->get(SystemZ::STMG)); in spillCalleeSavedRegisters()
246 TII->storeRegToStackSlot(MBB, MBBI, Reg, true, CSI[I].getFrameIdx(), in spillCalleeSavedRegisters()
251 TII->storeRegToStackSlot(MBB, MBBI, Reg, true, CSI[I].getFrameIdx(), in spillCalleeSavedRegisters()
260 MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, in restoreCalleeSavedRegisters() argument
269 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in restoreCalleeSavedRegisters()
275 TII->loadRegFromStackSlot(MBB, MBBI, Reg, CSI[I].getFrameIdx(), in restoreCalleeSavedRegisters()
278 TII->loadRegFromStackSlot(MBB, MBBI, Reg, CSI[I].getFrameIdx(), in restoreCalleeSavedRegisters()
293 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, DL, TII->get(SystemZ::LMG)); in restoreCalleeSavedRegisters()
361 MachineBasicBlock::iterator &MBBI, const DebugLoc &DL, in emitIncrement() argument
379 MachineInstr *MI = BuildMI(MBB, MBBI, DL, TII->get(Opcode), Reg) in emitIncrement()
389 MachineBasicBlock::iterator MBBI, in buildCFAOffs() argument
394 BuildMI(MBB, MBBI, DL, ZII->get(TargetOpcode::CFI_INSTRUCTION)) in buildCFAOffs()
400 MachineBasicBlock::iterator MBBI, in buildDefCFAReg() argument
409 BuildMI(MBB, MBBI, DL, ZII->get(TargetOpcode::CFI_INSTRUCTION)) in buildDefCFAReg()
421 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
453 if (MBBI != MBB.end() && MBBI->getOpcode() == SystemZ::STMG) in emitPrologue()
454 ++MBBI; in emitPrologue()
466 BuildMI(MBB, MBBI, DL, ZII->get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
497 BuildMI(MBB, MBBI, DL, ZII->get(SystemZ::LGR)) in emitPrologue()
511 BuildMI(MBB, MBBI, DL, ZII->get(SystemZ::PROBED_STACKALLOC)) in emitPrologue()
515 emitIncrement(MBB, MBBI, DL, SystemZ::R15D, Delta, ZII); in emitPrologue()
516 buildCFAOffs(MBB, MBBI, DL, SPOffsetFromCFA + Delta, ZII); in emitPrologue()
523 BuildMI(MBB, MBBI, DL, ZII->get(SystemZ::STG)) in emitPrologue()
531 BuildMI(MBB, MBBI, DL, ZII->get(SystemZ::LGR), SystemZ::R11D) in emitPrologue()
535 buildDefCFAReg(MBB, MBBI, DL, SystemZ::R11D, ZII); in emitPrologue()
549 if (MBBI != MBB.end() && in emitPrologue()
550 (MBBI->getOpcode() == SystemZ::STD || in emitPrologue()
551 MBBI->getOpcode() == SystemZ::STDY)) in emitPrologue()
552 ++MBBI; in emitPrologue()
556 if (MBBI != MBB.end() && in emitPrologue()
557 MBBI->getOpcode() == SystemZ::VST) in emitPrologue()
558 ++MBBI; in emitPrologue()
578 BuildMI(MBB, MBBI, DL, ZII->get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
585 MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr(); in emitEpilogue() local
596 assert(MBBI->isReturn() && "Can only insert epilogue into returning blocks"); in emitEpilogue()
600 --MBBI; in emitEpilogue()
601 unsigned Opcode = MBBI->getOpcode(); in emitEpilogue()
606 DebugLoc DL = MBBI->getDebugLoc(); in emitEpilogue()
607 uint64_t Offset = StackSize + MBBI->getOperand(AddrOpNo + 1).getImm(); in emitEpilogue()
614 emitIncrement(MBB, MBBI, DL, MBBI->getOperand(AddrOpNo).getReg(), in emitEpilogue()
621 MBBI->setDesc(ZII->get(NewOpcode)); in emitEpilogue()
622 MBBI->getOperand(AddrOpNo + 1).ChangeToImmediate(Offset); in emitEpilogue()
624 DebugLoc DL = MBBI->getDebugLoc(); in emitEpilogue()
625 emitIncrement(MBB, MBBI, DL, SystemZ::R15D, StackSize, ZII); in emitEpilogue()
650 MachineBasicBlock::iterator MBBI = StackAllocMI; in inlineStackProbe() local
674 allocateAndProbe(*MBB, MBBI, ProbeSize, true/*EmitCFI*/); in inlineStackProbe()
680 BuildMI(*MBB, MBBI, DL, ZII->get(SystemZ::LGR), SystemZ::R1D) in inlineStackProbe()
682 buildDefCFAReg(*MBB, MBBI, DL, SystemZ::R1D, ZII); in inlineStackProbe()
683 emitIncrement(*MBB, MBBI, DL, SystemZ::R1D, -int64_t(LoopAlloc), ZII); in inlineStackProbe()
684 buildCFAOffs(*MBB, MBBI, DL, -int64_t(SystemZMC::CallFrameSize + LoopAlloc), in inlineStackProbe()
687 MachineBasicBlock *DoneMBB = SystemZ::splitBlockBefore(MBBI, MBB); in inlineStackProbe()
701 MBBI = DoneMBB->begin(); in inlineStackProbe()
702 buildDefCFAReg(*MBB, MBBI, DL, SystemZ::R15D, ZII); in inlineStackProbe()
709 allocateAndProbe(*MBB, MBBI, Residual, true/*EmitCFI*/); in inlineStackProbe()