Home
last modified time | relevance | path

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

12

/external/llvm/lib/Transforms/Utils/
DDemoteRegToStack.cpp77 BasicBlock::iterator InsertPt; in DemoteRegToStack() local
79 InsertPt = &I; in DemoteRegToStack()
80 ++InsertPt; in DemoteRegToStack()
84 InsertPt = II.getNormalDest()->getFirstInsertionPt(); in DemoteRegToStack()
95 InsertPt = BB->getFirstInsertionPt(); in DemoteRegToStack()
99 for (; isa<PHINode>(InsertPt) || isa<LandingPadInst>(InsertPt); ++InsertPt) in DemoteRegToStack()
102 new StoreInst(&I, Slot, InsertPt); in DemoteRegToStack()
137 BasicBlock::iterator InsertPt = P; in DemotePHIToStack() local
139 for (; isa<PHINode>(InsertPt) || isa<LandingPadInst>(InsertPt); ++InsertPt) in DemotePHIToStack()
142 Value *V = new LoadInst(Slot, P->getName()+".reload", InsertPt); in DemotePHIToStack()
DLoopUnrollRuntime.cpp108 Instruction *InsertPt = PrologEnd->getTerminator(); in ConnectProlog() local
110 new ICmpInst(InsertPt, ICmpInst::ICMP_ULT, TripCount, in ConnectProlog()
124 BranchInst::Create(Exit, NewPH, BrLoopExit, InsertPt); in ConnectProlog()
125 InsertPt->eraseFromParent(); in ConnectProlog()
/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp236 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, 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.cpp706 LastMBB = FuncInfo->MBB = Scheduler->EmitSchedule(FuncInfo->InsertPt); in CodeGenAndEmitDAG()
818 BuildMI(*MBB, FuncInfo->InsertPt, SDB->getCurDebugLoc(), II) in PrepareEHLandingPad()
901 FuncInfo->InsertPt = User; in TryToFoldFastISelLoad()
1040 FuncInfo->InsertPt = FuncInfo->MBB->getFirstNonPHI(); in SelectAllBasicBlocks()
1069 if (FuncInfo->InsertPt != FuncInfo->MBB->begin()) in SelectAllBasicBlocks()
1070 FastIS->setLastLocalValue(llvm::prior(FuncInfo->InsertPt)); in SelectAllBasicBlocks()
1134 MachineBasicBlock::iterator SavedInsertPt = FuncInfo->InsertPt; in SelectAllBasicBlocks()
1233 FuncInfo->InsertPt = FuncInfo->MBB->end(); in FinishBasicBlock()
1249 FuncInfo->InsertPt = FuncInfo->MBB->end(); in FinishBasicBlock()
1305 FuncInfo->InsertPt = FuncInfo->MBB->end(); in FinishBasicBlock()
[all …]
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp298 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, II, ResultReg)); in FastEmitInst_()
309 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, II, ResultReg) in FastEmitInst_r()
312 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, II) in FastEmitInst_r()
314 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, in FastEmitInst_r()
329 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, II, ResultReg) in FastEmitInst_rr()
333 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, II) in FastEmitInst_rr()
336 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, in FastEmitInst_rr()
352 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, II, ResultReg) in FastEmitInst_rrr()
357 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, II) in FastEmitInst_rrr()
361 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, in FastEmitInst_rrr()
[all …]
DA15SDOptimizer.cpp535 MachineBasicBlock::iterator InsertPt(MI); in optimizeAllLanesPattern() local
538 InsertPt++; in optimizeAllLanesPattern()
542 unsigned DSub0 = createExtractSubreg(MBB, InsertPt, DL, Reg, in optimizeAllLanesPattern()
544 unsigned DSub1 = createExtractSubreg(MBB, InsertPt, DL, Reg, in optimizeAllLanesPattern()
547 unsigned Out1 = createDupLane(MBB, InsertPt, DL, DSub0, 0); in optimizeAllLanesPattern()
548 unsigned Out2 = createDupLane(MBB, InsertPt, DL, DSub0, 1); in optimizeAllLanesPattern()
549 Out = createVExt(MBB, InsertPt, DL, Out1, Out2); in optimizeAllLanesPattern()
551 unsigned Out3 = createDupLane(MBB, InsertPt, DL, DSub1, 0); in optimizeAllLanesPattern()
552 unsigned Out4 = createDupLane(MBB, InsertPt, DL, DSub1, 1); in optimizeAllLanesPattern()
553 Out2 = createVExt(MBB, InsertPt, DL, Out3, Out4); in optimizeAllLanesPattern()
[all …]
/external/llvm/lib/CodeGen/
DCodePlacementOpt.cpp53 MachineFunction::iterator InsertPt,
131 MachineFunction::iterator InsertPt, in Splice() argument
134 assert(Begin != MF.begin() && End != MF.begin() && InsertPt != MF.begin() && in Splice()
139 MF.splice(InsertPt, Begin, End); in Splice()
257 MachineFunction::iterator InsertPt = in MoveDiscontiguousLoopBlocks() local
263 InsertPt = TopMBB; in MoveDiscontiguousLoopBlocks()
275 if (InsertPt != MF.begin() && HasAnalyzableTerminator(prior(InsertPt))) in MoveDiscontiguousLoopBlocks()
326 Splice(MF, InsertPt, Begin, End); in MoveDiscontiguousLoopBlocks()
/external/llvm/lib/Target/X86/
DX86FastISel.cpp229 addFullAddress(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, in X86FastEmitLoad()
248 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, in X86FastEmitStore()
279 addFullAddress(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, in X86FastEmitStore()
308 addFullAddress(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, in X86FastEmitStore()
564 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(Opc), LoadReg); in X86SelectAddress()
809 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(TargetOpcode::COPY), in X86SelectRet()
824 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(TargetOpcode::COPY), in X86SelectRet()
831 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(X86::RET)); in X86SelectRet()
911 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(CompareImmOpc)) in X86FastEmitCompare()
923 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(CompareOpc)) in X86FastEmitCompare()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonFrameLowering.cpp95 MachineBasicBlock::iterator InsertPt = MBB.begin(); in emitPrologue() local
149 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::ALLOCFRAME)).addImm(0); in emitPrologue()
152 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::CONST32_Int_Real), in emitPrologue()
154 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::SUB_rr), in emitPrologue()
159 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::ALLOCFRAME)).addImm(NumBytes); in emitPrologue()
/external/llvm/lib/Analysis/
DLoopInfo.cpp85 Instruction *InsertPt) const { in makeLoopInvariant()
87 return makeLoopInvariant(I, Changed, InsertPt); in makeLoopInvariant()
101 Instruction *InsertPt) const { in makeLoopInvariant()
113 if (!InsertPt) { in makeLoopInvariant()
118 InsertPt = Preheader->getTerminator(); in makeLoopInvariant()
122 if (!makeLoopInvariant(I->getOperand(i), Changed, InsertPt)) in makeLoopInvariant()
126 I->moveBefore(InsertPt); in makeLoopInvariant()
DScalarEvolutionExpander.cpp1498 Instruction *InsertPt = Builder.GetInsertPoint(); in expand() local
1504 InsertPt = Preheader->getTerminator(); in expand()
1509 InsertPt = L->getHeader()->getFirstInsertionPt(); in expand()
1516 InsertPt = L->getHeader()->getFirstInsertionPt(); in expand()
1517 while (InsertPt != Builder.GetInsertPoint() in expand()
1518 && (isInsertedInstruction(InsertPt) in expand()
1519 || isa<DbgInfoIntrinsic>(InsertPt))) { in expand()
1520 InsertPt = llvm::next(BasicBlock::iterator(InsertPt)); in expand()
1527 I = InsertedExpressions.find(std::make_pair(S, InsertPt)); in expand()
1533 Builder.SetInsertPoint(InsertPt->getParent(), InsertPt); in expand()
[all …]
/external/llvm/lib/IR/
DBasicBlock.cpp171 iterator InsertPt = getFirstNonPHI(); in getFirstInsertionPt() local
172 if (isa<LandingPadInst>(InsertPt)) ++InsertPt; in getFirstInsertionPt()
173 return InsertPt; in getFirstInsertionPt()
DIRBuilder.cpp50 BB->getInstList().insert(InsertPt, BCI); in getCastedInt8PtrValue()
/external/llvm/include/llvm/CodeGen/
DMachineFunction.h337 void splice(iterator InsertPt, iterator MBBI) {
338 BasicBlocks.splice(InsertPt, BasicBlocks, MBBI);
340 void splice(iterator InsertPt, iterator MBBI, iterator MBBE) {
341 BasicBlocks.splice(InsertPt, BasicBlocks, MBBI, MBBE);
DFunctionLoweringInfo.h93 MachineBasicBlock::iterator InsertPt; variable
/external/llvm/lib/Transforms/Scalar/
DGVN.cpp757 Instruction *InsertPt, in CoerceAvailableValueToLoadType() argument
773 return new BitCastInst(StoredVal, LoadedTy, "", InsertPt); in CoerceAvailableValueToLoadType()
778 StoredVal = new PtrToIntInst(StoredVal, StoredValTy, "", InsertPt); in CoerceAvailableValueToLoadType()
786 StoredVal = new BitCastInst(StoredVal, TypeToCastTo, "", InsertPt); in CoerceAvailableValueToLoadType()
790 StoredVal = new IntToPtrInst(StoredVal, LoadedTy, "", InsertPt); in CoerceAvailableValueToLoadType()
803 StoredVal = new PtrToIntInst(StoredVal, StoredValTy, "", InsertPt); in CoerceAvailableValueToLoadType()
809 StoredVal = new BitCastInst(StoredVal, StoredValTy, "", InsertPt); in CoerceAvailableValueToLoadType()
816 StoredVal = BinaryOperator::CreateLShr(StoredVal, Val, "tmp", InsertPt); in CoerceAvailableValueToLoadType()
821 StoredVal = new TruncInst(StoredVal, NewIntTy, "trunc", InsertPt); in CoerceAvailableValueToLoadType()
828 return new IntToPtrInst(StoredVal, LoadedTy, "inttoptr", InsertPt); in CoerceAvailableValueToLoadType()
[all …]
DIndVarSimplify.cpp196 Instruction *InsertPt = 0; in getInsertPointForUses() local
202 if (!InsertPt) { in getInsertPointForUses()
203 InsertPt = InsertBB->getTerminator(); in getInsertPointForUses()
206 InsertBB = DT->findNearestCommonDominator(InsertPt->getParent(), InsertBB); in getInsertPointForUses()
207 InsertPt = InsertBB->getTerminator(); in getInsertPointForUses()
209 assert(InsertPt && "Missing phi operand"); in getInsertPointForUses()
211 DT->dominates(cast<Instruction>(Def), InsertPt)) && in getInsertPointForUses()
213 return InsertPt; in getInsertPointForUses()
1002 Instruction *InsertPt = L->getHeader()->begin(); in CreateWideIV() local
1003 WidePhi = cast<PHINode>(Rewriter.expandCodeFor(AddRec, WideType, InsertPt)); in CreateWideIV()
[all …]
DReassociate.cpp801 BasicBlock::iterator InsertPt; in NegateValue() local
804 InsertPt = II->getNormalDest()->begin(); in NegateValue()
806 InsertPt = InstInput; in NegateValue()
807 ++InsertPt; in NegateValue()
809 while (isa<PHINode>(InsertPt)) ++InsertPt; in NegateValue()
811 InsertPt = TheNeg->getParent()->getParent()->getEntryBlock().begin(); in NegateValue()
813 TheNeg->moveBefore(InsertPt); in NegateValue()
958 BasicBlock::iterator InsertPt = BO; ++InsertPt; in RemoveFactorFromExpression() local
971 V = BinaryOperator::CreateNeg(V, "neg", InsertPt); in RemoveFactorFromExpression()
DLICM.cpp549 BasicBlock::iterator InsertPt = ExitBlock->getFirstInsertionPt(); in sink() local
556 I.moveBefore(InsertPt); in sink()
562 ExitBlock->getInstList().insert(InsertPt, New); in sink()
DCodeGenPrepare.cpp514 BasicBlock::iterator InsertPt = UserBB->getFirstInsertionPt(); in OptimizeNoopCopyExpression() local
517 InsertPt); in OptimizeNoopCopyExpression()
570 BasicBlock::iterator InsertPt = UserBB->getFirstInsertionPt(); in OptimizeCmpExpression() local
574 CI->getOperand(1), "", InsertPt); in OptimizeCmpExpression()
1793 BasicBlock::iterator InsertPt = UserBB->getFirstInsertionPt(); in OptimizeExtUses() local
1794 InsertedTrunc = new TruncInst(I, Src->getType(), "", InsertPt); in OptimizeExtUses()
/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp790 Instruction *InsertPt = NF->begin()->begin(); in DoPromotion() local
794 Value *TheAlloca = new AllocaInst(AgTy, 0, "", InsertPt); in DoPromotion()
804 InsertPt); in DoPromotion()
806 new StoreInst(I2++, Idx, InsertPt); in DoPromotion()
DDeadArgumentElimination.cpp920 Instruction *InsertPt = Call; in RemoveDeadStuffFromFunction() local
924 InsertPt = IP; in RemoveDeadStuffFromFunction()
940 InsertPt); in RemoveDeadStuffFromFunction()
945 RetVal = InsertValueInst::Create(RetVal, V, i, "oldret", InsertPt); in RemoveDeadStuffFromFunction()
/external/llvm/include/llvm/IR/
DIRBuilder.h40 BasicBlock *BB, BasicBlock::iterator InsertPt) const { in InsertHelper() argument
41 if (BB) BB->getInstList().insert(InsertPt, I); in InsertHelper()
52 BasicBlock::iterator InsertPt; variable
72 BasicBlock::iterator GetInsertPoint() const { return InsertPt; } in GetInsertPoint()
79 InsertPt = BB->end(); in SetInsertPoint()
86 InsertPt = I; in SetInsertPoint()
94 InsertPt = IP; in SetInsertPoint()
431 this->InsertHelper(I, Name, BB, InsertPt);
/external/llvm/lib/Transforms/InstCombine/
DInstCombine.h65 BasicBlock *BB, BasicBlock::iterator InsertPt) const { in InsertHelper() argument
66 IRBuilderDefaultInserter<true>::InsertHelper(I, Name, BB, InsertPt); in InsertHelper()
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCOpts.cpp1990 Instruction *InsertPt = *PI; in MoveCalls() local
1992 new BitCastInst(Arg, ParamTy, "", InsertPt); in MoveCalls()
1996 MyArg, "", InsertPt); in MoveCalls()
2006 " At insertion point: " << *InsertPt in MoveCalls()
2012 Instruction *InsertPt = *PI; in MoveCalls() local
2014 new BitCastInst(Arg, ParamTy, "", InsertPt); in MoveCalls()
2016 "", InsertPt); in MoveCalls()
2026 " At insertion point: " << *InsertPt in MoveCalls()

12