Home
last modified time | relevance | path

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

12

/external/llvm/lib/Transforms/Utils/
DDemoteRegToStack.cpp78 BasicBlock::iterator InsertPt; in DemoteRegToStack() local
80 InsertPt = &I; in DemoteRegToStack()
81 ++InsertPt; in DemoteRegToStack()
85 InsertPt = II.getNormalDest()->getFirstInsertionPt(); in DemoteRegToStack()
96 InsertPt = BB->getFirstInsertionPt(); in DemoteRegToStack()
100 for (; isa<PHINode>(InsertPt) || isa<LandingPadInst>(InsertPt); ++InsertPt) in DemoteRegToStack()
103 new StoreInst(&I, Slot, InsertPt); in DemoteRegToStack()
138 BasicBlock::iterator InsertPt = P; in DemotePHIToStack() local
140 for (; isa<PHINode>(InsertPt) || isa<LandingPadInst>(InsertPt); ++InsertPt) in DemotePHIToStack()
143 Value *V = new LoadInst(Slot, P->getName()+".reload", InsertPt); in DemotePHIToStack()
DLoopUnrollRuntime.cpp109 Instruction *InsertPt = PrologEnd->getTerminator(); in ConnectProlog() local
111 new ICmpInst(InsertPt, ICmpInst::ICMP_ULT, TripCount, in ConnectProlog()
125 BranchInst::Create(Exit, NewPH, BrLoopExit, InsertPt); in ConnectProlog()
126 InsertPt->eraseFromParent(); in ConnectProlog()
/external/llvm/lib/Target/Hexagon/
DHexagonCopyToCombine.cpp542 MachineBasicBlock::iterator InsertPt(DoInsertAtI1 ? I1 : I2); in combine() local
545 emitCombineRR(InsertPt, DoubleRegDest, HiOperand, LoOperand); in combine()
547 emitCombineRI(InsertPt, DoubleRegDest, HiOperand, LoOperand); in combine()
549 emitCombineIR(InsertPt, DoubleRegDest, HiOperand, LoOperand); in combine()
551 emitCombineII(InsertPt, DoubleRegDest, HiOperand, LoOperand); in combine()
557 void HexagonCopyToCombine::emitCombineII(MachineBasicBlock::iterator &InsertPt, in emitCombineII() argument
561 DebugLoc DL = InsertPt->getDebugLoc(); in emitCombineII()
562 MachineBasicBlock *BB = InsertPt->getParent(); in emitCombineII()
566 BuildMI(*BB, InsertPt, DL, TII->get(Hexagon::COMBINE_Ii), DoubleDestReg) in emitCombineII()
573 BuildMI(*BB, InsertPt, DL, TII->get(Hexagon::COMBINE_iI_V4), DoubleDestReg) in emitCombineII()
[all …]
DHexagonFrameLowering.cpp90 MachineBasicBlock::iterator InsertPt = MBB.begin(); in emitPrologue() local
122 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::ALLOCFRAME)).addImm(0); in emitPrologue()
125 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::CONST32_Int_Real), in emitPrologue()
127 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::SUB_rr), in emitPrologue()
132 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::ALLOCFRAME)).addImm(NumBytes); in emitPrologue()
/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp236 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in materializeRegForValue()
316 FuncInfo.InsertPt = getLastLocalValue(); in recomputeInsertPt()
317 FuncInfo.MBB = FuncInfo.InsertPt->getParent(); in recomputeInsertPt()
318 ++FuncInfo.InsertPt; in recomputeInsertPt()
320 FuncInfo.InsertPt = FuncInfo.MBB->getFirstNonPHI(); in recomputeInsertPt()
323 while (FuncInfo.InsertPt != FuncInfo.MBB->end() && in recomputeInsertPt()
324 FuncInfo.InsertPt->getOpcode() == TargetOpcode::EH_LABEL) in recomputeInsertPt()
325 ++FuncInfo.InsertPt; in recomputeInsertPt()
341 MachineBasicBlock::iterator OldInsertPt = FuncInfo.InsertPt; in enterLocalValueArea()
350 if (FuncInfo.InsertPt != FuncInfo.MBB->begin()) in leaveLocalValueArea()
[all …]
DSelectionDAGISel.cpp792 LastMBB = FuncInfo->MBB = Scheduler->EmitSchedule(FuncInfo->InsertPt); in CodeGenAndEmitDAG()
905 BuildMI(*MBB, FuncInfo->InsertPt, SDB->getCurDebugLoc(), II) in PrepareEHLandingPad()
1081 FuncInfo->InsertPt = FuncInfo->MBB->getFirstNonPHI(); in SelectAllBasicBlocks()
1115 if (FuncInfo->InsertPt != FuncInfo->MBB->begin()) in SelectAllBasicBlocks()
1116 FastIS->setLastLocalValue(std::prev(FuncInfo->InsertPt)); in SelectAllBasicBlocks()
1180 MachineBasicBlock::iterator SavedInsertPt = FuncInfo->InsertPt; in SelectAllBasicBlocks()
1383 FuncInfo->InsertPt = ParentMBB->end(); in FinishBasicBlock()
1393 FuncInfo->InsertPt = FailureMBB->end(); in FinishBasicBlock()
1413 FuncInfo->InsertPt = FuncInfo->MBB->end(); in FinishBasicBlock()
1429 FuncInfo->InsertPt = FuncInfo->MBB->end(); in FinishBasicBlock()
[all …]
/external/llvm/lib/Target/ARM/
DA15SDOptimizer.cpp529 MachineBasicBlock::iterator InsertPt(MI); in optimizeAllLanesPattern() local
532 InsertPt++; in optimizeAllLanesPattern()
539 unsigned DSub0 = createExtractSubreg(MBB, InsertPt, DL, Reg, in optimizeAllLanesPattern()
541 unsigned DSub1 = createExtractSubreg(MBB, InsertPt, DL, Reg, in optimizeAllLanesPattern()
544 unsigned Out1 = createDupLane(MBB, InsertPt, DL, DSub0, 0); in optimizeAllLanesPattern()
545 unsigned Out2 = createDupLane(MBB, InsertPt, DL, DSub0, 1); in optimizeAllLanesPattern()
546 Out = createVExt(MBB, InsertPt, DL, Out1, Out2); in optimizeAllLanesPattern()
548 unsigned Out3 = createDupLane(MBB, InsertPt, DL, DSub1, 0); in optimizeAllLanesPattern()
549 unsigned Out4 = createDupLane(MBB, InsertPt, DL, DSub1, 1); in optimizeAllLanesPattern()
550 Out2 = createVExt(MBB, InsertPt, DL, Out3, Out4); in optimizeAllLanesPattern()
[all …]
DARMFastISel.cpp296 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, in FastEmitInst_r()
299 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II) in FastEmitInst_r()
301 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in FastEmitInst_r()
322 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg) in FastEmitInst_rr()
326 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II) in FastEmitInst_rr()
329 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in FastEmitInst_rr()
352 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg) in FastEmitInst_rrr()
357 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II) in FastEmitInst_rrr()
361 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in FastEmitInst_rrr()
380 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg) in FastEmitInst_ri()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp187 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADDXri), in TargetMaterializeAlloca()
218 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg) in AArch64MaterializeFP()
231 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADRP), in AArch64MaterializeFP()
236 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg) in AArch64MaterializeFP()
263 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADRP), in AArch64MaterializeGV()
268 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::LDRXui), in AArch64MaterializeGV()
275 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADRP), in AArch64MaterializeGV()
279 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADDXri), in AArch64MaterializeGV()
471 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADDXri), in SimplifyAddress()
579 MachineInstrBuilder MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in EmitLoad()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCFastISel.cpp408 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(PPC::ADDI8), in PPCSimplifyAddress()
500 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg) in PPCEmitLoad()
506 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg) in PPCEmitLoad()
530 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg) in PPCEmitLoad()
616 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)) in PPCEmitStore()
624 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)) in PPCEmitStore()
644 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)) in PPCEmitStore()
708 BuildMI(*BrBB, FuncInfo.InsertPt, DbgLoc, TII.get(PPC::BCC)) in SelectBranch()
818 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(CmpOpc), DestReg) in PPCEmitCmp()
821 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(CmpOpc), DestReg) in PPCEmitCmp()
[all …]
/external/llvm/lib/Target/X86/
DX86FastISel.cpp414 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg); in X86FastEmitLoad()
436 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in X86FastEmitStore()
478 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)); in X86FastEmitStore()
512 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)); in X86FastEmitStore()
616 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), LoadReg); in handleConstantAddresses()
1057 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(TargetOpcode::COPY), in X86SelectRet()
1074 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(TargetOpcode::COPY), in X86SelectRet()
1081 …BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Subtarget->is64Bit() ? X86::RETQ : X86::… in X86SelectRet()
1165 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(CompareImmOpc)) in X86FastEmitCompare()
1177 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(CompareOpc)) in X86FastEmitCompare()
[all …]
/external/llvm/lib/Analysis/
DLoopInfo.cpp87 Instruction *InsertPt) const { in makeLoopInvariant()
89 return makeLoopInvariant(I, Changed, InsertPt); in makeLoopInvariant()
103 Instruction *InsertPt) const { in makeLoopInvariant()
115 if (!InsertPt) { in makeLoopInvariant()
120 InsertPt = Preheader->getTerminator(); in makeLoopInvariant()
124 if (!makeLoopInvariant(I->getOperand(i), Changed, InsertPt)) in makeLoopInvariant()
128 I->moveBefore(InsertPt); in makeLoopInvariant()
DScalarEvolutionExpander.cpp1598 Instruction *InsertPt = Builder.GetInsertPoint(); in expand() local
1604 InsertPt = Preheader->getTerminator(); in expand()
1609 InsertPt = L->getHeader()->getFirstInsertionPt(); in expand()
1616 InsertPt = L->getHeader()->getFirstInsertionPt(); in expand()
1617 while (InsertPt != Builder.GetInsertPoint() in expand()
1618 && (isInsertedInstruction(InsertPt) in expand()
1619 || isa<DbgInfoIntrinsic>(InsertPt))) { in expand()
1620 InsertPt = std::next(BasicBlock::iterator(InsertPt)); in expand()
1627 I = InsertedExpressions.find(std::make_pair(S, InsertPt)); in expand()
1632 Builder.SetInsertPoint(InsertPt->getParent(), InsertPt); in expand()
[all …]
/external/llvm/lib/IR/
DBasicBlock.cpp175 iterator InsertPt = getFirstNonPHI(); in getFirstInsertionPt() local
176 if (isa<LandingPadInst>(InsertPt)) ++InsertPt; in getFirstInsertionPt()
177 return InsertPt; in getFirstInsertionPt()
/external/llvm/include/llvm/CodeGen/
DMachineFunction.h339 void splice(iterator InsertPt, iterator MBBI) {
340 BasicBlocks.splice(InsertPt, BasicBlocks, MBBI);
342 void splice(iterator InsertPt, iterator MBBI, iterator MBBE) {
343 BasicBlocks.splice(InsertPt, BasicBlocks, MBBI, MBBE);
DFunctionLoweringInfo.h94 MachineBasicBlock::iterator InsertPt; variable
/external/llvm/lib/Transforms/Scalar/
DGVN.cpp857 Instruction *InsertPt, in CoerceAvailableValueToLoadType() argument
873 return new BitCastInst(StoredVal, LoadedTy, "", InsertPt); in CoerceAvailableValueToLoadType()
878 StoredVal = new PtrToIntInst(StoredVal, StoredValTy, "", InsertPt); in CoerceAvailableValueToLoadType()
886 StoredVal = new BitCastInst(StoredVal, TypeToCastTo, "", InsertPt); in CoerceAvailableValueToLoadType()
890 StoredVal = new IntToPtrInst(StoredVal, LoadedTy, "", InsertPt); in CoerceAvailableValueToLoadType()
903 StoredVal = new PtrToIntInst(StoredVal, StoredValTy, "", InsertPt); in CoerceAvailableValueToLoadType()
909 StoredVal = new BitCastInst(StoredVal, StoredValTy, "", InsertPt); in CoerceAvailableValueToLoadType()
916 StoredVal = BinaryOperator::CreateLShr(StoredVal, Val, "tmp", InsertPt); in CoerceAvailableValueToLoadType()
921 StoredVal = new TruncInst(StoredVal, NewIntTy, "trunc", InsertPt); in CoerceAvailableValueToLoadType()
928 return new IntToPtrInst(StoredVal, LoadedTy, "inttoptr", InsertPt); in CoerceAvailableValueToLoadType()
[all …]
DIndVarSimplify.cpp200 Instruction *InsertPt = nullptr; in getInsertPointForUses() local
206 if (!InsertPt) { in getInsertPointForUses()
207 InsertPt = InsertBB->getTerminator(); in getInsertPointForUses()
210 InsertBB = DT->findNearestCommonDominator(InsertPt->getParent(), InsertBB); in getInsertPointForUses()
211 InsertPt = InsertBB->getTerminator(); in getInsertPointForUses()
213 assert(InsertPt && "Missing phi operand"); in getInsertPointForUses()
215 DT->dominates(cast<Instruction>(Def), InsertPt)) && in getInsertPointForUses()
217 return InsertPt; in getInsertPointForUses()
1074 Instruction *InsertPt = L->getHeader()->begin(); in CreateWideIV() local
1075 WidePhi = cast<PHINode>(Rewriter.expandCodeFor(AddRec, WideType, InsertPt)); in CreateWideIV()
[all …]
DReassociate.cpp879 BasicBlock::iterator InsertPt; in NegateValue() local
882 InsertPt = II->getNormalDest()->begin(); in NegateValue()
884 InsertPt = InstInput; in NegateValue()
885 ++InsertPt; in NegateValue()
887 while (isa<PHINode>(InsertPt)) ++InsertPt; in NegateValue()
889 InsertPt = TheNeg->getParent()->getParent()->getEntryBlock().begin(); in NegateValue()
891 TheNeg->moveBefore(InsertPt); in NegateValue()
1036 BasicBlock::iterator InsertPt = BO; ++InsertPt; in RemoveFactorFromExpression() local
1049 V = BinaryOperator::CreateNeg(V, "neg", InsertPt); in RemoveFactorFromExpression()
/external/clang/lib/CodeGen/
DCGBuilder.h34 llvm::BasicBlock::iterator InsertPt) const;
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp508 BasicBlock::iterator InsertPt = UserBB->getFirstInsertionPt(); in SinkCast() local
511 InsertPt); in SinkCast()
601 BasicBlock::iterator InsertPt = UserBB->getFirstInsertionPt(); in OptimizeCmpExpression() local
605 CI->getOperand(1), "", InsertPt); in OptimizeCmpExpression()
684 BasicBlock::iterator InsertPt = TruncUserBB->getFirstInsertionPt(); in SinkShiftAndTruncate() local
688 BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, "", InsertPt); in SinkShiftAndTruncate()
691 BinaryOperator::CreateLShr(ShiftI->getOperand(0), CI, "", InsertPt); in SinkShiftAndTruncate()
779 BasicBlock::iterator InsertPt = UserBB->getFirstInsertionPt(); in OptimizeExtractBits() local
783 BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, "", InsertPt); in OptimizeExtractBits()
786 BinaryOperator::CreateLShr(ShiftI->getOperand(0), CI, "", InsertPt); in OptimizeExtractBits()
[all …]
/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp802 Instruction *InsertPt = NF->begin()->begin(); in DoPromotion() local
806 Value *TheAlloca = new AllocaInst(AgTy, nullptr, "", InsertPt); in DoPromotion()
816 InsertPt); in DoPromotion()
818 new StoreInst(I2++, Idx, InsertPt); in DoPromotion()
DDeadArgumentElimination.cpp954 Instruction *InsertPt = Call; in RemoveDeadStuffFromFunction() local
958 InsertPt = IP; in RemoveDeadStuffFromFunction()
974 InsertPt); in RemoveDeadStuffFromFunction()
979 RetVal = InsertValueInst::Create(RetVal, V, i, "oldret", InsertPt); in RemoveDeadStuffFromFunction()
/external/llvm/lib/Target/Mips/
DMipsFastISel.cpp98 return BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)); in EmitInst()
102 return BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), in EmitInst()
/external/llvm/include/llvm/IR/
DIRBuilder.h42 BasicBlock *BB, BasicBlock::iterator InsertPt) const { in InsertHelper() argument
43 if (BB) BB->getInstList().insert(InsertPt, I); in InsertHelper()
54 BasicBlock::iterator InsertPt; variable
74 InsertPt = nullptr; in ClearInsertionPoint()
78 BasicBlock::iterator GetInsertPoint() const { return InsertPt; } in GetInsertPoint()
85 InsertPt = BB->end(); in SetInsertPoint()
92 InsertPt = I; in SetInsertPoint()
101 InsertPt = IP; in SetInsertPoint()
493 this->InsertHelper(I, Name, BB, InsertPt);

12