Home
last modified time | relevance | path

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

1234567891011

/external/llvm/lib/Target/X86/
DX86ExpandPseudo.cpp62 bool ExpandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI);
72 MachineBasicBlock::iterator MBBI) { in ExpandMI() argument
73 MachineInstr &MI = *MBBI; in ExpandMI()
75 DebugLoc DL = MBBI->getDebugLoc(); in ExpandMI()
86 MachineOperand &JumpTarget = MBBI->getOperand(0); in ExpandMI()
87 MachineOperand &StackAdjust = MBBI->getOperand(isMem ? 5 : 1); in ExpandMI()
102 Offset += X86FL->mergeSPUpdates(MBB, MBBI, true); in ExpandMI()
103 X86FL->emitSPUpdate(MBB, MBBI, Offset, /*InEpilogue=*/true); in ExpandMI()
112 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, DL, TII->get(Op)); in ExpandMI()
125 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, DL, TII->get(Op)); in ExpandMI()
[all …]
DX86FrameLowering.cpp149 MachineBasicBlock::iterator &MBBI, in findDeadCallerSavedReg() argument
159 unsigned Opc = MBBI->getOpcode(); in findDeadCallerSavedReg()
177 for (unsigned i = 0, e = MBBI->getNumOperands(); i != e; ++i) { in findDeadCallerSavedReg()
178 MachineOperand &MO = MBBI->getOperand(i); in findDeadCallerSavedReg()
251 MachineBasicBlock::iterator &MBBI, in emitSPUpdate() argument
257 DebugLoc DL = MBB.findDebugLoc(MBBI); in emitSPUpdate()
268 Reg = findDeadCallerSavedReg(MBB, MBBI, TRI, Is64Bit); in emitSPUpdate()
272 BuildMI(MBB, MBBI, DL, TII.get(Opc), Reg) in emitSPUpdate()
277 MachineInstr *MI = BuildMI(MBB, MBBI, DL, TII.get(Opc), StackPtr) in emitSPUpdate()
291 : findDeadCallerSavedReg(MBB, MBBI, TRI, Is64Bit); in emitSPUpdate()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AVR/
DAVRExpandPseudoInsts.cpp60 bool expandMI(Block &MBB, BlockIt MBBI);
61 template <unsigned OP> bool expand(Block &MBB, BlockIt MBBI);
63 MachineInstrBuilder buildMI(Block &MBB, BlockIt MBBI, unsigned Opcode) { in buildMI() argument
64 return BuildMI(MBB, MBBI, MBBI->getDebugLoc(), TII->get(Opcode)); in buildMI()
67 MachineInstrBuilder buildMI(Block &MBB, BlockIt MBBI, unsigned Opcode, in buildMI() argument
69 return BuildMI(MBB, MBBI, MBBI->getDebugLoc(), TII->get(Opcode), DstReg); in buildMI()
74 bool expandArith(unsigned OpLo, unsigned OpHi, Block &MBB, BlockIt MBBI);
75 bool expandLogic(unsigned Op, Block &MBB, BlockIt MBBI);
76 bool expandLogicImm(unsigned Op, Block &MBB, BlockIt MBBI);
80 bool expandAtomic(Block &MBB, BlockIt MBBI, Func f);
[all …]
DAVRRelaxMemOperations.cpp49 template <unsigned OP> bool relax(Block &MBB, BlockIt MBBI);
52 bool runOnInstruction(Block &MBB, BlockIt MBBI);
54 MachineInstrBuilder buildMI(Block &MBB, BlockIt MBBI, unsigned Opcode) { in buildMI() argument
55 return BuildMI(MBB, MBBI, MBBI->getDebugLoc(), TII->get(Opcode)); in buildMI()
78 BlockIt MBBI = MBB.begin(), E = MBB.end(); in runOnBasicBlock() local
79 while (MBBI != E) { in runOnBasicBlock()
80 BlockIt NMBBI = std::next(MBBI); in runOnBasicBlock()
81 Modified |= runOnInstruction(MBB, MBBI); in runOnBasicBlock()
82 MBBI = NMBBI; in runOnBasicBlock()
89 bool AVRRelaxMem::relax<AVR::STDWPtrQRr>(Block &MBB, BlockIt MBBI) { in relax() argument
[all …]
DAVRFrameLowering.cpp55 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
57 DebugLoc DL = (MBBI != MBB.end()) ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue()
64 BuildMI(MBB, MBBI, DL, TII.get(AVR::BSETs)) in emitPrologue()
71 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHWRr)) in emitPrologue()
80 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHWRr)) in emitPrologue()
84 BuildMI(MBB, MBBI, DL, TII.get(AVR::INRdA), AVR::R0) in emitPrologue()
87 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHRr)) in emitPrologue()
90 BuildMI(MBB, MBBI, DL, TII.get(AVR::EORRdRr)) in emitPrologue()
108 (MBBI != MBB.end()) && MBBI->getFlag(MachineInstr::FrameSetup) && in emitPrologue()
109 (MBBI->getOpcode() == AVR::PUSHRr || MBBI->getOpcode() == AVR::PUSHWRr)) { in emitPrologue()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ExpandPseudo.cpp63 MachineBasicBlock::iterator MBBI);
65 bool ExpandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI);
72 MachineBasicBlock *MBB, MachineBasicBlock::iterator MBBI) { in ExpandICallBranchFunnel() argument
74 MachineInstr *JTInst = &*MBBI; in ExpandICallBranchFunnel()
86 BuildMI(*MBB, MBBI, DL, TII->get(X86::LEA64r), X86::R11) in ExpandICallBranchFunnel()
93 BuildMI(*MBB, MBBI, DL, TII->get(X86::CMP64rr)) in ExpandICallBranchFunnel()
105 BuildMI(*MBB, MBBI, DL, TII->get(Opcode)).addMBB(ThenMBB); in ExpandICallBranchFunnel()
110 MBBI = MBB->end(); in ExpandICallBranchFunnel()
120 BuildMI(*MBB, MBBI, DL, TII->get(X86::TAILJMPd64)) in ExpandICallBranchFunnel()
155 MBBI = MBB->end(); in ExpandICallBranchFunnel()
[all …]
/external/llvm/lib/Target/ARM/
DThumb1FrameLowering.cpp42 MachineBasicBlock::iterator &MBBI, in emitSPUpdate() argument
46 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitSPUpdate()
87 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
121 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -ArgRegsSaveSize, in emitPrologue()
126 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
133 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -(NumBytes - ArgRegsSaveSize), in emitPrologue()
138 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
172 if (MBBI != MBB.end() && MBBI->getOpcode() == ARM::tPUSH) { in emitPrologue()
173 ++MBBI; in emitPrologue()
191 if (tryFoldSPUpdateIntoPushPop(STI, MF, &*std::prev(MBBI), NumBytes)) { in emitPrologue()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DThumb1FrameLowering.cpp39 MachineBasicBlock::iterator &MBBI, in emitSPUpdate() argument
43 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitSPUpdate()
49 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
60 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue()
74 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -VARegSaveSize, in emitPrologue()
79 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -NumBytes, in emitPrologue()
118 if (MBBI != MBB.end() && MBBI->getOpcode() == ARM::tPUSH) { in emitPrologue()
119 ++MBBI; in emitPrologue()
120 if (MBBI != MBB.end()) in emitPrologue()
121 dl = MBBI->getDebugLoc(); in emitPrologue()
[all …]
/external/llvm/lib/Target/Sparc/
DLeonPasses.cpp86 for (auto MBBI = MBB.begin(), E = MBB.end(); MBBI != E; ++MBBI) { in runOnMachineFunction() local
87 MachineInstr &MI = *MBBI; in runOnMachineFunction()
90 MachineBasicBlock::iterator NMBBI = std::next(MBBI); in runOnMachineFunction()
98 MachineBasicBlock::iterator NMBBI = std::next(MBBI); in runOnMachineFunction()
136 for (auto MBBI = MBB.begin(), E = MBB.end(); MBBI != E; ++MBBI) { in runOnMachineFunction() local
138 MachineInstr &MI = *MBBI; in runOnMachineFunction()
179 MachineBasicBlock::iterator NMBBI = std::next(MBBI); in runOnMachineFunction()
194 BuildMI(MBB, MBBI, DL, TII.get(SP::FSTOD)) in runOnMachineFunction()
199 BuildMI(MBB, MBBI, DL, TII.get(SP::FSTOD)) in runOnMachineFunction()
204 BuildMI(MBB, MBBI, DL, TII.get(SP::FMULD)) in runOnMachineFunction()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCFrameLowering.cpp57 MachineBasicBlock::iterator MBBI = MI; in RemoveVRSaveCode() local
58 ++MBBI; in RemoveVRSaveCode()
59 assert(MBBI != Entry->end() && MBBI->getOpcode() == PPC::MTVRSAVE); in RemoveVRSaveCode()
60 MBBI->eraseFromParent(); in RemoveVRSaveCode()
69 for (MBBI = I->end(); MBBI != I->begin(); ) { in RemoveVRSaveCode()
70 --MBBI; in RemoveVRSaveCode()
71 if (MBBI->getOpcode() == PPC::MTVRSAVE) { in RemoveVRSaveCode()
72 MBBI->eraseFromParent(); // remove it. in RemoveVRSaveCode()
84 MBBI = MI; in RemoveVRSaveCode()
85 assert(MBBI != Entry->begin() && "UPDATE_VRSAVE is first instr in block?"); in RemoveVRSaveCode()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DThumb1FrameLowering.cpp68 MachineBasicBlock::iterator &MBBI, in emitSPUpdate() argument
72 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitSPUpdate()
111 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
145 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -ArgRegsSaveSize, in emitPrologue()
150 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
157 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -(NumBytes - ArgRegsSaveSize), in emitPrologue()
162 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
196 if (MBBI != MBB.end() && MBBI->getOpcode() == ARM::tPUSH) { in emitPrologue()
197 ++MBBI; in emitPrologue()
216 tryFoldSPUpdateIntoPushPop(STI, MF, &*std::prev(MBBI), NumBytes)) { in emitPrologue()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZElimCompare.cpp223 MachineBasicBlock::iterator MBBI = Compare, MBBE = Branch; in convertToBRCT() local
224 for (++MBBI; MBBI != MBBE; ++MBBI) in convertToBRCT()
225 if (getRegReferences(*MBBI, SrcReg)) in convertToBRCT()
267 MachineBasicBlock::iterator MBBI = Compare, MBBE = Branch; in convertToLoadAndTrap() local
268 for (++MBBI; MBBI != MBBE; ++MBBI) in convertToLoadAndTrap()
269 if (getRegReferences(*MBBI, SrcReg)) in convertToLoadAndTrap()
388 MachineBasicBlock::iterator MBBI = MI, MBBE = MI.getParent()->end(); in adjustCCMasksForInstr() local
389 for (++MBBI; MBBI != MBBE; ++MBBI) in adjustCCMasksForInstr()
390 if (MBBI == Compare) { in adjustCCMasksForInstr()
397 MachineBasicBlock::iterator MBBI = MI, MBBE = Compare; in adjustCCMasksForInstr() local
[all …]
DSystemZFrameLowering.cpp133 MachineBasicBlock::iterator MBBI, in spillCalleeSavedRegisters() argument
184 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, DL, TII->get(SystemZ::STMG)); in spillCalleeSavedRegisters()
212 TII->storeRegToStackSlot(MBB, MBBI, Reg, true, CSI[I].getFrameIdx(), in spillCalleeSavedRegisters()
217 TII->storeRegToStackSlot(MBB, MBBI, Reg, true, CSI[I].getFrameIdx(), in spillCalleeSavedRegisters()
227 MachineBasicBlock::iterator MBBI, in restoreCalleeSavedRegisters() argument
237 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in restoreCalleeSavedRegisters()
243 TII->loadRegFromStackSlot(MBB, MBBI, Reg, CSI[I].getFrameIdx(), in restoreCalleeSavedRegisters()
246 TII->loadRegFromStackSlot(MBB, MBBI, Reg, CSI[I].getFrameIdx(), in restoreCalleeSavedRegisters()
262 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, DL, TII->get(SystemZ::LMG)); in restoreCalleeSavedRegisters()
315 MachineBasicBlock::iterator &MBBI, in emitIncrement() argument
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/Alpha/
DAlphaFrameLowering.cpp48 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
52 DebugLoc dl = (MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc()); in emitPrologue()
56 BuildMI(MBB, MBBI, dl, TII.get(Alpha::LDAHg), Alpha::R29) in emitPrologue()
58 BuildMI(MBB, MBBI, dl, TII.get(Alpha::LDAg), Alpha::R29) in emitPrologue()
61 BuildMI(MBB, MBBI, dl, TII.get(Alpha::ALTENT)) in emitPrologue()
82 BuildMI(MBB, MBBI, dl, TII.get(Alpha::LDA), Alpha::R30).addImm(NumBytes) in emitPrologue()
85 BuildMI(MBB, MBBI, dl, TII.get(Alpha::LDAH), Alpha::R30) in emitPrologue()
87 BuildMI(MBB, MBBI, dl, TII.get(Alpha::LDA), Alpha::R30) in emitPrologue()
95 BuildMI(MBB, MBBI, dl, TII.get(Alpha::STQ)) in emitPrologue()
98 BuildMI(MBB, MBBI, dl, TII.get(Alpha::BISr), Alpha::R15) in emitPrologue()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/MSP430/
DMSP430FrameLowering.cpp48 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
49 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue()
66 BuildMI(MBB, MBBI, DL, TII.get(MSP430::PUSH16r)) in emitPrologue()
70 BuildMI(MBB, MBBI, DL, TII.get(MSP430::MOV16rr), MSP430::FPW) in emitPrologue()
82 while (MBBI != MBB.end() && (MBBI->getOpcode() == MSP430::PUSH16r)) in emitPrologue()
83 ++MBBI; in emitPrologue()
85 if (MBBI != MBB.end()) in emitPrologue()
86 DL = MBBI->getDebugLoc(); in emitPrologue()
98 BuildMI(MBB, MBBI, DL, TII.get(MSP430::SUB16ri), MSP430::SPW) in emitPrologue()
113 MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr(); in emitEpilogue() local
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/
DSPUFrameLowering.cpp92 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
97 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue()
104 MBBI = MBB.begin(); in emitPrologue()
119 BuildMI(MBB, MBBI, dl, TII.get(SPU::PROLOG_LABEL)).addSym(FrameLabel); in emitPrologue()
124 BuildMI(MBB, MBBI, dl, TII.get(SPU::STQDr32), SPU::R0).addImm(16) in emitPrologue()
128 BuildMI(MBB, MBBI, dl, TII.get(SPU::STQDr32), SPU::R1).addImm(FrameSize) in emitPrologue()
131 BuildMI(MBB, MBBI, dl, TII.get(SPU::AIr32), SPU::R1).addReg(SPU::R1) in emitPrologue()
136 BuildMI(MBB, MBBI, dl, TII.get(SPU::STQDr128), SPU::R2) in emitPrologue()
139 BuildMI(MBB, MBBI, dl, TII.get(SPU::ILr32), SPU::R2) in emitPrologue()
141 BuildMI(MBB, MBBI, dl, TII.get(SPU::STQXr32), SPU::R1) in emitPrologue()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCFrameLowering.cpp281 MachineBasicBlock::iterator MBBI = MI; in RemoveVRSaveCode() local
282 ++MBBI; in RemoveVRSaveCode()
283 assert(MBBI != Entry->end() && MBBI->getOpcode() == PPC::MTVRSAVE); in RemoveVRSaveCode()
284 MBBI->eraseFromParent(); in RemoveVRSaveCode()
293 for (MBBI = I->end(); MBBI != I->begin(); ) { in RemoveVRSaveCode()
294 --MBBI; in RemoveVRSaveCode()
295 if (MBBI->getOpcode() == PPC::MTVRSAVE) { in RemoveVRSaveCode()
296 MBBI->eraseFromParent(); // remove it. in RemoveVRSaveCode()
308 MBBI = MI; in RemoveVRSaveCode()
309 assert(MBBI != Entry->begin() && "UPDATE_VRSAVE is first instr in block?"); in RemoveVRSaveCode()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/
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()
84 for (auto MBBI = MBB.begin(), E = MBB.end(); MBBI != E; ++MBBI) { in runOnMachineFunction() local
85 MachineInstr &MI = *MBBI; in runOnMachineFunction()
136 for (auto MBBI = MBB.begin(), E = MBB.end(); MBBI != E; ++MBBI) { in runOnMachineFunction() local
137 MachineInstr &MI = *MBBI; in runOnMachineFunction()
146 BuildMI(MBB, MBBI, DL, TII.get(SP::NOP)); in runOnMachineFunction()
148 MachineBasicBlock::iterator NMBBI = std::next(MBBI); in runOnMachineFunction()
/external/llvm/lib/Target/SystemZ/
DSystemZElimCompare.cpp203 MachineBasicBlock::iterator MBBI = Compare, MBBE = Branch; in convertToBRCT() local
204 for (++MBBI; MBBI != MBBE; ++MBBI) in convertToBRCT()
205 if (getRegReferences(*MBBI, SrcReg)) in convertToBRCT()
305 MachineBasicBlock::iterator MBBI = MI, MBBE = Compare; in adjustCCMasksForInstr() local
306 for (++MBBI; MBBI != MBBE; ++MBBI) in adjustCCMasksForInstr()
307 MBBI->clearRegisterKills(SystemZ::CC, TRI); in adjustCCMasksForInstr()
342 MachineBasicBlock::iterator MBBI = Compare, MBBE = MBB.begin(); in optimizeCompareZero() local
345 while (MBBI != MBBE) { in optimizeCompareZero()
346 --MBBI; in optimizeCompareZero()
347 MachineInstr &MI = *MBBI; in optimizeCompareZero()
[all …]
DSystemZFrameLowering.cpp133 MachineBasicBlock::iterator MBBI, in spillCalleeSavedRegisters() argument
184 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, DL, TII->get(SystemZ::STMG)); in spillCalleeSavedRegisters()
212 TII->storeRegToStackSlot(MBB, MBBI, Reg, true, CSI[I].getFrameIdx(), in spillCalleeSavedRegisters()
222 MachineBasicBlock::iterator MBBI, in restoreCalleeSavedRegisters() argument
232 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in restoreCalleeSavedRegisters()
238 TII->loadRegFromStackSlot(MBB, MBBI, Reg, CSI[I].getFrameIdx(), in restoreCalleeSavedRegisters()
254 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, DL, TII->get(SystemZ::LMG)); in restoreCalleeSavedRegisters()
294 MachineBasicBlock::iterator &MBBI, in emitIncrement() argument
313 MachineInstr *MI = BuildMI(MBB, MBBI, DL, TII->get(Opcode), Reg) in emitIncrement()
328 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCFrameLowering.cpp261 MachineBasicBlock::iterator MBBI = MI; in RemoveVRSaveCode() local
262 ++MBBI; in RemoveVRSaveCode()
263 assert(MBBI != Entry->end() && MBBI->getOpcode() == PPC::MTVRSAVE); in RemoveVRSaveCode()
264 MBBI->eraseFromParent(); in RemoveVRSaveCode()
273 for (MBBI = I->end(); MBBI != I->begin(); ) { in RemoveVRSaveCode()
274 --MBBI; in RemoveVRSaveCode()
275 if (MBBI->getOpcode() == PPC::MTVRSAVE) { in RemoveVRSaveCode()
276 MBBI->eraseFromParent(); // remove it. in RemoveVRSaveCode()
288 MBBI = MI; in RemoveVRSaveCode()
289 assert(MBBI != Entry->begin() && "UPDATE_VRSAVE is first instr in block?"); in RemoveVRSaveCode()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86FrameLowering.cpp86 MachineBasicBlock::iterator &MBBI, in findDeadCallerSavedReg() argument
103 unsigned Opc = MBBI->getOpcode(); in findDeadCallerSavedReg()
117 for (unsigned i = 0, e = MBBI->getNumOperands(); i != e; ++i) { in findDeadCallerSavedReg()
118 MachineOperand &MO = MBBI->getOperand(i); in findDeadCallerSavedReg()
142 void emitSPUpdate(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, in emitSPUpdate() argument
152 DebugLoc DL = MBB.findDebugLoc(MBBI); in emitSPUpdate()
160 : findDeadCallerSavedReg(MBB, MBBI, TRI, Is64Bit); in emitSPUpdate()
165 MachineInstr *MI = BuildMI(MBB, MBBI, DL, TII.get(Opc)) in emitSPUpdate()
175 BuildMI(MBB, MBBI, DL, TII.get(Opc), StackPtr) in emitSPUpdate()
187 void mergeSPUpdatesUp(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, in mergeSPUpdatesUp() argument
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/Mips/
DMipsFrameLowering.cpp146 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
147 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue()
165 BuildMI(MBB, MBBI, dl, TII.get(Mips::NOREORDER)); in emitPrologue()
169 BuildMI(MBB, MBBI, dl, TII.get(Mips::CPLOAD)) in emitPrologue()
171 BuildMI(MBB, MBBI, dl, TII.get(Mips::NOMACRO)); in emitPrologue()
182 MBBI); in emitPrologue()
183 BuildMI(MBB, MBBI, dl, TII.get(Mips::ADDiu), Mips::SP) in emitPrologue()
188 BuildMI(MBB, MBBI, dl, TII.get(Mips::ATMACRO)); in emitPrologue()
192 BuildMI(MBB, MBBI, dl, in emitPrologue()
204 ++MBBI; in emitPrologue()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/XCore/
DXCoreFrameLowering.cpp62 MachineBasicBlock::iterator MBBI, in EmitDefCfaRegister() argument
67 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in EmitDefCfaRegister()
72 MachineBasicBlock::iterator MBBI, in EmitDefCfaOffset() argument
78 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in EmitDefCfaOffset()
83 MachineBasicBlock::iterator MBBI, const DebugLoc &dl, in EmitCfiOffset() argument
89 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in EmitCfiOffset()
100 MachineBasicBlock::iterator MBBI, const DebugLoc &dl, in IfNeededExtSP() argument
108 BuildMI(MBB, MBBI, dl, TII.get(Opcode)).addImm(OpImm); in IfNeededExtSP()
111 EmitDefCfaOffset(MBB, MBBI, dl, TII, Adjusted*4); in IfNeededExtSP()
123 MachineBasicBlock::iterator MBBI, const DebugLoc &dl, in IfNeededLDAWSP() argument
[all …]
/external/llvm/lib/Target/XCore/
DXCoreFrameLowering.cpp62 MachineBasicBlock::iterator MBBI, in EmitDefCfaRegister() argument
67 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in EmitDefCfaRegister()
72 MachineBasicBlock::iterator MBBI, in EmitDefCfaOffset() argument
77 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in EmitDefCfaOffset()
82 MachineBasicBlock::iterator MBBI, const DebugLoc &dl, in EmitCfiOffset() argument
87 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in EmitCfiOffset()
98 MachineBasicBlock::iterator MBBI, const DebugLoc &dl, in IfNeededExtSP() argument
107 BuildMI(MBB, MBBI, dl, TII.get(Opcode)).addImm(OpImm); in IfNeededExtSP()
110 EmitDefCfaOffset(MBB, MBBI, dl, TII, MMI, Adjusted*4); in IfNeededExtSP()
122 MachineBasicBlock::iterator MBBI, const DebugLoc &dl, in IfNeededLDAWSP() argument
[all …]

1234567891011