Home
last modified time | relevance | path

Searched refs:InsertPoint (Results 1 – 25 of 49) 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 …]
/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.cpp489 Instruction *InsertPoint = Return; in setupEntryBlockAndCallSites() local
491 InsertPoint = CI; in setupEntryBlockAndCallSites()
492 CallInst::Create(UnregisterFn, FuncCtx, "", InsertPoint->getIterator()); in setupEntryBlockAndCallSites()
H A DFixupStatepointCallerSaved.cpp453 auto InsertPoint = std::next(NewStatepoint->getIterator()); in insertReloads() local
456 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>;
378 void addInsertPoint(InsertPoint &Point);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp525 checkHoistValue(Value *V, Instruction *InsertPoint, DominatorTree &DT, in checkHoistValue() argument
529 assert(InsertPoint && "Null InsertPoint"); in checkHoistValue()
536 assert(DT.getNode(InsertPoint->getParent()) && "DT must contain Destination"); in checkHoistValue()
542 if (DT.dominates(I, InsertPoint)) { in checkHoistValue()
556 if (!checkHoistValue(Op, InsertPoint, DT, Unhoistables, &OpsHoistStops, in checkHoistValue()
879 Instruction *InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable() local
880 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
889 if (SI == InsertPoint) { in checkScopeHoistable()
894 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable()
911 InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCVSXSwapRemoval.cpp147 void insertSwap(MachineInstr *MI, MachineBasicBlock::iterator InsertPoint,
824 MachineBasicBlock::iterator InsertPoint, in insertSwap() argument
826 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in insertSwap()
929 auto InsertPoint = ++MachineBasicBlock::iterator(MI); in handleSpecialSwappables() local
940 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in handleSpecialSwappables()
943 LLVM_DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables()
945 insertSwap(MI, InsertPoint, VSRCTmp2, VSRCTmp1); in handleSpecialSwappables()
946 LLVM_DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables()
948 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in handleSpecialSwappables()
951 LLVM_DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DCodeMoverUtils.h47 LLVM_ABI bool isSafeToMoveBefore(Instruction &I, Instruction &InsertPoint,
55 LLVM_ABI bool isSafeToMoveBefore(BasicBlock &BB, Instruction &InsertPoint,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DMaterializationUtils.cpp184 BasicBlock::iterator InsertPoint = Use->getParent()->getFirstInsertionPt(); in rewriteMaterializableInstructions() local
189 InsertPoint = SuspendPredecessorBlock->getTerminator()->getIterator(); in rewriteMaterializableInstructions()
200 CurrentMaterialization->insertBefore(InsertPoint); in rewriteMaterializableInstructions()
201 InsertPoint = CurrentMaterialization->getIterator(); in rewriteMaterializableInstructions()
/freebsd/contrib/llvm-project/llvm/include/llvm/Frontend/Atomic/
H A DAtomic.h26 IRBuilderBase::InsertPoint AllocaIP;
31 bool UseLibcall, IRBuilderBase::InsertPoint AllocaIP) in AtomicInfo()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAttributes.cpp109 void *InsertPoint; in get() local
110 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
119 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
132 void *InsertPoint; in get() local
133 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
142 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
157 void *InsertPoint; in get() local
158 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
164 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
182 void *InsertPoint; in get() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenABITypes.cpp127 llvm::BasicBlock::iterator InsertPoint, const CXXDestructorDecl *D, in getCXXDestructorImplicitParam() argument
133 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()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenFunction.h744 mlir::OpBuilder::InsertPoint ip,
1090 mlir::OpBuilder::InsertPoint insertPt;
1095 ConditionalEvaluation(CIRGenFunction &cgf, mlir::OpBuilder::InsertPoint ip) in ConditionalEvaluation()
1113 mlir::OpBuilder::InsertPoint getInsertPoint() const { return insertPt; } in getInsertPoint()
1160 mlir::OpBuilder::InsertPoint ip = {},
1166 mlir::OpBuilder::InsertPoint ip = {});
1171 mlir::OpBuilder::InsertPoint ip = {});
1178 mlir::OpBuilder::InsertPoint ip = {});
1181 mlir::OpBuilder::InsertPoint ip = {});
H A DCIRGenExpr.cpp1521 mlir::OpBuilder::InsertPoint ip, in emitAlloca()
1682 mlir::OpBuilder::InsertPoint ip) { in createMemTemp()
1691 mlir::OpBuilder::InsertPoint ip) { in createMemTemp()
1705 mlir::Value arraySize, mlir::OpBuilder::InsertPoint ip) { in createTempAllocaWithoutCast()
1719 mlir::OpBuilder::InsertPoint ip) { in createTempAlloca()
1750 mlir::OpBuilder::InsertPoint ip, in createTempAlloca()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PreTileConfig.cpp174 auto InsertPoint = FirstAMX.MI->getIterator(); in hoistShapesInBB() local
188 MBB->insert(InsertPoint, I->MI->removeFromParent()); in hoistShapesInBB()
192 Shapes.push_back(MIRef(&*--InsertPoint, MBB)); in hoistShapesInBB()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp280 FieldInfo InsertPoint = {CurAlignment, CharUnits::Zero(), nullptr}; in calculateOptimalPad() local
286 auto Iter = llvm::upper_bound(Fields, InsertPoint); in calculateOptimalPad()
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DCodeGenABITypes.h105 llvm::BasicBlock::iterator InsertPoint,
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDWARFLinkerCompileUnit.cpp1619 auto InsertPoint = partition_point( in insertLineSequence() local
1626 if (InsertPoint != Rows.end() && InsertPoint->Address == Front && in insertLineSequence()
1627 InsertPoint->EndSequence) { in insertLineSequence()
1628 *InsertPoint = Seq.front(); in insertLineSequence()
1629 Rows.insert(InsertPoint + 1, Seq.begin() + 1, Seq.end()); in insertLineSequence()
1631 Rows.insert(InsertPoint, Seq.begin(), Seq.end()); in insertLineSequence()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILDataScalarization.cpp192 auto InsertPoint = Builder.GetInsertPoint(); in createArrayFromVector() local
216 Builder.SetInsertPoint(InsertPoint); in createArrayFromVector()
/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()
870 RegBankSelect::InsertPoint &Point) { in addInsertPoint()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/
H A DCIRBaseBuilder.h459 static OpBuilder::InsertPoint getBestAllocaInsertPoint(mlir::Block *block) { in getBestAllocaInsertPoint()
467 return OpBuilder::InsertPoint(block, ++mlir::Block::iterator(&*last)); in getBestAllocaInsertPoint()
468 return OpBuilder::InsertPoint(block, block->begin()); in getBestAllocaInsertPoint()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationPlanner.h106 VPInsertPoint(VPBasicBlock *InsertBlock, VPBasicBlock::iterator InsertPoint) in VPInsertPoint() argument
107 : Block(InsertBlock), Point(InsertPoint) {} in VPInsertPoint()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h291 class InsertPoint {
297 InsertPoint() = default;
300 InsertPoint(BasicBlock *InsertBlock, BasicBlock::iterator InsertPoint) in InsertPoint() argument
301 : Block(InsertBlock), Point(InsertPoint) {} in InsertPoint()
311 InsertPoint saveIP() const { in saveIP()
312 return InsertPoint(GetInsertBlock(), GetInsertPoint()); in saveIP()
316 InsertPoint saveAndClearIP() { in saveAndClearIP()
317 InsertPoint IP(GetInsertBlock(), GetInsertPoint()); in saveAndClearIP()
323 void restoreIP(InsertPoint IP) { in restoreIP()
424 Builder.restoreIP(InsertPoint(Block, Point)); in ~InsertPointGuard()

12