Home
last modified time | relevance | path

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

1234567

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVExpandPseudoInsts.cpp92 while (MBBI != E) { in expandMBB()
95 MBBI = NMBBI; in expandMBB()
174 MachineInstr &MI = *MBBI; in expandCCOp()
263 assert(MBBI->getNumExplicitOperands() == 3 && MBBI->getNumOperands() >= 5 && in expandVSetVL()
319 if (MBBI->getOperand(2).isGlobal() || MBBI->getOperand(2).isCPI()) { in expandRV32ZdinxStore()
325 MBBI->getOperand(2).setOffset(MBBI->getOperand(2).getOffset() + 4); in expandRV32ZdinxStore()
337 MBBI->eraseFromParent(); in expandRV32ZdinxStore()
363 if (MBBI->getOperand(2).isGlobal() || MBBI->getOperand(2).isCPI()) { in expandRV32ZdinxLoad()
385 MBBI->eraseFromParent(); in expandRV32ZdinxLoad()
467 while (MBBI != E) { in expandMBB()
[all …]
H A DRISCVPostRAExpandPseudoInsts.cpp65 while (MBBI != E) { in expandMBB()
67 Modified |= expandMI(MBB, MBBI, NMBBI); in expandMBB()
68 MBBI = NMBBI; in expandMBB()
77 switch (MBBI->getOpcode()) { in expandMI()
79 return expandMovImm(MBB, MBBI); in expandMI()
87 DebugLoc DL = MBBI->getDebugLoc(); in expandMovImm()
89 int64_t Val = MBBI->getOperand(1).getImm(); in expandMovImm()
95 Register DstReg = MBBI->getOperand(0).getReg(); in expandMovImm()
96 bool DstIsDead = MBBI->getOperand(0).isDead(); in expandMovImm()
97 bool Renamable = MBBI->getOperand(0).isRenamable(); in expandMovImm()
[all …]
H A DRISCVPushPopOptimizer.cpp33 bool usePopRet(MachineBasicBlock::iterator &MBBI,
50 for (MachineBasicBlock::iterator MBBI = MBB.begin(); MBBI != MBB.end(); in containsPop() local
51 MBBI = next_nodbg(MBBI, MBB.end())) in containsPop()
52 if (MBBI->getOpcode() == RISCV::CM_POP) in containsPop()
53 return MBBI; in containsPop()
66 .add(MBBI->getOperand(0)) in usePopRet()
67 .add(MBBI->getOperand(1)); in usePopRet()
69 MBBI->eraseFromParent(); in usePopRet()
85 next_nodbg(MBBI.getReverse(), RE); in adjustRetVal()
132 if (MBBI != MBB.end() && NextI != MBB.end() && in runOnMachineFunction()
[all …]
H A DRISCVExpandAtomicPseudoInsts.cpp98 while (MBBI != E) { in expandMBB()
101 MBBI = NMBBI; in expandMBB()
392 MachineInstr &MI = *MBBI; in expandAtomicBinOp()
446 MachineInstr &MI = *MBBI; in expandAtomicMinMaxOp()
577 if (MBBI == E) in tryToFoldBNEOnCmpXchgResult()
579 MBBI = skipDebugInstructionsForward(MBBI, E); in tryToFoldBNEOnCmpXchgResult()
583 if (MBBI == E || MBBI->getOpcode() != RISCV::AND) in tryToFoldBNEOnCmpXchgResult()
593 MBBI = skipDebugInstructionsForward(std::next(MBBI), E); in tryToFoldBNEOnCmpXchgResult()
597 if (MBBI == E || MBBI->getOpcode() != RISCV::BNE) in tryToFoldBNEOnCmpXchgResult()
615 MBBI = skipDebugInstructionsForward(std::next(MBBI), E); in tryToFoldBNEOnCmpXchgResult()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchExpandPseudoInsts.cpp100 while (MBBI != E) { in expandMBB()
103 MBBI = NMBBI; in expandMBB()
112 switch (MBBI->getOpcode()) { in expandMI()
134 MachineInstr &MI = *MBBI; in expandPcalau12iInstPair()
195 MachineInstr &MI = *MBBI; in expandLoadAddressTLSLE()
339 while (MBBI != E) { in expandMBB()
342 MBBI = NMBBI; in expandMBB()
381 MachineInstr &MI = *MBBI; in expandCopyCFR()
434 MachineInstr &MI = *MBBI; in expandLargeAddressLoad()
480 MachineInstr &MI = *MBBI; in expandLargeAddressLoad()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRExpandPseudoInsts.cpp57 return BuildMI(MBB, MBBI, MBBI->getDebugLoc(), TII->get(Opcode)); in buildMI()
62 return BuildMI(MBB, MBBI, MBBI->getDebugLoc(), TII->get(Opcode), DstReg); in buildMI()
114 while (MBBI != E) { in expandMBB()
117 MBBI = NMBBI; in expandMBB()
152 MachineInstr &MI = *MBBI; in expandArith()
163 buildMI(MBB, MBBI, OpLo) in expandArith()
185 MachineInstr &MI = *MBBI; in expandLogic()
245 MachineInstr &MI = *MBBI; in expandLogicImm()
305 MachineInstr &MI = *MBBI; in expand()
359 MachineInstr &MI = *MBBI; in expand()
[all …]
H A DAVRFrameLowering.cpp53 DebugLoc DL = (MBBI != MBB.end()) ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue()
62 BuildMI(MBB, MBBI, DL, TII.get(AVR::BSETs)) in emitPrologue()
70 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHRr)) in emitPrologue()
102 (MBBI != MBB.end()) && MBBI->getFlag(MachineInstr::FrameSetup) && in emitPrologue()
103 (MBBI->getOpcode() == AVR::PUSHRr || MBBI->getOpcode() == AVR::PUSHWRr)) { in emitPrologue()
104 ++MBBI; in emitPrologue()
144 DebugLoc DL = MBBI->getDebugLoc(); in restoreStatusRegister()
173 assert(MBBI->getDesc().isReturn() && in emitEpilogue()
176 DebugLoc DL = MBBI->getDebugLoc(); in emitEpilogue()
189 while (MBBI != MBB.begin()) { in emitEpilogue()
[all …]
/freebsd-14.2/contrib/llvm-project/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.cpp214 for (++MBBI; MBBI != MBBE; ++MBBI) in convertToBRCT()
258 for (++MBBI; MBBI != MBBE; ++MBBI) in convertToLoadAndTrap()
477 for (++MBBI; MBBI != MBBE; ++MBBI) in adjustCCMasksForInstr()
478 if (MBBI == Compare) { in adjustCCMasksForInstr()
486 for (++MBBI; MBBI != MBBE; ++MBBI) in adjustCCMasksForInstr()
518 MachineInstr &MI = *MBBI++; in optimizeCompareZero()
618 for (++MBBI; MBBI != MBBE; ++MBBI) in fuseCompareOperations()
675 MBBI = Compare; in fuseCompareOperations()
676 for (++MBBI; MBBI != MBBE; ++MBBI) { in fuseCompareOperations()
698 while (MBBI != MBB.begin()) { in processBlock()
[all …]
H A DSystemZFrameLowering.cpp396 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in restoreCalleeSavedRegisters()
579 if (MBBI != MBB.end() && MBBI->getOpcode() == SystemZ::STMG) in emitPrologue()
580 ++MBBI; in emitPrologue()
671 ++MBBI; in emitPrologue()
677 ++MBBI; in emitPrologue()
719 --MBBI; in emitEpilogue()
733 emitIncrement(MBB, MBBI, DL, MBBI->getOperand(AddrOpNo).getReg(), in emitEpilogue()
828 MBBI = DoneMBB->begin(); in inlineStackProbe()
1151 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in restoreCalleeSavedRegisters()
1222 if ((MBBI != MBB.end()) && ((MBBI->getOpcode() == SystemZ::STMG))) { in emitPrologue()
[all …]
/freebsd-14.2/contrib/llvm-project/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()
361 NewMI.copyImplicitOps(*MBBI->getParent()->getParent(), *MBBI); in ExpandMI()
369 MBB.erase(MBBI); in ExpandMI()
397 MBB.erase(MBBI); in ExpandMI()
423 MBB.erase(MBBI); in ExpandMI()
497 MBB.erase(MBBI); in ExpandMI()
533 MBB.erase(MBBI); in ExpandMI()
727 while (MBBI != E) { in ExpandMBB()
[all …]
H A DX86FrameLowering.cpp1871 ++MBBI; in emitPrologue()
2052 MBBI = restoreWin32EHStackPointers(MBB, MBBI, DL); in emitPrologue()
2069 ++MBBI; in emitPrologue()
2342 --MBBI; in emitEpilogue()
2344 --MBBI; in emitEpilogue()
2403 --MBBI; in emitEpilogue()
2422 --MBBI; in emitEpilogue()
2471 --MBBI; in emitEpilogue()
2475 --MBBI; in emitEpilogue()
2487 --MBBI; in emitEpilogue()
[all …]
H A DX86LoadValueInjectionRetHardening.cpp77 for (auto MBBI = MBB.begin(); MBBI != MBB.end(); ++MBBI) { in runOnMachineFunction() local
78 if (MBBI->getOpcode() != X86::RET64) in runOnMachineFunction()
81 unsigned ClobberReg = TRI->findDeadCallerSavedReg(MBB, MBBI); in runOnMachineFunction()
83 BuildMI(MBB, MBBI, DebugLoc(), TII->get(X86::POP64r)) in runOnMachineFunction()
86 BuildMI(MBB, MBBI, DebugLoc(), TII->get(X86::LFENCE)); in runOnMachineFunction()
87 BuildMI(MBB, MBBI, DebugLoc(), TII->get(X86::JMP64r)) in runOnMachineFunction()
89 MBB.erase(MBBI); in runOnMachineFunction()
96 BuildMI(MBB, MBBI, DebugLoc(), TII->get(X86::LFENCE)); in runOnMachineFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430FrameLowering.cpp93 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue()
124 MBB, MBBI, DL, in emitPrologue()
147 while (MBBI != MBB.end() && MBBI->getFlag(MachineInstr::FrameSetup) && in emitPrologue()
149 ++MBBI; in emitPrologue()
162 if (MBBI != MBB.end()) in emitPrologue()
230 --MBBI; in emitEpilogue()
236 --MBBI; in emitEpilogue()
251 --MBBI; in emitEpilogue()
253 MBBI = FirstCSPop; in emitEpilogue()
296 MBBI = FirstCSPop; in emitEpilogue()
[all …]
/freebsd-14.2/contrib/llvm-project/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()
589 while (MBBI != MBB.end() && MBBI->getFlag(MachineInstr::FrameSetup) && in emitPrologue()
592 ++MBBI; in emitPrologue()
649 MBB, MBBI, DL, in emitPrologue()
714 --MBBI; in emitEpilogue()
743 --MBBI; in emitEpilogue()
748 --MBBI; in emitEpilogue()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ExpandPseudoInsts.cpp128 MachineInstr &MI = *MBBI; in expandMOVImm()
226 MachineInstr &MI = *MBBI; in expandCMP_SWAP()
305 MachineInstr &MI = *MBBI; in expandCMP_SWAP_128()
673 MachineInstr &MI = *MBBI; in expandSetTagLoop()
761 MachineInstr &MI = *MBBI; in expandSVESpillFill()
784 MachineInstr &MI = *MBBI; in expandCALL_RVMARKER()
838 MachineInstr &MI = *MBBI; in expandCALL_BTI()
932 MBBI->eraseFromParent(); in expandStoreSwiftAsyncContext()
939 MachineInstr &MI = *MBBI; in expandRestoreZA()
1691 while (MBBI != E) { in expandMBB()
[all …]
H A DAArch64SpeculationHardening.cpp452 BuildMI(MBB, MBBI, MI.getDebugLoc(), in makeGPRSpeculationSafe()
470 for (; MBBI != E; MBBI = NextMBBI) { in slhLoads()
471 MachineInstr &MI = *MBBI; in slhLoads()
472 NextMBBI = std::next(MBBI); in slhLoads()
552 MachineInstr &MI = *MBBI; in expandSpeculationSafeValue()
577 BuildMI(MBB, MBBI, MI.getDebugLoc(), in expandSpeculationSafeValue()
621 while (MBBI != E) { in lowerSpeculationSafeValuePseudos()
622 MachineInstr &MI = *MBBI; in lowerSpeculationSafeValuePseudos()
640 Modified |= insertCSDB(MBB, MBBI, DL); in lowerSpeculationSafeValuePseudos()
645 MBBI = NMBBI; in lowerSpeculationSafeValuePseudos()
[all …]
H A DAArch64PointerAuth.cpp94 MachineBasicBlock &MBB = *MBBI->getParent(); in signLR()
114 BuildMI(MBB, MBBI, DL, in signLR()
121 BuildMI(MBB, MBBI, DL, in signLR()
147 MachineBasicBlock &MBB = *MBBI->getParent(); in authenticateLR()
148 DebugLoc DL = MBBI->getDebugLoc(); in authenticateLR()
172 .copyImplicitOps(*MBBI) in authenticateLR()
177 .copyImplicitOps(*MBBI) in authenticateLR()
184 BuildMI(MBB, MBBI, DL, in authenticateLR()
190 BuildMI(MBB, MBBI, DL, in authenticateLR()
231 DebugLoc DL = MBBI->getDebugLoc(); in checkAuthenticatedRegister()
[all …]
H A DAArch64SLSHardening.cpp76 assert(MBBI != MBB.begin() && in insertSpeculationBarrier()
87 if (MBBI == MBB.end() || in insertSpeculationBarrier()
129 for (; MBBI != E; MBBI = NextMBBI) { in hardenReturnsAndBRs()
130 MachineInstr &MI = *MBBI; in hardenReturnsAndBRs()
131 NextMBBI = std::next(MBBI); in hardenReturnsAndBRs()
282 MachineInstr &BLR = *MBBI; in ConvertBLRToBL()
373 MBB.erase(MBBI); in ConvertBLRToBL()
385 for (; MBBI != E; MBBI = NextMBBI) { in hardenBLRs()
386 MachineInstr &MI = *MBBI; in hardenBLRs()
387 NextMBBI = std::next(MBBI); in hardenBLRs()
[all …]
/freebsd-14.2/contrib/llvm-project/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()
354 BuildMI(MBB, MBBI, DL, TII.get(VE::ORri), VE::SX9) in emitPrologue()
374 emitSPExtend(MF, MBB, MBBI); in emitPrologue()
[all …]
/freebsd-14.2/contrib/llvm-project/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 DARMExpandPseudoInsts.cpp1265 auto &RetI = *MBBI; in CMSEClearFPRegsV8()
1371 auto &RetI = *MBBI; in CMSEClearFPRegsV81()
2189 MBBI--; in ExpandMI()
2191 MBBI--; in ExpandMI()
2202 MBBI--; in ExpandMI()
2204 MBBI--; in ExpandMI()
2250 MBB.erase(MBBI); in ExpandMI()
2252 MBBI = NewMI; in ExpandMI()
2265 BuildMI(MBB, MBBI, MBBI->getDebugLoc(), in ExpandMI()
3231 while (MBBI != E) { in ExpandMBB()
[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()
276 MachineInstr &IndirectCall = *MBBI; in ConvertIndirectCallToIndirectJump()
356 MBB.erase(MBBI); in ConvertIndirectCallToIndirectJump()
366 for (; MBBI != E; MBBI = NextMBBI) { in hardenIndirectCalls()
367 MachineInstr &MI = *MBBI; in hardenIndirectCalls()
[all …]
/freebsd-14.2/contrib/llvm-project/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 …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DLeonPasses.cpp49 for (auto MBBI = MBB.begin(), E = MBB.end(); MBBI != E; ++MBBI) { in runOnMachineFunction() local
50 MachineInstr &MI = *MBBI; in runOnMachineFunction()
53 MachineBasicBlock::iterator NMBBI = std::next(MBBI); in runOnMachineFunction()
138 for (auto MBBI = MBB.begin(), E = MBB.end(); MBBI != E; ++MBBI) { in runOnMachineFunction() local
139 MachineInstr &MI = *MBBI; in runOnMachineFunction()
148 BuildMI(MBB, MBBI, DL, TII.get(SP::NOP)); in runOnMachineFunction()
150 MachineBasicBlock::iterator NMBBI = std::next(MBBI); in runOnMachineFunction()

1234567