/external/llvm/lib/Transforms/Utils/ |
D | DemoteRegToStack.cpp | 77 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()
|
D | LoopUnrollRuntime.cpp | 108 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/ |
D | FastISel.cpp | 236 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 …]
|
D | SelectionDAGISel.cpp | 706 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/ |
D | ARMFastISel.cpp | 298 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 …]
|
D | A15SDOptimizer.cpp | 535 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/ |
D | CodePlacementOpt.cpp | 53 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/ |
D | X86FastISel.cpp | 229 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/ |
D | HexagonFrameLowering.cpp | 95 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/ |
D | LoopInfo.cpp | 85 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()
|
D | ScalarEvolutionExpander.cpp | 1498 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/ |
D | BasicBlock.cpp | 171 iterator InsertPt = getFirstNonPHI(); in getFirstInsertionPt() local 172 if (isa<LandingPadInst>(InsertPt)) ++InsertPt; in getFirstInsertionPt() 173 return InsertPt; in getFirstInsertionPt()
|
D | IRBuilder.cpp | 50 BB->getInstList().insert(InsertPt, BCI); in getCastedInt8PtrValue()
|
/external/llvm/include/llvm/CodeGen/ |
D | MachineFunction.h | 337 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);
|
D | FunctionLoweringInfo.h | 93 MachineBasicBlock::iterator InsertPt; variable
|
/external/llvm/lib/Transforms/Scalar/ |
D | GVN.cpp | 757 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 …]
|
D | IndVarSimplify.cpp | 196 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 …]
|
D | Reassociate.cpp | 801 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()
|
D | LICM.cpp | 549 BasicBlock::iterator InsertPt = ExitBlock->getFirstInsertionPt(); in sink() local 556 I.moveBefore(InsertPt); in sink() 562 ExitBlock->getInstList().insert(InsertPt, New); in sink()
|
D | CodeGenPrepare.cpp | 514 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/ |
D | ArgumentPromotion.cpp | 790 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()
|
D | DeadArgumentElimination.cpp | 920 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/ |
D | IRBuilder.h | 40 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/ |
D | InstCombine.h | 65 BasicBlock *BB, BasicBlock::iterator InsertPt) const { in InsertHelper() argument 66 IRBuilderDefaultInserter<true>::InsertHelper(I, Name, BB, InsertPt); in InsertHelper()
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCOpts.cpp | 1990 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()
|