Home
last modified time | relevance | path

Searched refs:InsertPoint (Results 1 – 25 of 41) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/utils/TableGen/GlobalISel/
H A DGIMatchDagOperands.cpp
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeMoverUtils.cpp312 bool llvm::isSafeToMoveBefore(Instruction &I, Instruction &InsertPoint, in isSafeToMoveBefore() argument
320 if (&I == &InsertPoint) in isSafeToMoveBefore()
324 if (I.getNextNode() == &InsertPoint) in isSafeToMoveBefore()
327 if (isa<PHINode>(I) || isa<PHINode>(InsertPoint)) in isSafeToMoveBefore()
334 if (!isControlFlowEquivalent(I, InsertPoint, DT, *PDT)) in isSafeToMoveBefore()
337 if (isReachedBefore(&I, &InsertPoint, &DT, PDT)) in isSafeToMoveBefore()
342 if (I.getParent() == InsertPoint.getParent() && in isSafeToMoveBefore()
345 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) { in isSafeToMoveBefore()
355 if (isReachedBefore(&InsertPoint, &I, &DT, PDT)) in isSafeToMoveBefore()
358 if (&InsertPoint == OpInst) in isSafeToMoveBefore()
[all …]
H A DInlineFunction.cpp196 BasicBlock::iterator InsertPoint = InnerResumeDest->begin(); in getInnerResumeDest() local
202 InnerPHI->insertBefore(InsertPoint); in getInnerResumeDest()
210 InnerEHValuesPHI->insertBefore(InsertPoint); in getInnerResumeDest()
2508 BasicBlock::iterator InsertPoint = Caller->begin()->begin(); in InlineFunction() local
2540 Caller->getEntryBlock().splice(InsertPoint, &*FirstNewBlock, in InlineFunction()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DPHIEliminationUtils.cpp45 MachineBasicBlock::iterator InsertPoint = MBB->begin(); in findPHICopyInsertPoint() local
51 InsertPoint = std::next(I.getReverse()); in findPHICopyInsertPoint()
56 InsertPoint = I.getReverse(); in findPHICopyInsertPoint()
63 return MBB->SkipPHIsAndLabels(InsertPoint); in findPHICopyInsertPoint()
H A DSjLjEHPrepare.cpp491 Instruction *InsertPoint = Return; in setupEntryBlockAndCallSites() local
493 InsertPoint = CI; in setupEntryBlockAndCallSites()
494 CallInst::Create(UnregisterFn, FuncCtx, "", InsertPoint->getIterator()); in setupEntryBlockAndCallSites()
H A DFixupStatepointCallerSaved.cpp455 auto InsertPoint = std::next(NewStatepoint->getIterator()); in insertReloads() local
458 insertReloadBefore(Reg, InsertPoint, MBB); in insertReloads()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DRegBankSelect.h111 class InsertPoint {
139 virtual ~InsertPoint() = default;
204 class InstrInsertPoint : public InsertPoint {
237 class MBBInsertPoint : public InsertPoint {
273 class EdgeInsertPoint : public InsertPoint {
330 using InsertionPoints = SmallVector<std::unique_ptr<InsertPoint>, 2>;
376 /// Add an InsertPoint to the list of insert points.
378 void addInsertPoint(InsertPoint &Point);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp527 checkHoistValue(Value *V, Instruction *InsertPoint, DominatorTree &DT, in checkHoistValue() argument
531 assert(InsertPoint && "Null InsertPoint"); in checkHoistValue()
538 assert(DT.getNode(InsertPoint->getParent()) && "DT must contain Destination"); in checkHoistValue()
544 if (DT.dominates(I, InsertPoint)) { in checkHoistValue()
558 if (!checkHoistValue(Op, InsertPoint, DT, Unhoistables, &OpsHoistStops, in checkHoistValue()
881 Instruction *InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable() local
882 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
894 if (SI == InsertPoint) { in checkScopeHoistable()
899 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable()
916 InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCVSXSwapRemoval.cpp150 void insertSwap(MachineInstr *MI, MachineBasicBlock::iterator InsertPoint,
826 MachineBasicBlock::iterator InsertPoint, in insertSwap() argument
828 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in insertSwap()
931 auto InsertPoint = ++MachineBasicBlock::iterator(MI); in handleSpecialSwappables() local
942 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in handleSpecialSwappables()
945 LLVM_DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables()
947 insertSwap(MI, InsertPoint, VSRCTmp2, VSRCTmp1); in handleSpecialSwappables()
948 LLVM_DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables()
950 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in handleSpecialSwappables()
953 LLVM_DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables()
[all …]
H A DPPCReduceCRLogicals.cpp199 MachineBasicBlock::iterator InsertPoint = BSI.SplitBefore; in splitMBB() local
206 NewMBB->splice(NewMBB->end(), ThisMBB, InsertPoint, ThisMBB->end()); in splitMBB()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DCodeMoverUtils.h42 /// Return true if \p I can be safely moved before \p InsertPoint.
43 bool isSafeToMoveBefore(Instruction &I, Instruction &InsertPoint,
50 /// safely moved before \p InsertPoint.
51 bool isSafeToMoveBefore(BasicBlock &BB, Instruction &InsertPoint,
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAttributes.cpp108 void *InsertPoint; in get() local
109 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
118 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
131 void *InsertPoint; in get() local
132 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
141 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
156 void *InsertPoint; in get() local
157 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
163 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
180 void *InsertPoint; in get() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenABITypes.cpp120 llvm::BasicBlock::iterator InsertPoint, const CXXDestructorDecl *D, in getCXXDestructorImplicitParam() argument
126 CGF.Builder.SetInsertPoint(InsertBlock, InsertPoint); in getCXXDestructorImplicitParam()
H A DCGException.cpp843 CGBuilderTy::InsertPoint savedIP = Builder.saveAndClearIP(); in EmitLandingPad()
970 CGBuilderTy::InsertPoint SavedIP = CGF.Builder.saveIP(); in emitCatchPadBlock()
1014 CGBuilderTy::InsertPoint SavedIP = CGF.Builder.saveIP(); in emitWasmCatchPadBlock()
1136 CGBuilderTy::InsertPoint savedIP = CGF.Builder.saveIP(); in emitCatchDispatchBlock()
1424 CGBuilderTy::InsertPoint SavedIP = CGF.Builder.saveAndClearIP(); in Emit()
1503 CGBuilderTy::InsertPoint savedIP = CGF.Builder.saveAndClearIP(); in exit()
1537 CGBuilderTy::InsertPoint SavedIP = Builder.saveAndClearIP(); in getTerminateLandingPad()
1574 CGBuilderTy::InsertPoint SavedIP = Builder.saveAndClearIP(); in getTerminateHandler()
1599 CGBuilderTy::InsertPoint SavedIP = Builder.saveAndClearIP(); in getTerminateFunclet()
1629 CGBuilderTy::InsertPoint SavedIP = Builder.saveIP(); in getEHResumeBlock()
H A DCGCleanup.cpp646 CGBuilderTy::InsertPoint NormalDeactivateOrigIP; in PopCleanupBlock()
819 CGBuilderTy::InsertPoint savedInactiveFallthroughIP; in PopCleanupBlock()
1017 CGBuilderTy::InsertPoint SavedIP = Builder.saveAndClearIP(); in PopCleanupBlock()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PreTileConfig.cpp151 auto InsertPoint = FirstAMX.MI->getIterator(); in hoistShapesInBB() local
165 MBB->insert(InsertPoint, I->MI->removeFromParent()); in hoistShapesInBB()
169 Shapes.push_back(MIRef(&*--InsertPoint, MBB)); in hoistShapesInBB()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp282 FieldInfo InsertPoint = {CurAlignment, CharUnits::Zero(), nullptr}; in calculateOptimalPad() local
288 auto Iter = llvm::upper_bound(Fields, InsertPoint); in calculateOptimalPad()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationPlanner.h100 VPInsertPoint(VPBasicBlock *InsertBlock, VPBasicBlock::iterator InsertPoint) in VPInsertPoint() argument
101 : Block(InsertBlock), Point(InsertPoint) {} in VPInsertPoint()
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DCodeGenABITypes.h91 llvm::BasicBlock::iterator InsertPoint,
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDWARFLinkerCompileUnit.cpp1623 auto InsertPoint = partition_point( in insertLineSequence() local
1630 if (InsertPoint != Rows.end() && InsertPoint->Address == Front && in insertLineSequence()
1631 InsertPoint->EndSequence) { in insertLineSequence()
1632 *InsertPoint = Seq.front(); in insertLineSequence()
1633 Rows.insert(InsertPoint + 1, Seq.begin() + 1, Seq.end()); in insertLineSequence()
1635 Rows.insert(InsertPoint, Seq.begin(), Seq.end()); in insertLineSequence()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DRegBankSelect.cpp222 for (const std::unique_ptr<InsertPoint> &InsertPt : RepairPt) { in repairReg()
551 for (const std::unique_ptr<InsertPoint> &InsertPt : RepairPt) { in computeMapping()
871 RegBankSelect::InsertPoint &Point) { in addInsertPoint()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h254 class InsertPoint {
260 InsertPoint() = default;
263 InsertPoint(BasicBlock *InsertBlock, BasicBlock::iterator InsertPoint) in InsertPoint() function
264 : Block(InsertBlock), Point(InsertPoint) {} in InsertPoint()
274 InsertPoint saveIP() const { in saveIP()
275 return InsertPoint(GetInsertBlock(), GetInsertPoint()); in saveIP()
279 InsertPoint saveAndClearIP() { in saveAndClearIP()
280 InsertPoint IP(GetInsertBlock(), GetInsertPoint()); in saveAndClearIP()
286 void restoreIP(InsertPoint IP) { in restoreIP()
387 Builder.restoreIP(InsertPoint(Block, Point)); in ~InsertPointGuard()
/freebsd/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h43 void spliceBB(IRBuilderBase::InsertPoint IP, BasicBlock *New,
61 BasicBlock *splitBB(IRBuilderBase::InsertPoint IP, bool CreateBranch,
492 using InsertPointTy = IRBuilder<>::InsertPoint;
659 IRBuilder<>::InsertPoint
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/
H A DDWARFLinker.cpp
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/
H A DDWARFLinker.cpp2081 auto InsertPoint = partition_point( in insertLineSequence() local
2088 if (InsertPoint != Rows.end() && InsertPoint->Address == Front && in insertLineSequence()
2089 InsertPoint->EndSequence) { in insertLineSequence()
2090 *InsertPoint = Seq.front(); in insertLineSequence()
2091 Rows.insert(InsertPoint + 1, Seq.begin() + 1, Seq.end()); in insertLineSequence()
2093 Rows.insert(InsertPoint, Seq.begin(), Seq.end()); in insertLineSequence()

12