Home
last modified time | relevance | path

Searched refs:getInstList (Results 1 – 25 of 70) sorted by relevance

123

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DUnifyFunctionExitNodes.cpp63 BB->getInstList().pop_back(); // Remove the unreachable inst. in unifyUnreachableBlocks()
93 NewRetBlock->getInstList().push_back(PN); in unifyReturnBlocks()
105 BB->getInstList().pop_back(); // Remove the return insn in unifyReturnBlocks()
H A DFlattenCFG.cpp289 FirstCondBlock->getInstList().pop_back(); in FlattenParallelAndOr()
290 FirstCondBlock->getInstList() in FlattenParallelAndOr()
291 .splice(FirstCondBlock->end(), CB->getInstList()); in FlattenParallelAndOr()
482 FirstEntryBlock->getInstList().pop_back(); in MergeIfRegion()
483 FirstEntryBlock->getInstList() in MergeIfRegion()
484 .splice(FirstEntryBlock->end(), SecondEntryBlock->getInstList()); in MergeIfRegion()
H A DAddDiscriminators.cpp196 for (auto &I : B.getInstList()) { in addDiscriminators()
240 for (auto &I : B.getInstList()) { in addDiscriminators()
H A DBasicBlockUtils.cpp84 BB->getInstList().pop_back(); in detachDeadBlocks()
87 assert(BB->getInstList().size() == 1 && in detachDeadBlocks()
269 PredBB->getInstList().splice(PTI->getIterator(), BB->getInstList(), in MergeBlockIntoPredecessor()
281 BB->getInstList().pop_back(); in MergeBlockIntoPredecessor()
287 PredBB->getInstList().pop_back(); in MergeBlockIntoPredecessor()
290 PredBB->getInstList().splice(PredBB->end(), BB->getInstList()); in MergeBlockIntoPredecessor()
514 ReplaceInstWithInst(From->getParent()->getInstList(), BI, To); in ReplaceInstWithInst()
1323 Pred->getInstList().push_back(NewRet); in FoldReturnIntoUncondBranch()
1335 Pred->getInstList().insert(NewRet->getIterator(), NewBC); in FoldReturnIntoUncondBranch()
1345 Pred->getInstList().insert(NewBC->getIterator(), NewEV); in FoldReturnIntoUncondBranch()
[all …]
H A DLowerInvoke.cpp69 BB.getInstList().erase(II); in runImpl()
H A DCloneFunction.cpp60 NewBB->getInstList().push_back(NewInst); in CloneBasicBlock()
517 NewBB->getInstList().push_back(NewInst); in CloneBlock()
576 NewBB->getInstList().push_back(NewInst); in CloneBlock()
859 I->getInstList().splice(I->end(), Dest->getInstList()); in CloneAndPruneIntoFromInst()
H A DInlineFunction.cpp2139 Caller->getEntryBlock().getInstList().splice( in InlineFunction()
2140 InsertPoint, FirstNewBlock->getInstList(), AI->getIterator(), I); in InlineFunction()
2483 OrigBB->getInstList().splice(CB.getIterator(), FirstNewBlock->getInstList(), in InlineFunction()
2621 AfterCallBB->getInstList().splice(AfterCallBB->begin(), in InlineFunction()
2622 ReturnBB->getInstList()); in InlineFunction()
2652 OrigBB->getInstList().splice(Br->getIterator(), CalleeEntry->getInstList()); in InlineFunction()
2655 OrigBB->getInstList().erase(Br); in InlineFunction()
H A DBypassSlowDivision.cpp420 MainBB->getInstList().back().eraseFromParent(); in insertFastDivAndRem()
437 MainBB->getInstList().back().eraseFromParent(); in insertFastDivAndRem()
H A DLocal.cpp801 DestBB->getInstList().splice(DestBB->begin(), PredBB->getInstList()); in MergeBasicBlockIntoOnlyPred()
810 assert(PredBB->getInstList().size() == 1 && in MergeBasicBlockIntoOnlyPred()
1146 Succ->getInstList().splice(Succ->getFirstNonPHI()->getIterator(), in TryToSimplifyUncondBranchFromEmptyBlock()
1147 BB->getInstList()); in TryToSimplifyUncondBranchFromEmptyBlock()
1171 BB->getInstList().pop_back(); in TryToSimplifyUncondBranchFromEmptyBlock()
2149 BB->getInstList().erase(BBI++); in changeToUnreachable()
2219 BB->getInstList().pop_back(); in changeToInvokeAndSplitBasicBlock()
2247 Split->getInstList().pop_front(); in changeToInvokeAndSplitBasicBlock()
2867 DomBlock->getInstList().splice(InsertPt->getIterator(), BB->getInstList(), in hoistAllInstructionsInto()
H A DLowerSwitch.cpp304 NewNode->getInstList().push_back(Comp); in SwitchConvert()
523 OrigBlock->getInstList().erase(SI); in ProcessSwitchInst()
/llvm-project-15.0.7/llvm/examples/ModuleMaker/
H A DModuleMaker.cpp58 BB->getInstList().push_back(Add); in main()
61 BB->getInstList().push_back(ReturnInst::Create(Context, Add)); in main()
/llvm-project-15.0.7/llvm/docs/HistoricalNotes/
H A D2002-05-12-InstListChange.txt11 instruction list (returned by getInstList()) that is a ValueHolder of
35 instruction list (which can be found by grep'ing for getInstList()) will
38 getInstList()) so that all of the code doesn't have to change.
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstruction.cpp31 BB->getInstList().insert(InsertBefore->getIterator(), this); in Instruction()
41 InsertAtEnd->getInstList().push_back(this); in Instruction()
74 getParent()->getInstList().remove(getIterator()); in removeFromParent()
78 return getParent()->getInstList().erase(getIterator()); in eraseFromParent()
84 InsertPos->getParent()->getInstList().insert(InsertPos->getIterator(), this); in insertBefore()
90 InsertPos->getParent()->getInstList().insertAfter(InsertPos->getIterator(), in insertAfter()
107 BB.getInstList().splice(I, getParent()->getInstList(), getIterator()); in moveBefore()
H A DBasicBlock.cpp394 New->getInstList().splice(New->end(), this->getInstList(), I, end()); in splitBasicBlock()
423 New->getInstList().splice(New->end(), this->getInstList(), begin(), I); in splitBasicBlockBefore()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp144 BB->getInstList().push_back(PtrCast); in createWrapper()
184 BB->getInstList().push_back(Cast); in createWrapper()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DDomTreeUpdater.cpp109 assert(BB->getInstList().size() == 1 && in forceFlushDeletedBB()
224 DelBB->getInstList().pop_back(); in validateDeleteBB()
H A DLoopNestAnalysis.cpp298 return (BB->getInstList().size() == 1); in skipEmptyBlockUntil()
382 if (Succ->getInstList().size() == 1) { in checkLoopsStructure()
/llvm-project-15.0.7/llvm/examples/BrainF/
H A DBrainF.cpp99 BB->getInstList().push_back(cast<Instruction>(ptr_arr)); in header()
131 endbb->getInstList().push_back(CallInst::CreateFree(ptr_arr, endbb)); in header()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DBasicBlock.h364 const InstListType &getInstList() const { return InstList; } in getInstList() function
365 InstListType &getInstList() { return InstList; } in getInstList() function
/llvm-project-15.0.7/llvm/tools/bugpoint-passes/
H A DTestPasses.cpp71 CI->getParent()->getInstList().erase(CI); in runOnFunction()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSimplifyCFGPass.cpp111 CanonicalBB->getInstList().push_back(std::get<1>(I)); in performBlockTailMerging()
116 CanonicalBB->getInstList().push_back(CanonicalTerm); in performBlockTailMerging()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFCheckAndAdjustIR.cpp156 BB.getInstList().insert(Call->getIterator(), ICmp); in removeCompareBuiltin()
H A DBPFAbstractMemberAccess.cpp110 BB->getInstList().insert(Before->getIterator(), NewInst); in insertPassThrough()
1138 BB->getInstList().insert(Call->getIterator(), BCInst); in transformGEPChain()
1143 BB->getInstList().insert(Call->getIterator(), GEP); in transformGEPChain()
1147 BB->getInstList().insert(Call->getIterator(), BCInst2); in transformGEPChain()
/llvm-project-15.0.7/llvm/lib/Transforms/CFGuard/
H A DCFGuard.cpp269 for (Instruction &I : BB.getInstList()) { in runOnFunction()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DPruneEH.cpp208 BB->getInstList().pop_back(); in SimplifyFunction()

123