Home
last modified time | relevance | path

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

1234

/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
102 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue()
117 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -ArgRegsSaveSize, in emitPrologue()
122 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
129 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -(NumBytes - ArgRegsSaveSize), in emitPrologue()
134 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
168 if (MBBI != MBB.end() && MBBI->getOpcode() == ARM::tPUSH) { in emitPrologue()
169 ++MBBI; in emitPrologue()
[all …]
DARMLoadStoreOptimizer.cpp89 MachineBasicBlock::iterator MBBI; member
93 : Offset(o), Reg(r), isKill(k), Position(p), MBBI(i), Merged(false) {} in MemOpQueueEntry()
102 MachineBasicBlock::iterator MBBI,
105 bool MergeOps(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
132 MachineBasicBlock::iterator &MBBI);
134 MachineBasicBlock::iterator MBBI,
139 MachineBasicBlock::iterator MBBI,
379 MachineBasicBlock::iterator MBBI, in UpdateBaseRegUses() argument
386 for (; MBBI != MBB.end(); ++MBBI) { in UpdateBaseRegUses()
388 unsigned Opc = MBBI->getOpcode(); in UpdateBaseRegUses()
[all …]
DARMFrameLowering.cpp115 MachineBasicBlock::iterator &MBBI, DebugLoc dl, in emitRegPlusImmediate() argument
122 emitARMRegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes, in emitRegPlusImmediate()
125 emitT2RegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes, in emitRegPlusImmediate()
130 MachineBasicBlock::iterator &MBBI, DebugLoc dl, in emitSPUpdate() argument
135 emitRegPlusImmediate(isARM, MBB, MBBI, dl, TII, ARM::SP, ARM::SP, NumBytes, in emitSPUpdate()
228 MachineBasicBlock::iterator MBBI, in emitAligningInstructions() argument
249 AddDefaultPred(BuildMI(MBB, MBBI, DL, TII.get(ARM::BFC), Reg) in emitAligningInstructions()
254 AddDefaultPred(BuildMI(MBB, MBBI, DL, TII.get(ARM::BICri), Reg) in emitAligningInstructions()
263 BuildMI(MBB, MBBI, DL, TII.get(ARM::MOVsi), Reg) in emitAligningInstructions()
267 BuildMI(MBB, MBBI, DL, TII.get(ARM::MOVsi), Reg) in emitAligningInstructions()
[all …]
DARMExpandPseudoInsts.cpp61 MachineBasicBlock::iterator MBBI);
63 void ExpandVLD(MachineBasicBlock::iterator &MBBI);
64 void ExpandVST(MachineBasicBlock::iterator &MBBI);
65 void ExpandLaneOp(MachineBasicBlock::iterator &MBBI);
66 void ExpandVTBL(MachineBasicBlock::iterator &MBBI,
69 MachineBasicBlock::iterator &MBBI);
380 void ARMExpandPseudo::ExpandVLD(MachineBasicBlock::iterator &MBBI) { in ExpandVLD() argument
381 MachineInstr &MI = *MBBI; in ExpandVLD()
389 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, MI.getDebugLoc(), in ExpandVLD()
445 void ARMExpandPseudo::ExpandVST(MachineBasicBlock::iterator &MBBI) { in ExpandVST() argument
[all …]
DThumb2ITBlockPass.cpp167 MachineBasicBlock::iterator MBBI = MBB.begin(), E = MBB.end(); in InsertITInstructions() local
168 while (MBBI != E) { in InsertITInstructions()
169 MachineInstr *MI = &*MBBI; in InsertITInstructions()
174 ++MBBI; in InsertITInstructions()
183 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, dl, TII->get(ARM::t2IT)) in InsertITInstructions()
192 ++MBBI; in InsertITInstructions()
203 for (; MBBI != E && Pos && in InsertITInstructions()
204 (!MI->isBranch() && !MI->isReturn()) ; ++MBBI) { in InsertITInstructions()
205 if (MBBI->isDebugValue()) in InsertITInstructions()
208 MachineInstr *NMI = &*MBBI; in InsertITInstructions()
[all …]
DThumb2InstrInfo.cpp62 MachineBasicBlock::iterator MBBI = Tail; in ReplaceTailWithBranchTo() local
65 --MBBI; in ReplaceTailWithBranchTo()
74 while (Count && MBBI != E) { in ReplaceTailWithBranchTo()
75 if (MBBI->isDebugValue()) { in ReplaceTailWithBranchTo()
76 --MBBI; in ReplaceTailWithBranchTo()
79 if (MBBI->getOpcode() == ARM::t2IT) { in ReplaceTailWithBranchTo()
80 unsigned Mask = MBBI->getOperand(1).getImm(); in ReplaceTailWithBranchTo()
82 MBBI->eraseFromParent(); in ReplaceTailWithBranchTo()
86 MBBI->getOperand(1).setImm((Mask & MaskOff) | MaskOn); in ReplaceTailWithBranchTo()
90 --MBBI; in ReplaceTailWithBranchTo()
[all …]
/external/llvm/lib/Target/SystemZ/
DSystemZFrameLowering.cpp125 MachineBasicBlock::iterator MBBI, in spillCalleeSavedRegisters() argument
135 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in spillCalleeSavedRegisters()
176 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, DL, TII->get(SystemZ::STMG)); in spillCalleeSavedRegisters()
204 TII->storeRegToStackSlot(MBB, MBBI, Reg, true, CSI[I].getFrameIdx(), in spillCalleeSavedRegisters()
214 MachineBasicBlock::iterator MBBI, in restoreCalleeSavedRegisters() argument
224 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in restoreCalleeSavedRegisters()
230 TII->loadRegFromStackSlot(MBB, MBBI, Reg, CSI[I].getFrameIdx(), in restoreCalleeSavedRegisters()
246 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, DL, TII->get(SystemZ::LMG)); in restoreCalleeSavedRegisters()
285 MachineBasicBlock::iterator &MBBI, in emitIncrement() argument
304 MachineInstr *MI = BuildMI(MBB, MBBI, DL, TII->get(Opcode), Reg) in emitIncrement()
[all …]
DSystemZElimCompare.cpp192 MachineBasicBlock::iterator MBBI = Compare, MBBE = Branch; in convertToBRCT() local
193 for (++MBBI; MBBI != MBBE; ++MBBI) in convertToBRCT()
194 if (getRegReferences(MBBI, SrcReg)) in convertToBRCT()
295 MachineBasicBlock::iterator MBBI = MI, MBBE = Compare; in adjustCCMasksForInstr() local
296 for (++MBBI; MBBI != MBBE; ++MBBI) in adjustCCMasksForInstr()
297 MBBI->clearRegisterKills(SystemZ::CC, TRI); in adjustCCMasksForInstr()
331 MachineBasicBlock::iterator MBBI = Compare, MBBE = MBB.begin(); in optimizeCompareZero() local
334 while (MBBI != MBBE) { in optimizeCompareZero()
335 --MBBI; in optimizeCompareZero()
336 MachineInstr *MI = MBBI; in optimizeCompareZero()
[all …]
/external/llvm/lib/Target/XCore/
DXCoreFrameLowering.cpp63 MachineBasicBlock::iterator MBBI, DebugLoc dl, in EmitDefCfaRegister() argument
68 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in EmitDefCfaRegister()
73 MachineBasicBlock::iterator MBBI, DebugLoc dl, in EmitDefCfaOffset() argument
78 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in EmitDefCfaOffset()
83 MachineBasicBlock::iterator MBBI, DebugLoc dl, in EmitCfiOffset() argument
88 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in EmitCfiOffset()
99 MachineBasicBlock::iterator MBBI, DebugLoc dl, in IfNeededExtSP() argument
108 BuildMI(MBB, MBBI, dl, TII.get(Opcode)).addImm(OpImm); in IfNeededExtSP()
111 EmitDefCfaOffset(MBB, MBBI, dl, TII, MMI, Adjusted*4); in IfNeededExtSP()
123 MachineBasicBlock::iterator MBBI, DebugLoc dl, in IfNeededLDAWSP() argument
[all …]
DXCoreFrameToArgsOffsetElim.cpp52 for (MachineBasicBlock::iterator MBBI = MBB.begin(), EE = MBB.end(); in runOnMachineFunction() local
53 MBBI != EE; ++MBBI) { in runOnMachineFunction()
54 if (MBBI->getOpcode() == XCore::FRAME_TO_ARGS_OFFSET) { in runOnMachineFunction()
55 MachineInstr *OldInst = MBBI; in runOnMachineFunction()
57 MBBI = TII.loadImmediate(MBB, MBBI, Reg, StackSize); in runOnMachineFunction()
/external/llvm/lib/Target/Sparc/
DSparcFrameLowering.cpp42 MachineBasicBlock::iterator MBBI, in emitSPAdjustment() argument
47 DebugLoc dl = (MBBI != MBB.end()) ? MBBI->getDebugLoc() : DebugLoc(); in emitSPAdjustment()
52 BuildMI(MBB, MBBI, dl, TII.get(ADDri), SP::O6) in emitSPAdjustment()
64 BuildMI(MBB, MBBI, dl, TII.get(SP::SETHIi), SP::G1) 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()
92 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
[all …]
/external/llvm/lib/Target/MSP430/
DMSP430FrameLowering.cpp49 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
50 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue()
67 BuildMI(MBB, MBBI, DL, TII.get(MSP430::PUSH16r)) in emitPrologue()
71 BuildMI(MBB, MBBI, DL, TII.get(MSP430::MOV16rr), MSP430::FP) in emitPrologue()
83 while (MBBI != MBB.end() && (MBBI->getOpcode() == MSP430::PUSH16r)) in emitPrologue()
84 ++MBBI; in emitPrologue()
86 if (MBBI != MBB.end()) in emitPrologue()
87 DL = MBBI->getDebugLoc(); in emitPrologue()
99 BuildMI(MBB, MBBI, DL, TII.get(MSP430::SUB16ri), MSP430::SP) in emitPrologue()
114 MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr(); in emitEpilogue() local
[all …]
/external/llvm/lib/Target/X86/
DX86FrameLowering.cpp139 MachineBasicBlock::iterator &MBBI, in findDeadCallerSavedReg() argument
156 unsigned Opc = MBBI->getOpcode(); in findDeadCallerSavedReg()
172 for (unsigned i = 0, e = MBBI->getNumOperands(); i != e; ++i) { in findDeadCallerSavedReg()
173 MachineOperand &MO = MBBI->getOperand(i); in findDeadCallerSavedReg()
209 void emitSPUpdate(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, in emitSPUpdate() argument
224 DebugLoc DL = MBB.findDebugLoc(MBBI); in emitSPUpdate()
235 Reg = findDeadCallerSavedReg(MBB, MBBI, TRI, Is64BitTarget); in emitSPUpdate()
239 BuildMI(MBB, MBBI, DL, TII.get(Opc), Reg) in emitSPUpdate()
244 MachineInstr *MI = BuildMI(MBB, MBBI, DL, TII.get(Opc), StackPtr) in emitSPUpdate()
258 : findDeadCallerSavedReg(MBB, MBBI, TRI, Is64BitTarget); in emitSPUpdate()
[all …]
DX86PadShortFunction.cpp70 MachineBasicBlock::iterator &MBBI,
183 for (MachineBasicBlock::iterator MBBI = MBB->begin(); in cyclesUntilReturn() local
184 MBBI != MBB->end(); ++MBBI) { in cyclesUntilReturn()
185 MachineInstr *MI = MBBI; in cyclesUntilReturn()
206 MachineBasicBlock::iterator &MBBI, in addPadding() argument
208 DebugLoc DL = MBBI->getDebugLoc(); in addPadding()
211 BuildMI(*MBB, MBBI, DL, TII->get(X86::NOOP)); in addPadding()
212 BuildMI(*MBB, MBBI, DL, TII->get(X86::NOOP)); in addPadding()
/external/llvm/lib/Target/PowerPC/
DPPCFrameLowering.cpp263 MachineBasicBlock::iterator MBBI = MI; in RemoveVRSaveCode() local
264 ++MBBI; in RemoveVRSaveCode()
265 assert(MBBI != Entry->end() && MBBI->getOpcode() == PPC::MTVRSAVE); in RemoveVRSaveCode()
266 MBBI->eraseFromParent(); in RemoveVRSaveCode()
275 for (MBBI = I->end(); MBBI != I->begin(); ) { in RemoveVRSaveCode()
276 --MBBI; in RemoveVRSaveCode()
277 if (MBBI->getOpcode() == PPC::MTVRSAVE) { in RemoveVRSaveCode()
278 MBBI->eraseFromParent(); // remove it. in RemoveVRSaveCode()
290 MBBI = MI; in RemoveVRSaveCode()
291 assert(MBBI != Entry->begin() && "UPDATE_VRSAVE is first instr in block?"); in RemoveVRSaveCode()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64LoadStoreOptimizer.cpp493 MachineBasicBlock::iterator MBBI = I; in findMatchingInsn() local
495 ++MBBI; in findMatchingInsn()
521 for (unsigned Count = 0; MBBI != E && Count < Limit; ++MBBI) { in findMatchingInsn()
522 MachineInstr *MI = MBBI; in findMatchingInsn()
592 return MBBI; in findMatchingInsn()
601 return MBBI; in findMatchingInsn()
760 MachineBasicBlock::iterator MBBI = I; in findMatchingUpdateInsnForward() local
784 ++MBBI; in findMatchingUpdateInsnForward()
785 for (unsigned Count = 0; MBBI != E; ++MBBI) { in findMatchingUpdateInsnForward()
786 MachineInstr *MI = MBBI; in findMatchingUpdateInsnForward()
[all …]
DAArch64ExpandPseudoInsts.cpp41 bool expandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI);
42 bool expandMOVImm(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
90 MachineBasicBlock::iterator &MBBI, in tryOrrMovk() argument
99 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::ORRXri)) in tryOrrMovk()
109 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::MOVKXi)) in tryOrrMovk()
141 MachineBasicBlock::iterator &MBBI, in tryToreplicateChunks() argument
166 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::ORRXri)) in tryToreplicateChunks()
186 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::MOVKXi)) in tryToreplicateChunks()
211 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::MOVKXi)) in tryToreplicateChunks()
275 MachineBasicBlock::iterator &MBBI, in trySequenceOfOnes() argument
[all …]
DAArch64FrameLowering.cpp205 MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, in emitCalleeSavedFrameMoves() argument
212 DebugLoc DL = MBB.findDebugLoc(MBBI); in emitCalleeSavedFrameMoves()
247 BuildMI(MBB, MBBI, DL, TII->get(TargetOpcode::CFI_INSTRUCTION)) in emitCalleeSavedFrameMoves()
255 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
265 DebugLoc DL = MBB.findDebugLoc(MBBI); in emitPrologue()
285 emitFrameOffset(MBB, MBBI, DL, AArch64::SP, AArch64::SP, -NumBytes, TII, in emitPrologue()
291 BuildMI(MBB, MBBI, DL, TII->get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
306 assert((MBBI->getOpcode() == AArch64::STPXpre || in emitPrologue()
307 MBBI->getOpcode() == AArch64::STPDpre) && in emitPrologue()
308 MBBI->getOperand(3).getReg() == AArch64::SP && in emitPrologue()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonFrameLowering.cpp80 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
83 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue()
140 MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr(); in hasTailCall() local
141 unsigned RetOpcode = MBBI->getOpcode(); in hasTailCall()
148 MachineBasicBlock::iterator MBBI = std::prev(MBB.end()); in emitEpilogue() local
149 DebugLoc dl = MBBI->getDebugLoc(); in emitEpilogue()
155 MachineBasicBlock::iterator MBBI = std::prev(MBB.end()); in emitEpilogue() local
160 if (MBBI->getOpcode() == Hexagon::EH_RETURN_JMPR) { in emitEpilogue()
161 assert(MBBI->getOperand(0).isReg() && "Offset should be in register!"); in emitEpilogue()
162 BuildMI(MBB, MBBI, dl, TII.get(Hexagon::L2_deallocframe)); in emitEpilogue()
[all …]
/external/llvm/lib/Target/Mips/
DMips16FrameLowering.cpp40 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
41 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue()
52 TII.makeFrame(Mips::SP, StackSize, MBB, MBBI); in emitPrologue()
57 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
72 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
77 BuildMI(MBB, MBBI, dl, TII.get(Mips::MoveR3216), Mips::S0) in emitPrologue()
84 MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr(); in emitEpilogue() local
88 DebugLoc dl = MBBI->getDebugLoc(); in emitEpilogue()
95 BuildMI(MBB, MBBI, dl, TII.get(Mips::Move32R16), Mips::SP) in emitEpilogue()
100 TII.restoreFrame(Mips::SP, StackSize, MBB, MBBI); in emitEpilogue()
DMipsOptimizePICCall.cpp75 bool visitNode(MBBInfo &MBBI);
187 MBBInfo &MBBI = WorkList.back(); in runOnMachineFunction() local
191 if (MBBI.isVisited()) { in runOnMachineFunction()
192 MBBI.postVisit(); in runOnMachineFunction()
198 MBBI.preVisit(ScopedHT); in runOnMachineFunction()
199 Changed |= visitNode(MBBI); in runOnMachineFunction()
200 const MachineDomTreeNode *Node = MBBI.getNode(); in runOnMachineFunction()
208 bool OptimizePICCall::visitNode(MBBInfo &MBBI) { in visitNode() argument
210 MachineBasicBlock *MBB = MBBI.getNode()->getBlock(); in visitNode()
/external/llvm/lib/CodeGen/
DStackMapLivenessAnalysis.cpp125 for (MachineFunction::iterator MBBI = MF->begin(), MBBE = MF->end(); in calculateLiveness() local
126 MBBI != MBBE; ++MBBI) { in calculateLiveness()
127 DEBUG(dbgs() << "****** BB " << MBBI->getName() << " ******\n"); in calculateLiveness()
129 LiveRegs.addLiveOuts(MBBI); in calculateLiveness()
133 for (MachineBasicBlock::reverse_iterator I = MBBI->rbegin(), in calculateLiveness()
134 E = MBBI->rend(); I != E; ++I) { in calculateLiveness()
DSlotIndexes.cpp177 MachineBasicBlock::iterator MBBI = End; in repairIndexesInRange() local
179 while (ListI != ListB || MBBI != Begin || (includeStart && !pastStart)) { in repairIndexesInRange()
185 MachineInstr *MI = (MBBI != MBB->end() && !pastStart) ? MBBI : nullptr; in repairIndexesInRange()
186 bool MBBIAtBegin = MBBI == Begin && (!includeStart || pastStart); in repairIndexesInRange()
190 if (MBBI != Begin) in repairIndexesInRange()
191 --MBBI; in repairIndexesInRange()
195 if (MBBI != Begin) in repairIndexesInRange()
196 --MBBI; in repairIndexesInRange()
DExpandISelPseudos.cpp54 for (MachineBasicBlock::iterator MBBI = MBB->begin(), MBBE = MBB->end(); in runOnMachineFunction() local
55 MBBI != MBBE; ) { in runOnMachineFunction()
56 MachineInstr *MI = MBBI++; in runOnMachineFunction()
67 MBBI = NewMBB->begin(); in runOnMachineFunction()
/external/llvm/include/llvm/CodeGen/
DRegisterScavenging.h36 MachineBasicBlock::iterator MBBI; variable
90 while (MBBI != I) forward(); in forward()
99 while (MBBI != I) unprocess(); in unprocess()
106 MBBI = I; in skipTo()
110 return MBBI; in getCurrentPosition()
154 return scavengeRegister(RegClass, MBBI, SPAdj); in scavengeRegister()

1234