Home
last modified time | relevance | path

Searched refs:InsertPt (Results 1 – 25 of 56) sorted by relevance

123

/external/llvm/lib/Target/WebAssembly/
DWebAssemblyFrameLowering.cpp71 MachineBasicBlock::iterator InsertPt, in adjustStackPointer() argument
76 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::CONST_I32), SPReg) in adjustStackPointer()
84 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::LOAD_I32), SPReg) in adjustStackPointer()
90 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::CONST_I32), OffsetReg) in adjustStackPointer()
92 BuildMI(MBB, InsertPt, DL, in adjustStackPointer()
98 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::CONST_I32), OffsetReg) in adjustStackPointer()
102 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::STORE_I32), WebAssembly::SP32) in adjustStackPointer()
137 auto InsertPt = MBB.begin(); in emitPrologue() local
140 adjustStackPointer(StackSize, false, MF, MBB, TII, InsertPt, DL); in emitPrologue()
151 auto InsertPt = MBB.getFirstTerminator(); in emitEpilogue() local
[all …]
DWebAssemblyArgumentMove.cpp88 MachineBasicBlock::iterator InsertPt = EntryMBB.end(); in runOnMachineFunction() local
94 InsertPt = MII; in runOnMachineFunction()
101 for (auto I = InsertPt, E = EntryMBB.end(); I != E; ++I) { in runOnMachineFunction()
104 EntryMBB.insert(InsertPt, MI->removeFromParent()); in runOnMachineFunction()
/external/llvm/lib/Target/Hexagon/
DHexagonCopyToCombine.cpp527 MachineBasicBlock::iterator InsertPt(DoInsertAtI1 ? I1 : I2); in combine() local
530 emitCombineRR(InsertPt, DoubleRegDest, HiOperand, LoOperand); in combine()
532 emitCombineRI(InsertPt, DoubleRegDest, HiOperand, LoOperand); in combine()
534 emitCombineIR(InsertPt, DoubleRegDest, HiOperand, LoOperand); in combine()
536 emitCombineII(InsertPt, DoubleRegDest, HiOperand, LoOperand); in combine()
542 void HexagonCopyToCombine::emitCombineII(MachineBasicBlock::iterator &InsertPt, in emitCombineII() argument
546 DebugLoc DL = InsertPt->getDebugLoc(); in emitCombineII()
547 MachineBasicBlock *BB = InsertPt->getParent(); in emitCombineII()
551 BuildMI(*BB, InsertPt, DL, TII->get(Hexagon::A2_combineii), DoubleDestReg) in emitCombineII()
558 BuildMI(*BB, InsertPt, DL, TII->get(Hexagon::A4_combineii), DoubleDestReg) in emitCombineII()
[all …]
DHexagonFrameLowering.cpp451 MachineBasicBlock::iterator InsertPt = MBB.begin(); in insertPrologueInBlock() local
477 BuildMI(MBB, InsertPt, dl, HII.get(Hexagon::S2_allocframe)) in insertPrologueInBlock()
484 BuildMI(MBB, InsertPt, dl, HII.get(Hexagon::CONST32_Int_Real), in insertPrologueInBlock()
486 BuildMI(MBB, InsertPt, dl, HII.get(Hexagon::A2_sub), SP) in insertPrologueInBlock()
490 BuildMI(MBB, InsertPt, dl, HII.get(Hexagon::S2_allocframe)) in insertPrologueInBlock()
496 BuildMI(MBB, InsertPt, dl, HII.get(Hexagon::A2_andir), SP) in insertPrologueInBlock()
521 MachineBasicBlock::iterator InsertPt = MBB.getFirstTerminator(); in insertEpilogueInBlock() local
523 if (InsertPt != MBB.end()) in insertEpilogueInBlock()
524 DL = InsertPt->getDebugLoc(); in insertEpilogueInBlock()
530 BuildMI(MBB, InsertPt, DL, HII.get(Hexagon::L2_deallocframe)); in insertEpilogueInBlock()
[all …]
/external/llvm/lib/Transforms/Utils/
DDemoteRegToStack.cpp90 BasicBlock::iterator InsertPt; in DemoteRegToStack() local
92 InsertPt = ++I.getIterator(); in DemoteRegToStack()
93 for (; isa<PHINode>(InsertPt) || InsertPt->isEHPad(); ++InsertPt) in DemoteRegToStack()
97 InsertPt = II.getNormalDest()->getFirstInsertionPt(); in DemoteRegToStack()
100 new StoreInst(&I, Slot, &*InsertPt); in DemoteRegToStack()
135 BasicBlock::iterator InsertPt = P->getIterator(); in DemotePHIToStack() local
137 for (; isa<PHINode>(InsertPt) || InsertPt->isEHPad(); ++InsertPt) in DemotePHIToStack()
140 Value *V = new LoadInst(Slot, P->getName() + ".reload", &*InsertPt); in DemotePHIToStack()
DLoopUnrollRuntime.cpp115 Instruction *InsertPt = PrologEnd->getTerminator(); in ConnectProlog() local
116 IRBuilder<> B(InsertPt); in ConnectProlog()
134 InsertPt->eraseFromParent(); in ConnectProlog()
/external/llvm/lib/Target/NVPTX/
DNVPTXLowerKernelArgs.cpp170 BasicBlock::iterator InsertPt; in markPointerAsGlobal() local
173 InsertPt = Arg->getParent()->getEntryBlock().begin(); in markPointerAsGlobal()
176 InsertPt = ++cast<Instruction>(Ptr)->getIterator(); in markPointerAsGlobal()
177 assert(InsertPt != InsertPt->getParent()->end() && in markPointerAsGlobal()
184 Ptr->getName(), &*InsertPt); in markPointerAsGlobal()
186 Ptr->getName(), &*InsertPt); in markPointerAsGlobal()
/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp132 SavedInsertPt = FuncInfo.InsertPt; in flushLocalValueMap()
256 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in materializeConstant()
340 FuncInfo.InsertPt = getLastLocalValue(); in recomputeInsertPt()
341 FuncInfo.MBB = FuncInfo.InsertPt->getParent(); in recomputeInsertPt()
342 ++FuncInfo.InsertPt; in recomputeInsertPt()
344 FuncInfo.InsertPt = FuncInfo.MBB->getFirstNonPHI(); in recomputeInsertPt()
347 while (FuncInfo.InsertPt != FuncInfo.MBB->end() && in recomputeInsertPt()
348 FuncInfo.InsertPt->getOpcode() == TargetOpcode::EH_LABEL) in recomputeInsertPt()
349 ++FuncInfo.InsertPt; in recomputeInsertPt()
365 MachineBasicBlock::iterator OldInsertPt = FuncInfo.InsertPt; in enterLocalValueArea()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCFastISel.cpp430 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(PPC::ADDI8), in PPCSimplifyAddress()
537 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg) in PPCEmitLoad()
545 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg) in PPCEmitLoad()
569 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg) in PPCEmitLoad()
670 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)) in PPCEmitStore()
681 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)) in PPCEmitStore()
702 auto MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)) in PPCEmitStore()
776 BuildMI(*BrBB, FuncInfo.InsertPt, DbgLoc, TII.get(PPC::BCC)) in SelectBranch()
885 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(CmpOpc), DestReg) in PPCEmitCmp()
888 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(CmpOpc), DestReg) in PPCEmitCmp()
[all …]
/external/llvm/lib/Target/ARM/
DA15SDOptimizer.cpp534 MachineBasicBlock::iterator InsertPt(MI); in optimizeAllLanesPattern() local
537 InsertPt++; in optimizeAllLanesPattern()
544 unsigned DSub0 = createExtractSubreg(MBB, InsertPt, DL, Reg, in optimizeAllLanesPattern()
546 unsigned DSub1 = createExtractSubreg(MBB, InsertPt, DL, Reg, in optimizeAllLanesPattern()
549 unsigned Out1 = createDupLane(MBB, InsertPt, DL, DSub0, 0); in optimizeAllLanesPattern()
550 unsigned Out2 = createDupLane(MBB, InsertPt, DL, DSub0, 1); in optimizeAllLanesPattern()
551 Out = createVExt(MBB, InsertPt, DL, Out1, Out2); in optimizeAllLanesPattern()
553 unsigned Out3 = createDupLane(MBB, InsertPt, DL, DSub1, 0); in optimizeAllLanesPattern()
554 unsigned Out4 = createDupLane(MBB, InsertPt, DL, DSub1, 1); in optimizeAllLanesPattern()
555 Out2 = createVExt(MBB, InsertPt, DL, Out3, Out4); in optimizeAllLanesPattern()
[all …]
DARMFastISel.cpp294 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, in fastEmitInst_r()
297 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II) in fastEmitInst_r()
299 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in fastEmitInst_r()
320 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg) in fastEmitInst_rr()
324 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II) in fastEmitInst_rr()
327 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in fastEmitInst_rr()
350 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg) in fastEmitInst_rrr()
355 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II) in fastEmitInst_rrr()
359 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in fastEmitInst_rrr()
378 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg) in fastEmitInst_ri()
[all …]
/external/llvm/lib/Target/X86/
DX86FastISel.cpp422 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg); in X86FastEmitLoad()
449 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in X86FastEmitStore()
515 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)); in X86FastEmitStore()
549 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)); in X86FastEmitStore()
653 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), LoadReg); in handleConstantAddresses()
1094 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in X86SelectRet()
1111 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in X86SelectRet()
1118 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in X86SelectRet()
1219 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, CurDbgLoc, TII.get(CompareImmOpc)) in X86FastEmitCompare()
1231 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, CurDbgLoc, TII.get(CompareOpc)) in X86FastEmitCompare()
[all …]
DX86InstrInfo.h372 MachineBasicBlock::iterator InsertPt,
380 MachineBasicBlock::iterator InsertPt,
468 MachineBasicBlock::iterator InsertPt,
561 MachineBasicBlock::iterator InsertPt,
/external/llvm/include/llvm/CodeGen/
DMachineFunction.h380 void splice(iterator InsertPt, iterator MBBI) {
381 BasicBlocks.splice(InsertPt, BasicBlocks, MBBI);
383 void splice(iterator InsertPt, MachineBasicBlock *MBB) {
384 BasicBlocks.splice(InsertPt, BasicBlocks, MBB);
386 void splice(iterator InsertPt, iterator MBBI, iterator MBBE) {
387 BasicBlocks.splice(InsertPt, BasicBlocks, MBBI, MBBE);
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp745 BasicBlock::iterator InsertPt = UserBB->getFirstInsertionPt(); in SinkCast() local
746 assert(InsertPt != UserBB->end()); in SinkCast()
748 CI->getType(), "", &*InsertPt); in SinkCast()
835 auto *InsertPt = AddI->hasOneUse() ? CI : AddI; in CombineUAddWithOverflow() local
838 CallInst::Create(F, {A, B}, "uadd.overflow", InsertPt); in CombineUAddWithOverflow()
839 auto *UAdd = ExtractValueInst::Create(UAddWithOverflow, 0, "uadd", InsertPt); in CombineUAddWithOverflow()
841 ExtractValueInst::Create(UAddWithOverflow, 1, "overflow", InsertPt); in CombineUAddWithOverflow()
885 BasicBlock::iterator InsertPt = UserBB->getFirstInsertionPt(); in SinkCmpExpression() local
886 assert(InsertPt != UserBB->end()); in SinkCmpExpression()
889 CI->getOperand(0), CI->getOperand(1), "", &*InsertPt); in SinkCmpExpression()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp325 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADDXri), in fastMaterializeAlloca()
348 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(TargetOpcode::COPY), in materializeInt()
381 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc1), TmpReg) in materializeFP()
385 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in materializeFP()
400 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADRP), in materializeFP()
405 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg) in materializeFP()
432 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADRP), in materializeGV()
437 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::LDRXui), in materializeGV()
447 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADRP), in materializeGV()
452 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADDXri), in materializeGV()
[all …]
/external/llvm/lib/Target/SystemZ/
DSystemZInstrInfo.cpp757 MachineBasicBlock::iterator InsertPt, int FrameIndex) const { in foldMemoryOperandImpl() argument
767 return BuildMI(*InsertPt->getParent(), InsertPt, MI->getDebugLoc(), in foldMemoryOperandImpl()
790 return BuildMI(*InsertPt->getParent(), InsertPt, MI->getDebugLoc(), in foldMemoryOperandImpl()
804 return BuildMI(*InsertPt->getParent(), InsertPt, MI->getDebugLoc(), in foldMemoryOperandImpl()
816 return BuildMI(*InsertPt->getParent(), InsertPt, MI->getDebugLoc(), in foldMemoryOperandImpl()
842 return BuildMI(*InsertPt->getParent(), InsertPt, MI->getDebugLoc(), in foldMemoryOperandImpl()
853 return BuildMI(*InsertPt->getParent(), InsertPt, MI->getDebugLoc(), in foldMemoryOperandImpl()
876 MachineInstrBuilder MIB = BuildMI(*InsertPt->getParent(), InsertPt, in foldMemoryOperandImpl()
892 MachineBasicBlock::iterator InsertPt, MachineInstr *LoadMI) const { in foldMemoryOperandImpl() argument
DSystemZInstrInfo.h188 MachineBasicBlock::iterator InsertPt,
192 MachineBasicBlock::iterator InsertPt,
/external/llvm/lib/Analysis/
DLoopInfo.cpp81 Instruction *InsertPt) const { in makeLoopInvariant()
83 return makeLoopInvariant(I, Changed, InsertPt); in makeLoopInvariant()
97 Instruction *InsertPt) const { in makeLoopInvariant()
109 if (!InsertPt) { in makeLoopInvariant()
114 InsertPt = Preheader->getTerminator(); in makeLoopInvariant()
118 if (!makeLoopInvariant(I->getOperand(i), Changed, InsertPt)) in makeLoopInvariant()
122 I->moveBefore(InsertPt); in makeLoopInvariant()
DScalarEvolutionExpander.cpp1606 Instruction *InsertPt = &*Builder.GetInsertPoint(); in expand() local
1612 InsertPt = Preheader->getTerminator(); in expand()
1617 InsertPt = &*L->getHeader()->getFirstInsertionPt(); in expand()
1624 InsertPt = &*L->getHeader()->getFirstInsertionPt(); in expand()
1625 while (InsertPt != Builder.GetInsertPoint() in expand()
1626 && (isInsertedInstruction(InsertPt) in expand()
1627 || isa<DbgInfoIntrinsic>(InsertPt))) { in expand()
1628 InsertPt = &*std::next(InsertPt->getIterator()); in expand()
1634 auto I = InsertedExpressions.find(std::make_pair(S, InsertPt)); in expand()
1639 Builder.SetInsertPoint(InsertPt); in expand()
[all …]
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp143 Instruction *InsertPt, Type *Ty);
224 Instruction *InsertPt = nullptr; in getInsertPointForUses() local
230 if (!InsertPt) { in getInsertPointForUses()
231 InsertPt = InsertBB->getTerminator(); in getInsertPointForUses()
234 InsertBB = DT->findNearestCommonDominator(InsertPt->getParent(), InsertBB); in getInsertPointForUses()
235 InsertPt = InsertBB->getTerminator(); in getInsertPointForUses()
237 assert(InsertPt && "Missing phi operand"); in getInsertPointForUses()
241 return InsertPt; in getInsertPointForUses()
243 assert(DT->dominates(DefI, InsertPt) && "def does not dominate all uses"); in getInsertPointForUses()
246 assert(!L || L->contains(LI->getLoopFor(InsertPt->getParent()))); in getInsertPointForUses()
[all …]
/external/llvm/lib/IR/
DBasicBlock.cpp199 iterator InsertPt = FirstNonPHI->getIterator(); in getFirstInsertionPt() local
200 if (InsertPt->isEHPad()) ++InsertPt; in getFirstInsertionPt()
201 return InsertPt; in getFirstInsertionPt()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUInstrInfo.h90 MachineBasicBlock::iterator InsertPt,
94 MachineBasicBlock::iterator InsertPt,
DAMDGPUInstrInfo.cpp157 MachineBasicBlock::iterator InsertPt, int FrameIndex) const { in foldMemoryOperandImpl() argument
163 MachineBasicBlock::iterator InsertPt, MachineInstr *LoadMI) const { in foldMemoryOperandImpl() argument
/external/llvm/lib/Target/Mips/
DMipsFastISel.cpp150 return BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)); in emitInst()
153 return BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), in emitInst()
285 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Mips::LEA_ADDiu), in fastMaterializeAlloca()
756 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg) in emitLoad()
807 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)) in emitStore()
916 BuildMI(*BrBB, FuncInfo.InsertPt, DbgLoc, TII.get(Mips::BGTZ)) in selectBranch()
1161 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in processCallArgs()
1228 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in finishCall()
1309 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Mips::JALR), in fastLowerCall()
1500 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in selectRet()
[all …]

123