/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | MachineLoopInfo.cpp | 92 if (TopMBB->getIterator() != Begin) { in getTopBlock() 93 MachineBasicBlock *PriorMBB = &*std::prev(TopMBB->getIterator()); in getTopBlock() 96 if (TopMBB->getIterator() == Begin) in getTopBlock() 98 PriorMBB = &*std::prev(TopMBB->getIterator()); in getTopBlock() 107 if (BotMBB->getIterator() != std::prev(End)) { in getBottomBlock() 108 MachineBasicBlock *NextMBB = &*std::next(BotMBB->getIterator()); in getBottomBlock() 111 if (BotMBB == &*std::next(BotMBB->getIterator())) in getBottomBlock() 113 NextMBB = &*std::next(BotMBB->getIterator()); in getBottomBlock()
|
H A D | LiveRangeShrink.cpp | 221 MachineBasicBlock::iterator I = std::next(Insert->getIterator()); in runOnMachineFunction() 225 if (I == MI.getIterator()) in runOnMachineFunction() 236 MachineBasicBlock::iterator EndIter = std::next(MI.getIterator()); in runOnMachineFunction() 242 MBB.splice(I, &MBB, MI.getIterator(), EndIter); in runOnMachineFunction()
|
H A D | IndirectBrExpandPass.cpp | 116 (void)new UnreachableInst(F.getContext(), IBr->getIterator()); in runImpl() 186 (void)new UnreachableInst(F.getContext(), IBr->getIterator()); in runImpl() 213 IBr->getIterator()); in runImpl() 247 BranchInst::Create(SwitchBB, IBr->getIterator()); in runImpl()
|
H A D | KCFI.cpp | 85 finalizeBundle(MBB, Check->getIterator(), std::next(MBBI->getIterator())); in emitCheck()
|
H A D | BranchRelaxation.cpp | 255 MF->insert(++OrigMBB.getIterator(), NewBB); in splitBlockBeforeInstr() 279 MF->insert(++OrigBB->getIterator(), NewBB); in splitBlockBeforeInstr() 287 NewBB->splice(NewBB->end(), OrigBB, MI.getIterator(), OrigBB->end()); in splitBlockBeforeInstr() 582 std::prev(RestoreBB->getIterator()) in relaxBranchInstructions() 622 MachineBasicBlock *PrevBB = &*std::prev(DestBB->getIterator()); in runOnMachineFunction() 631 MF->splice(DestBB->getIterator(), RestoreBB->getIterator()); in runOnMachineFunction()
|
H A D | SjLjEHPrepare.cpp | 185 IRBuilder<> Builder(SelI->getParent(), std::next(SelI->getIterator())); in substituteLPadValues() 389 BranchInst::Create(II->getNormalDest(), II->getIterator()); in setupEntryBlockAndCallSites() 448 CallInst::Create(CallSiteFn, CallSiteNum, "", Invokes[I]->getIterator()); in setupEntryBlockAndCallSites() 466 RegisterFn, FuncCtx, "", EntryBB->getTerminator()->getIterator()); in setupEntryBlockAndCallSites() 484 std::next(StackAddr->getIterator())); in setupEntryBlockAndCallSites() 494 CallInst::Create(UnregisterFn, FuncCtx, "", InsertPoint->getIterator()); in setupEntryBlockAndCallSites()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
H A D | ObjCARCContract.cpp | 131 BasicBlock::const_iterator I = ++Call->getIterator(); in optimizeRetainCall() 288 BasicBlock::iterator I = Store->getIterator(); in findRetainForStoreStrongContraction() 385 Args[0] = new BitCastInst(Args[0], I8XX, "", Store->getIterator()); in tryToContractReleaseIntoStoreStrong() 387 Args[1] = new BitCastInst(Args[1], I8X, "", Store->getIterator()); in tryToContractReleaseIntoStoreStrong() 390 Decl, Args, "", Store->getIterator(), BlockColors); in tryToContractReleaseIntoStoreStrong() 448 BasicBlock::iterator BBI = Inst->getIterator(); in tryToPeepholeInstruction() 459 BBI = Pred->getTerminator()->getIterator(); in tryToPeepholeInstruction() 476 Inst->getIterator(), BlockColors); in tryToPeepholeInstruction() 487 new StoreInst(Null, CI->getArgOperand(0), CI->getIterator()); in tryToPeepholeInstruction() 578 BundledInsts->insertRVCallWithColors(I->getIterator(), CI, BlockColors); in run() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyCFGStackify.cpp | 285 I = std::next(ScopeTop->getIterator()); in placeBlockMarker() 411 auto Iter = std::next(Bottom->getIterator()); in placeLoopMarker() 414 Iter = std::next(Bottom->getIterator()); in placeLoopMarker() 493 auto Iter = std::next(Bottom->getIterator()); in placeTryMarker() 496 Iter = std::next(Bottom->getIterator()); in placeTryMarker() 509 I = std::next(ScopeTop->getIterator()); in placeTryMarker() 573 if (MI.getIterator() != Header->begin() && in placeTryMarker() 574 std::prev(MI.getIterator())->isEHLabel()) { in placeTryMarker() 575 AfterSet.insert(&*std::prev(MI.getIterator())); in placeTryMarker() 576 ThrowingCall = &*std::prev(MI.getIterator()); in placeTryMarker() [all …]
|
H A D | WebAssemblyDebugValueManager.cpp | 36 for (MachineBasicBlock::iterator MI = std::next(Def->getIterator()), in WebAssemblyDebugValueManager() 74 for (MachineBasicBlock::iterator MI = std::next(Def->getIterator()), in getSinkableDebugValues() 95 for (MachineBasicBlock::iterator MI = std::next(Def->getIterator()), in getSinkableDebugValues() 102 ME = Insert->getIterator(); in getSinkableDebugValues() 224 for (MachineBasicBlock::iterator MI = std::next(Def->getIterator()), in isInsertSamePlace()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | DemoteRegToStack.cpp | 86 PN->getIncomingBlock(i)->getTerminator()->getIterator()); in DemoteRegToStack() 95 VolatileLoads, U->getIterator()); in DemoteRegToStack() 105 InsertPt = ++I.getIterator(); in DemoteRegToStack() 159 P->getIncomingBlock(i)->getTerminator()->getIterator()); in DemotePHIToStack() 163 BasicBlock::iterator InsertPt = P->getIterator(); in DemotePHIToStack() 177 new LoadInst(P->getType(), Slot, P->getName() + ".reload", User->getIterator()); in DemotePHIToStack()
|
H A D | InlineFunction.cpp | 187 BasicBlock::iterator SplitPoint = ++CallerLPad->getIterator(); in getInnerResumeDest() 615 for (Function::iterator I = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad() 632 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad() 690 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedEHPad() 695 CleanupReturnInst::Create(CleanupPad, UnwindDest, CRI->getIterator()); in HandleInlinedEHPad() 743 CatchSwitch->getIterator()); in HandleInlinedEHPad() 766 for (Function::iterator BB = FirstNewBlock->getIterator(), in HandleInlinedEHPad() 978 Instruction *NewInst = CallBase::Create(I, OpBundles, I->getIterator()); in PropagateOperandBundles() 1343 auto BeginIt = Begin->getIterator(); in MayContainThrowingOrExitingCallAfterCB() 1344 assert(BeginIt != End->getIterator() && "Non-empty BB has empty iterator"); in MayContainThrowingOrExitingCallAfterCB() [all …]
|
H A D | LowerInvoke.cpp | 55 CallArgs, OpBundles, "", II->getIterator()); in runImpl() 63 BranchInst::Create(II->getNormalDest(), II->getIterator()); in runImpl()
|
H A D | CloneFunction.cpp | 274 BB = cast<BasicBlock>(VMap[&OldFunc->front()])->getIterator(), in CloneFunctionInto() 615 CloneDbgRecordsToHere(NewInst, OldTI->getIterator()); in CloneBlock() 634 CloneDbgRecordsToHere(NewInst, OldTI->getIterator()); in CloneBlock() 690 PFC.CloneBlock(StartingBB, StartingInst->getIterator(), CloneWorklist); in CloneAndPruneIntoFromInst() 860 Function::iterator Begin = cast<BasicBlock>(VMap[StartingBB])->getIterator(); in CloneAndPruneIntoFromInst() 937 for (Function::iterator I = cast<BasicBlock>(VMap[StartingBB])->getIterator(), in CloneAndPruneIntoFromInst() 1054 F->splice(Before->getIterator(), F, NewPH->getIterator()); in cloneLoopWithPreheader() 1055 F->splice(Before->getIterator(), F, NewLoop->getHeader()->getIterator(), in cloneLoopWithPreheader() 1201 auto ItStart = IStart->getIterator(); in cloneAndAdaptNoAliasScopes() 1202 auto ItEnd = IEnd->getIterator(); in cloneAndAdaptNoAliasScopes()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | SlotIndexes.h | 255 return SlotIndex(&*++listEntry()->getIterator(), Slot_Block); in getNextSlot() 263 return SlotIndex(&*++listEntry()->getIterator(), getSlot()); in getNextIndex() 275 return SlotIndex(&*--listEntry()->getIterator(), Slot_Dead); in getPrevSlot() 283 return SlotIndex(&*--listEntry()->getIterator(), getSlot()); in getPrevIndex() 382 auto BundleStart = getBundleStart(MI.getIterator()); 383 auto BundleEnd = getBundleEnd(MI.getIterator()); 404 IndexList::iterator I = Index.listEntry()->getIterator(); in getNextNonNullIndex() 545 nextItr = getIndexAfter(MI).listEntry()->getIterator(); 549 prevItr = getIndexBefore(MI).listEntry()->getIterator(); 619 indexList.insert(insEntry->getIterator(), *startEntry); in insertMBBInMaps()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86FastPreTileConfig.cpp | 330 MachineInstrBuilder AddrPHI = BuildMI(*MBB, ++PHI.getIterator(), DebugLoc(), in convertPHI() 333 MachineInstrBuilder RowPHI = BuildMI(*MBB, ++PHI.getIterator(), DebugLoc(), in convertPHI() 336 MachineInstrBuilder ColPHI = BuildMI(*MBB, ++PHI.getIterator(), DebugLoc(), in convertPHI() 386 InsertPos = TileDefMI->getIterator(); in convertPHI() 556 I = ++LastShapeMI->getIterator(); in configBasicBlock() 558 I = ++MI.getIterator(); in configBasicBlock() 601 Config(*(++LastShapeMI->getIterator())); in configBasicBlock() 624 spill(++MI.getIterator(), TileReg, false); in configBasicBlock() 631 reload(UseMI.getIterator(), TileReg, RowMO, ColMO); in configBasicBlock() 636 reload(UseMI.getIterator(), TileReg, RowMO, ColMO); in configBasicBlock() [all …]
|
H A D | X86FlagsCopyLowering.cpp | 153 MachineInstr &PrevI = *std::prev(SplitI.getIterator()); in splitBlock() 157 assert(!std::prev(PrevI.getIterator())->isTerminator() && in splitBlock() 167 std::any_of(SplitI.getIterator(), MBB.instr_end(), in splitBlock() 185 NewMBB.splice(NewMBB.end(), &MBB, SplitI.getIterator(), MBB.end()); in splitBlock() 437 auto TestPos = CopyDefI.getIterator(); in runOnMachineFunction() 505 if (HasEFLAGSClobber(HoistMBB->getFirstTerminator()->getIterator(), in runOnMachineFunction() 511 TestPos = TestMBB->getFirstTerminator()->getIterator(); in runOnMachineFunction() 565 ? std::next(CopyI->getIterator()) in runOnMachineFunction() 605 auto JmpIt = MI.getIterator(); in runOnMachineFunction() 802 auto MIB = BuildMI(*MI.getParent(), MI.getIterator(), MI.getDebugLoc(), in rewriteSetCC() [all …]
|
H A D | X86TileConfig.cpp | 176 BuildMI(MF.front(), ++ConstMI->getIterator(), DL, in INITIALIZE_PASS_DEPENDENCY() 187 auto Iter = DefMI.getIterator(); in INITIALIZE_PASS_DEPENDENCY() 190 Iter = ConstMI->getIterator(); in INITIALIZE_PASS_DEPENDENCY()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | BasicBlock.cpp | 128 InstList.insert(Inst.getIterator(), in convertFromNewDbgValues() 203 NewParent->insert(InsertBefore->getIterator(), this); in insertInto() 274 getParent()->getBasicBlockList().remove(getIterator()); in removeFromParent() 278 return getParent()->getBasicBlockList().erase(getIterator()); in eraseFromParent() 282 getParent()->splice(MovePos, getParent(), getIterator()); in moveBefore() 286 MovePos->getParent()->splice(++MovePos->getIterator(), getParent(), in moveAfter() 287 getIterator()); in moveAfter() 376 BasicBlock::const_iterator It = I->getIterator(); in getFirstNonPHIIt() 419 const_iterator InsertPt = FirstNonPHI->getIterator(); in getFirstInsertionPt() 433 const_iterator InsertPt = FirstNonPHI->getIterator(); in getFirstNonPHIOrDbgOrAlloca() [all …]
|
H A D | Instruction.cpp | 30 : InsertAt(InsertBefore ? InsertBefore->getIterator() in InsertPosition() 82 getParent()->getInstList().remove(getIterator()); in removeFromParent() 94 return getParent()->getInstList().erase(getIterator()); in eraseFromParent() 98 insertBefore(InsertPos->getIterator()); in insertBefore() 112 DestParent->getInstList().insertAfter(InsertPos->getIterator(), this); in insertAfter() 121 return getIterator(); in insertInto() 168 moveBeforeImpl(*MovePos->getParent(), MovePos->getIterator(), false); in moveBefore() 172 moveBeforeImpl(*MovePos->getParent(), MovePos->getIterator(), true); in moveBeforePreserving() 176 auto NextIt = std::next(MovePos->getIterator()); in moveAfter() 184 auto NextIt = std::next(MovePos->getIterator()); in moveAfterPreserving() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
H A D | LoongArchExpandAtomicPseudoInsts.cpp | 312 MF->insert(++MBB.getIterator(), LoopMBB); in expandAtomicBinOp() 313 MF->insert(++LoopMBB->getIterator(), DoneMBB); in expandAtomicBinOp() 366 MF->insert(++MBB.getIterator(), LoopHeadMBB); in expandAtomicMinMaxOp() 367 MF->insert(++LoopHeadMBB->getIterator(), LoopIfBodyMBB); in expandAtomicMinMaxOp() 368 MF->insert(++LoopIfBodyMBB->getIterator(), LoopTailMBB); in expandAtomicMinMaxOp() 369 MF->insert(++LoopTailMBB->getIterator(), DoneMBB); in expandAtomicMinMaxOp() 481 MF->insert(++MBB.getIterator(), LoopHeadMBB); in expandAtomicMinMaxOp() 482 MF->insert(++LoopHeadMBB->getIterator(), LoopTailMBB); in expandAtomicMinMaxOp() 483 MF->insert(++LoopTailMBB->getIterator(), TailMBB); in expandAtomicMinMaxOp() 484 MF->insert(++TailMBB->getIterator(), DoneMB in expandAtomicMinMaxOp() [all...] |
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | GIMatchTableExecutor.cpp | 66 std::next(MI.getIterator()) == IntoMI.getIterator()) in isObviouslySafeToFold()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | CallSiteSplitting.cpp | 211 llvm::make_range(CallSiteBB->begin(), CB.getIterator())) { in canSplitCallSite() 242 auto II = std::next(CI->getIterator()); in copyMustTailReturn() 327 TailBB, PredBB, &*std::next(CB.getIterator()), ValueToValueMaps[i], in splitCallSite() 332 cast<CallBase>(&*std::prev(SplitBlock->getTerminator()->getIterator())); in splitCallSite() 508 auto II = BB.getFirstNonPHIOrDbg()->getIterator(); in doCallSiteSplitting() 509 auto IE = BB.getTerminator()->getIterator(); in doCallSiteSplitting()
|
H A D | MemCpyOptimizer.cpp | 281 return any_of(make_range(Start->getIterator(), End->getIterator()), in mayBeVisibleThroughUnwinding() 300 make_range(++Start->getIterator(), End->getIterator())) { in accessedBetween() 327 make_range(std::next(Start->getIterator()), End->getIterator()), in writtenBetween() 544 for (auto I = --SI->getIterator(), E = P->getIterator(); I != E; --I) { in moveUp() 609 MemInsertPoint = cast<MemoryUseOrDef>(--MA->getIterator()); in moveUp() 657 for (auto &I : make_range(++LI->getIterator(), SI->getIterator())) { in processStoreOfLoad() 710 BBI = M->getIterator(); in processStoreOfLoad() 748 BBI = SI->getNextNonDebugInstruction()->getIterator(); in processStoreOfLoad() 803 BBI = I->getIterator(); // Don't invalidate iterator. in processStore() 830 BBI = M->getIterator(); in processStore() [all …]
|
H A D | Reg2Mem.cpp | 79 DemoteRegToStack(*I, false, AllocaInsertionPoint->getIterator()); in runPass() 91 DemotePHIToStack(cast<PHINode>(I), AllocaInsertionPoint->getIterator()); in runPass()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVExpandAtomicPseudoInsts.cpp | 400 MF->insert(++MBB.getIterator(), LoopMBB); in insertSext() 401 MF->insert(++LoopMBB->getIterator(), DoneMBB); in insertSext() 455 MF->insert(++MBB.getIterator(), LoopHeadMBB); in expandAtomicMinMaxOp() 456 MF->insert(++LoopHeadMBB->getIterator(), LoopIfBodyMBB); in expandAtomicMinMaxOp() 457 MF->insert(++LoopIfBodyMBB->getIterator(), LoopTailMBB); in expandAtomicMinMaxOp() 458 MF->insert(++LoopTailMBB->getIterator(), DoneMBB); in expandAtomicMinMaxOp() 647 MF->insert(++MBB.getIterator(), LoopHeadMBB); in expandAtomicCmpXchg() 648 MF->insert(++LoopHeadMBB->getIterator(), LoopTailMBB); in expandAtomicCmpXchg() 649 MF->insert(++LoopTailMBB->getIterator(), DoneMBB); in expandAtomicCmpXchg()
|