Home
last modified time | relevance | path

Searched refs:MBBI (Results 1 – 25 of 139) sorted by relevance

123456

/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVExpandPseudoInsts.cpp83 while (MBBI != E) { in expandMBB()
86 MBBI = NMBBI; in expandMBB()
98 switch (MBBI->getOpcode()) { in expandMI()
110 return expandVSetVL(MBB, MBBI); in expandMI()
140 return expandVSPILL(MBB, MBBI); in expandMI()
152 return expandVRELOAD(MBB, MBBI); in expandMI()
163 MachineInstr &MI = *MBBI; in expandAuipcInstPair()
244 assert(MBBI->getNumExplicitOperands() == 3 && MBBI->getNumOperands() >= 5 && in expandVSetVL()
263 BuildMI(MBB, MBBI, DL, Desc) in expandVSetVL()
331 MBBI->eraseFromParent(); in expandVSPILL()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AVR/
H A DAVRExpandPseudoInsts.cpp63 return BuildMI(MBB, MBBI, MBBI->getDebugLoc(), TII->get(Opcode)); in buildMI()
68 return BuildMI(MBB, MBBI, MBBI->getDebugLoc(), TII->get(Opcode), DstReg); in buildMI()
118 while (MBBI != E) { in expandMBB()
121 MBBI = NMBBI; in expandMBB()
159 MachineInstr &MI = *MBBI; in expandArith()
170 buildMI(MBB, MBBI, OpLo) in expandArith()
192 MachineInstr &MI = *MBBI; in expandLogic()
240 MachineInstr &MI = *MBBI; in expandLogicImm()
294 MachineInstr &MI = *MBBI; in expand()
348 MachineInstr &MI = *MBBI; in expand()
[all …]
H A DAVRFrameLowering.cpp54 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
55 DebugLoc DL = (MBBI != MBB.end()) ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue()
63 BuildMI(MBB, MBBI, DL, TII.get(AVR::BSETs)) in emitPrologue()
98 (MBBI != MBB.end()) && MBBI->getFlag(MachineInstr::FrameSetup) && in emitPrologue()
99 (MBBI->getOpcode() == AVR::PUSHRr || MBBI->getOpcode() == AVR::PUSHWRr)) { in emitPrologue()
100 ++MBBI; in emitPrologue()
138 DebugLoc DL = MBBI->getDebugLoc(); in restoreStatusRegister()
164 assert(MBBI->getDesc().isReturn() && in emitEpilogue()
167 DebugLoc DL = MBBI->getDebugLoc(); in emitEpilogue()
180 while (MBBI != MBB.begin()) { in emitEpilogue()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZPostRewrite.cpp88 MBBI->setDesc(TII->get(LowOpcode)); in selectLOCRMux()
90 MBBI->setDesc(TII->get(HighOpcode)); in selectLOCRMux()
115 BuildMI(*MBBI->getParent(), MBBI, MBBI->getDebugLoc(), in selectSELRMux()
117 .addReg(MBBI->getOperand(1).getReg(), getRegState(MBBI->getOperand(1))); in selectSELRMux()
122 BuildMI(*MBBI->getParent(), MBBI, MBBI->getDebugLoc(), in selectSELRMux()
124 .addReg(MBBI->getOperand(2).getReg(), getRegState(MBBI->getOperand(2))); in selectSELRMux()
139 MBBI->setDesc(TII->get(LowOpcode)); in selectSELRMux()
155 MachineInstr &MI = *MBBI; in expandCondMove()
208 MachineInstr &MI = *MBBI; in selectMI()
247 while (MBBI != E) { in selectMBB()
[all …]
H A DSystemZElimCompare.cpp220 for (++MBBI; MBBI != MBBE; ++MBBI) in convertToBRCT()
264 for (++MBBI; MBBI != MBBE; ++MBBI) in convertToLoadAndTrap()
483 for (++MBBI; MBBI != MBBE; ++MBBI) in adjustCCMasksForInstr()
484 if (MBBI == Compare) { in adjustCCMasksForInstr()
492 for (++MBBI; MBBI != MBBE; ++MBBI) in adjustCCMasksForInstr()
532 MachineInstr &MI = *MBBI++; in optimizeCompareZero()
632 for (++MBBI; MBBI != MBBE; ++MBBI) in fuseCompareOperations()
689 MBBI = Compare; in fuseCompareOperations()
690 for (++MBBI; MBBI != MBBE; ++MBBI) { in fuseCompareOperations()
712 while (MBBI != MBB.begin()) { in processBlock()
[all …]
H A DSystemZFrameLowering.cpp395 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in restoreCalleeSavedRegisters()
578 if (MBBI != MBB.end() && MBBI->getOpcode() == SystemZ::STMG) in emitPrologue()
579 ++MBBI; in emitPrologue()
670 ++MBBI; in emitPrologue()
676 ++MBBI; in emitPrologue()
718 --MBBI; in emitEpilogue()
732 emitIncrement(MBB, MBBI, DL, MBBI->getOperand(AddrOpNo).getReg(), in emitEpilogue()
827 MBBI = DoneMBB->begin(); in inlineStackProbe()
1142 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in restoreCalleeSavedRegisters()
1213 if ((MBBI != MBB.end()) && ((MBBI->getOpcode() == SystemZ::STMG))) { in emitPrologue()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ExpandPseudo.cpp133 MBBI = MBB->end(); in INITIALIZE_PASS()
178 MBBI = MBB->end(); in INITIALIZE_PASS()
195 MachineInstr &MI = *MBBI; in expandCALL_RVMARKER()
358 NewMI.copyImplicitOps(*MBBI->getParent()->getParent(), *MBBI); in ExpandMI()
365 MBB.erase(MBBI); in ExpandMI()
393 MBB.erase(MBBI); in ExpandMI()
419 MBB.erase(MBBI); in ExpandMI()
489 MBB.erase(MBBI); in ExpandMI()
523 MBB.erase(MBBI); in ExpandMI()
709 while (MBBI != E) { in ExpandMBB()
[all …]
H A DX86FrameLowering.h59 MachineBasicBlock::iterator MBBI, const DebugLoc &DL, bool InProlog,
69 MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI) const override;
72 MachineBasicBlock::iterator MBBI,
178 void BuildCFI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
186 MachineBasicBlock::iterator MBBI,
209 MachineBasicBlock::iterator MBBI, const DebugLoc &DL, bool InProlog,
214 MachineBasicBlock::iterator MBBI,
222 MachineBasicBlock::iterator MBBI,
227 MachineBasicBlock::iterator MBBI,
233 MachineBasicBlock::iterator MBBI,
[all …]
H A DX86FrameLowering.cpp1769 ++MBBI; in emitPrologue()
1940 MBBI = restoreWin32EHStackPointers(MBB, MBBI, DL); in emitPrologue()
1957 ++MBBI; in emitPrologue()
2252 --MBBI; in emitEpilogue()
2271 --MBBI; in emitEpilogue()
2311 --MBBI; in emitEpilogue()
2316 --MBBI; in emitEpilogue()
2328 --MBBI; in emitEpilogue()
2348 ++MBBI; in emitEpilogue()
3619 return MBBI; in restoreWin32EHStackPointers()
[all …]
H A DX86LoadValueInjectionRetHardening.cpp78 for (auto MBBI = MBB.begin(); MBBI != MBB.end(); ++MBBI) { in runOnMachineFunction() local
79 if (MBBI->getOpcode() != X86::RET64) in runOnMachineFunction()
82 unsigned ClobberReg = TRI->findDeadCallerSavedReg(MBB, MBBI); in runOnMachineFunction()
84 BuildMI(MBB, MBBI, DebugLoc(), TII->get(X86::POP64r)) in runOnMachineFunction()
87 BuildMI(MBB, MBBI, DebugLoc(), TII->get(X86::LFENCE)); in runOnMachineFunction()
88 BuildMI(MBB, MBBI, DebugLoc(), TII->get(X86::JMP64r)) in runOnMachineFunction()
90 MBB.erase(MBBI); in runOnMachineFunction()
97 BuildMI(MBB, MBBI, DebugLoc(), TII->get(X86::LFENCE)); in runOnMachineFunction()
/llvm-project-15.0.7/llvm/lib/Target/M68k/
H A DM68kFrameLowering.cpp146 if (MBBI == MBB.end()) in findDeadCallerSavedReg()
391 MachineBasicBlock::iterator PI = MergeWithPrevious ? std::prev(MBBI) : MBBI; in mergeSPUpdates()
408 MBBI = NI; in mergeSPUpdates()
414 MBBI = NI; in mergeSPUpdates()
594 while (MBBI != MBB.end() && MBBI->getFlag(MachineInstr::FrameSetup) && in emitPrologue()
597 ++MBBI; in emitPrologue()
653 MBB, MBBI, DL, in emitPrologue()
721 --MBBI; in emitEpilogue()
750 --MBBI; in emitEpilogue()
754 --MBBI; in emitEpilogue()
[all …]
H A DM68kExpandPseudo.cpp75 MachineInstr &MI = *MBBI; in ExpandMI()
78 DebugLoc DL = MBBI->getDebugLoc(); in ExpandMI()
216 Offset += FL->mergeSPUpdates(MBB, MBBI, true); in ExpandMI()
237 MachineInstr &NewMI = *std::prev(MBBI); in ExpandMI()
238 NewMI.copyImplicitOps(*MBBI->getParent()->getParent(), *MBBI); in ExpandMI()
241 MBB.erase(MBBI); in ExpandMI()
247 int64_t StackAdj = MBBI->getOperand(0).getImm(); in ExpandMI()
281 MBB.erase(MBBI); in ExpandMI()
295 while (MBBI != E) { in ExpandMBB()
297 Modified |= ExpandMI(MBB, MBBI); in ExpandMBB()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/VE/
H A DVEFrameLowering.cpp152 BuildMI(MBB, MBBI, DL, TII.get(VE::STrii)) in emitPrologueInsns()
157 BuildMI(MBB, MBBI, DL, TII.get(VE::STrii)) in emitPrologueInsns()
164 BuildMI(MBB, MBBI, DL, TII.get(VE::STrii)) in emitPrologueInsns()
169 BuildMI(MBB, MBBI, DL, TII.get(VE::STrii)) in emitPrologueInsns()
176 BuildMI(MBB, MBBI, DL, TII.get(VE::STrii)) in emitPrologueInsns()
304 BuildMI(MBB, MBBI, DL, TII.get(VE::EXTEND_STACK)); in emitSPExtend()
315 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
348 emitPrologueInsns(MF, MBB, MBBI, NumBytes, true); in emitPrologue()
374 emitSPExtend(MF, MBB, MBBI); in emitPrologue()
411 emitSPAdjustment(MF, MBB, MBBI, NumBytes, None); in emitEpilogue()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DThumb1FrameLowering.cpp257 if (MBBI != MBB.end() && MBBI->getOpcode() == ARM::tPUSH) { in emitPrologue()
259 ++MBBI; in emitPrologue()
267 while (MBBI != MBB.end() && MBBI->getOpcode() == ARM::tMOVr && in emitPrologue()
269 MBBI++; in emitPrologue()
270 if (MBBI != MBB.end() && MBBI->getOpcode() == ARM::tPUSH && in emitPrologue()
273 MBBI++; in emitPrologue()
527 --MBBI; in emitEpilogue()
530 ++MBBI; in emitEpilogue()
652 if (MBBI != MBB.end() && MBBI->getOpcode() != ARM::tB) in emitPopSpecialFixUp()
770 MBBI++; in emitPopSpecialFixUp()
[all …]
H A DARMSLSHardening.cpp75 assert(MBBI != MBB.begin() && in insertSpeculationBarrier()
77 assert(std::prev(MBBI)->isBarrier() && in insertSpeculationBarrier()
90 if (MBBI == MBB.end() || !isSpeculationBarrierEndBBOpcode(MBBI->getOpcode())) in insertSpeculationBarrier()
114 for (; MBBI != E; MBBI = NextMBBI) { in hardenReturnsAndBRs()
115 MachineInstr &MI = *MBBI; in hardenReturnsAndBRs()
116 NextMBBI = std::next(MBBI); in hardenReturnsAndBRs()
255 MachineInstr &IndirectCall = *MBBI; in ConvertIndirectCallToIndirectJump()
335 MBB.erase(MBBI); in ConvertIndirectCallToIndirectJump()
345 for (; MBBI != E; MBBI = NextMBBI) { in hardenIndirectCalls()
346 MachineInstr &MI = *MBBI; in hardenIndirectCalls()
[all …]
H A DARMExpandPseudoInsts.cpp1191 auto &RetI = *MBBI; in CMSEClearFPRegsV8()
1297 auto &RetI = *MBBI; in CMSEClearFPRegsV81()
2115 MBBI--; in ExpandMI()
2117 MBBI--; in ExpandMI()
2128 MBBI--; in ExpandMI()
2130 MBBI--; in ExpandMI()
2173 MBB.erase(MBBI); in ExpandMI()
2175 MBBI = NewMI; in ExpandMI()
2188 BuildMI(MBB, MBBI, MBBI->getDebugLoc(), in ExpandMI()
3141 while (MBBI != E) { in ExpandMBB()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64SpeculationHardening.cpp450 BuildMI(MBB, MBBI, MI.getDebugLoc(), in makeGPRSpeculationSafe()
468 for (; MBBI != E; MBBI = NextMBBI) { in slhLoads()
469 MachineInstr &MI = *MBBI; in slhLoads()
470 NextMBBI = std::next(MBBI); in slhLoads()
550 MachineInstr &MI = *MBBI; in expandSpeculationSafeValue()
575 BuildMI(MBB, MBBI, MI.getDebugLoc(), in expandSpeculationSafeValue()
619 while (MBBI != E) { in lowerSpeculationSafeValuePseudos()
620 MachineInstr &MI = *MBBI; in lowerSpeculationSafeValuePseudos()
638 Modified |= insertCSDB(MBB, MBBI, DL); in lowerSpeculationSafeValuePseudos()
643 MBBI = NMBBI; in lowerSpeculationSafeValuePseudos()
[all …]
H A DAArch64SLSHardening.cpp78 assert(MBBI != MBB.begin() && in insertSpeculationBarrier()
89 if (MBBI == MBB.end() || in insertSpeculationBarrier()
131 for (; MBBI != E; MBBI = NextMBBI) { in hardenReturnsAndBRs()
132 MachineInstr &MI = *MBBI; in hardenReturnsAndBRs()
133 NextMBBI = std::next(MBBI); in hardenReturnsAndBRs()
281 MachineInstr &BLR = *MBBI; in ConvertBLRToBL()
372 MBB.erase(MBBI); in ConvertBLRToBL()
383 for (; MBBI != E; MBBI = NextMBBI) { in hardenBLRs()
384 MachineInstr &MI = *MBBI; in hardenBLRs()
385 NextMBBI = std::next(MBBI); in hardenBLRs()
[all …]
H A DAArch64ExpandPseudoInsts.cpp121 MachineInstr &MI = *MBBI; in expandMOVImm()
188 MachineInstr &MI = *MBBI; in expandCMP_SWAP()
267 MachineInstr &MI = *MBBI; in expandCMP_SWAP_128()
618 MachineInstr &MI = *MBBI; in expandSetTagLoop()
694 MachineInstr &MI = *MBBI; in expandSVESpillFill()
718 MachineInstr &MI = *MBBI; in expandCALL_RVMARKER()
771 MachineInstr &MI = *MBBI; in expandCALL_BTI()
847 MBBI->eraseFromParent(); in expandStoreSwiftAsyncContext()
856 MachineInstr &MI = *MBBI; in expandMI()
1287 while (MBBI != E) { in expandMBB()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreFrameLowering.cpp110 EmitDefCfaOffset(MBB, MBBI, dl, TII, Adjusted*4); in IfNeededExtSP()
226 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
269 EmitDefCfaOffset(MBB, MBBI, dl, TII, Adjusted*4); in emitPrologue()
271 EmitCfiOffset(MBB, MBBI, dl, TII, DRegNum, 0); in emitPrologue()
289 BuildMI(MBB, MBBI, dl, TII.get(Opcode)) in emitPrologue()
309 EmitDefCfaRegister(MBB, MBBI, dl, TII, MF, in emitPrologue()
333 EmitCfiOffset(MBB, MBBI, dl, TII, in emitPrologue()
336 EmitCfiOffset(MBB, MBBI, dl, TII, in emitPrologue()
349 DebugLoc dl = MBBI->getDebugLoc(); in emitEpilogue()
350 unsigned RetOpcode = MBBI->getOpcode(); in emitEpilogue()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/MSP430/
H A DMSP430FrameLowering.cpp49 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue()
81 while (MBBI != MBB.end() && (MBBI->getOpcode() == MSP430::PUSH16r)) in emitPrologue()
82 ++MBBI; in emitPrologue()
84 if (MBBI != MBB.end()) in emitPrologue()
85 DL = MBBI->getDebugLoc(); in emitPrologue()
114 DebugLoc DL = MBBI->getDebugLoc(); in emitEpilogue()
139 while (MBBI != MBB.begin()) { in emitEpilogue()
144 --MBBI; in emitEpilogue()
147 DL = MBBI->getDebugLoc(); in emitEpilogue()
155 BuildMI(MBB, MBBI, DL, in emitEpilogue()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Sparc/
H A DLeonPasses.cpp46 for (auto MBBI = MBB.begin(), E = MBB.end(); MBBI != E; ++MBBI) { in runOnMachineFunction() local
47 MachineInstr &MI = *MBBI; in runOnMachineFunction()
50 MachineBasicBlock::iterator NMBBI = std::next(MBBI); in runOnMachineFunction()
130 for (auto MBBI = MBB.begin(), E = MBB.end(); MBBI != E; ++MBBI) { in runOnMachineFunction() local
131 MachineInstr &MI = *MBBI; in runOnMachineFunction()
140 BuildMI(MBB, MBBI, DL, TII.get(SP::NOP)); in runOnMachineFunction()
142 MachineBasicBlock::iterator NMBBI = std::next(MBBI); in runOnMachineFunction()
H A DSparcFrameLowering.cpp52 BuildMI(MBB, MBBI, dl, TII.get(ADDri), SP::O6) in emitSPAdjustment()
66 BuildMI(MBB, MBBI, dl, TII.get(SP::ORri), SP::G1) in emitSPAdjustment()
68 BuildMI(MBB, MBBI, dl, TII.get(ADDrr), SP::O6) in emitSPAdjustment()
77 BuildMI(MBB, MBBI, dl, TII.get(SP::SETHIi), SP::G1) in emitSPAdjustment()
79 BuildMI(MBB, MBBI, dl, TII.get(SP::XORri), SP::G1) in emitSPAdjustment()
81 BuildMI(MBB, MBBI, dl, TII.get(ADDrr), SP::O6) in emitSPAdjustment()
96 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
220 DebugLoc dl = MBBI->getDebugLoc(); in emitEpilogue()
221 assert((MBBI->getOpcode() == SP::RETL || MBBI->getOpcode() == SP::TAIL_CALL || in emitEpilogue()
222 MBBI->getOpcode() == SP::TAIL_CALLri) && in emitEpilogue()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/ARC/
H A DARCFrameLowering.cpp72 BuildMI(MBB, MBBI, dl, TII.get(AdjOp), StackPtr) in generateStackAdjustment()
123 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
164 BuildMI(MBB, MBBI, dl, TII->get(ARC::BL)) in emitPrologue()
186 BuildMI(MBB, MBBI, dl, in emitPrologue()
287 BuildMI(MBB, MBBI, MBB.findDebugLoc(MBBI), TII->get(Opc), ARC::SP) in emitEpilogue()
294 BuildMI(MBB, MBBI, MBB.findDebugLoc(MBBI), TII->get(ARC::BL)) in emitEpilogue()
302 BuildMI(MBB, MBBI, MBB.findDebugLoc(MBBI), TII->get(Opc), ARC::SP) in emitEpilogue()
308 BuildMI(MBB, MBBI, MBB.findDebugLoc(MBBI), TII->get(ARC::POP_S_BLINK)); in emitEpilogue()
312 BuildMI(MBB, MBBI, MBB.findDebugLoc(MBBI), TII->get(ARC::LD_AB_rs9)) in emitEpilogue()
329 BuildMI(MBB, MBBI, MBB.findDebugLoc(MBBI), TII->get(Opc)) in emitEpilogue()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCFrameLowering.cpp396 for (MachineBasicBlock::iterator MBBI = MBB.end(); MBBI != MBB.begin();) { in replaceFPWithRealFP() local
397 --MBBI; in replaceFPWithRealFP()
470 if (MBBI == MBB->end()) in findScratchRegister()
471 MBBI = std::prev(MBBI); in findScratchRegister()
473 if (MBBI != MBB->begin()) in findScratchRegister()
474 RS.forward(MBBI); in findScratchRegister()
748 StackUpdateLoc = MBBI; in emitPrologue()
899 BuildMI(MBB, MBBI, dl, in emitPrologue()
1532 if (MBBI != MBB.end()) in emitEpilogue()
1533 dl = MBBI->getDebugLoc(); in emitEpilogue()
[all …]

123456