Home
last modified time | relevance | path

Searched refs:InsertBefore (Results 1 – 25 of 58) sorted by relevance

123

/llvm-project-15.0.7/llvm/lib/IR/
H A DInstructions.cpp668 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createMalloc()
678 if (InsertBefore) in createMalloc()
696 if (InsertBefore) in createMalloc()
707 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createMalloc()
717 if (InsertBefore) { in createMalloc()
796 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createFree()
801 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createFree()
810 if (InsertBefore) { in createFree()
3330 Instruction *InsertBefore) { in CreatePointerBitCastOrAddrSpaceCast() argument
3859 if (InsertBefore) in Create()
[all …]
H A DDIBuilder.cpp949 InsertBefore); in insertDeclare()
964 InsertBefore ? InsertBefore->getParent() : nullptr, in insertLabel()
965 InsertBefore); in insertLabel()
979 V, VarInfo, Expr, DL, InsertBefore ? InsertBefore->getParent() : nullptr, in insertDbgValueIntrinsic()
980 InsertBefore); in insertDbgValueIntrinsic()
997 V, VarInfo, Expr, DL, InsertBefore ? InsertBefore->getParent() : nullptr, in insertDbgAddrIntrinsic()
998 InsertBefore); in insertDbgAddrIntrinsic()
1013 if (InsertBefore) in initIRBuilder()
1014 Builder.SetInsertPoint(InsertBefore); in initIRBuilder()
1036 InsertBefore); in insertDbgValueIntrinsic()
[all …]
H A DBasicBlock.cpp48 BasicBlock *InsertBefore) in BasicBlock() argument
52 insertInto(NewParent, InsertBefore); in BasicBlock()
54 assert(!InsertBefore && in BasicBlock()
60 void BasicBlock::insertInto(Function *NewParent, BasicBlock *InsertBefore) { in insertInto() argument
64 if (InsertBefore) in insertInto()
65 NewParent->getBasicBlockList().insert(InsertBefore->getIterator(), this); in insertInto()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstructions.h82 Instruction *InsertBefore);
192 Instruction *InsertBefore);
195 Instruction *InsertBefore);
1215 InsertBefore) {
1387 InsertBefore) {
1566 InsertBefore);
1581 InsertBefore);
1727 InsertBefore) {
2639 2, InsertBefore) {
3963 InsertBefore) {
[all …]
H A DInstrTypes.h106 const Twine &Name, Instruction *InsertBefore);
124 Instruction *InsertBefore = nullptr);
158 Instruction *InsertBefore = nullptr) {
159 UnaryOperator *UO = Create(Opc, V, Name, InsertBefore);
168 InsertBefore);
193 const Twine &Name, Instruction *InsertBefore);
251 Instruction *InsertBefore = nullptr) {
252 BinaryOperator *BO = Create(Opc, V1, V2, Name, InsertBefore);
434 : UnaryInstruction(Ty, iType, S, InsertBefore) {
774 Instruction *InsertBefore = nullptr,
[all …]
H A DDIBuilder.h84 BasicBlock *InsertBB, Instruction *InsertBefore);
88 BasicBlock *InsertBB, Instruction *InsertBefore);
95 Instruction *InsertBefore);
101 BasicBlock *InsertBB, Instruction *InsertBefore);
107 BasicBlock *InsertBB, Instruction *InsertBefore);
926 Instruction *InsertBefore);
933 Instruction *InsertBefore);
964 Instruction *InsertBefore);
988 Instruction *InsertBefore);
H A DBasicBlock.h76 BasicBlock *InsertBefore = nullptr);
99 BasicBlock *InsertBefore = nullptr) {
100 return new BasicBlock(Context, Name, Parent, InsertBefore);
240 void insertInto(Function *Parent, BasicBlock *InsertBefore = nullptr);
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DA15SDOptimizer.cpp67 MachineBasicBlock::iterator InsertBefore,
77 MachineBasicBlock::iterator InsertBefore,
81 MachineBasicBlock::iterator InsertBefore,
91 MachineBasicBlock::iterator InsertBefore,
419 BuildMI(MBB, InsertBefore, DL, in createDupLane()
430 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in createExtractSubreg() argument
435 InsertBefore, in createExtractSubreg()
449 InsertBefore, in createRegSequence()
466 BuildMI(MBB, InsertBefore, DL, TII->get(ARM::VEXTd32), Out) in createVExt()
479 InsertBefore, in createInsertSubreg()
[all …]
H A DARMInstructionSelector.cpp488 const MachineBasicBlock::instr_iterator InsertBefore; member
494 (void)BuildMI(I.MBB, I.InsertBefore, I.DbgLoc, TII.get(Opcodes.MOVi)) in putConstant()
589 auto ReadI = BuildMI(I.MBB, I.InsertBefore, I.DbgLoc, in insertComparison()
597 auto Mov1I = BuildMI(I.MBB, I.InsertBefore, I.DbgLoc, in insertComparison()
693 auto InsertBefore = std::next(MIB->getIterator()); in selectGlobal() local
694 auto MIBLoad = BuildMI(MBB, InsertBefore, MIB->getDebugLoc(), in selectGlobal()
770 auto InsertBefore = std::next(MIB->getIterator()); in selectSelect() local
777 auto CmpI = BuildMI(MBB, InsertBefore, DbgLoc, TII.get(Opcodes.TSTri)) in selectSelect()
792 auto Mov1I = BuildMI(MBB, InsertBefore, DbgLoc, TII.get(Opcodes.MOVCCr)) in selectSelect()
884 auto InsertBefore = std::next(I.getIterator()); in select() local
[all …]
H A DARMLoadStoreOptimizer.cpp628 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in CreateLoadStoreMulti() argument
639 (MBB.computeRegisterLiveness(TRI, ARM::CPSR, InsertBefore, 20) == in CreateLoadStoreMulti()
691 moveLiveRegsBefore(MBB, InsertBefore); in CreateLoadStoreMulti()
758 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti()
763 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti()
769 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti()
808 MIB = BuildMI(MBB, InsertBefore, DL, TII->get(Opcode)); in CreateLoadStoreMulti()
820 MIB = BuildMI(MBB, InsertBefore, DL, TII->get(Opcode)); in CreateLoadStoreMulti()
835 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in CreateLoadStoreDouble() argument
845 MachineInstrBuilder MIB = BuildMI(MBB, InsertBefore, DL, in CreateLoadStoreDouble()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSILoadStoreOptimizer.cpp1151 BuildMI(*MBB, InsertBefore, DL, CopyDesc) in mergeRead2Pair()
1154 BuildMI(*MBB, InsertBefore, DL, CopyDesc) in mergeRead2Pair()
1284 BuildMI(*MBB, InsertBefore, DL, CopyDesc) in mergeImagePair()
1287 BuildMI(*MBB, InsertBefore, DL, CopyDesc) in mergeImagePair()
1329 BuildMI(*MBB, InsertBefore, DL, CopyDesc) in mergeSBufferLoadImmPair()
1332 BuildMI(*MBB, InsertBefore, DL, CopyDesc) in mergeSBufferLoadImmPair()
1385 BuildMI(*MBB, InsertBefore, DL, CopyDesc) in mergeBufferLoadPair()
1388 BuildMI(*MBB, InsertBefore, DL, CopyDesc) in mergeBufferLoadPair()
1445 BuildMI(*MBB, InsertBefore, DL, CopyDesc) in mergeTBufferLoadPair()
1448 BuildMI(*MBB, InsertBefore, DL, CopyDesc) in mergeTBufferLoadPair()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp30 BasicBlock *PreLoopBB = InsertBefore->getParent(); in createMemCpyLoopKnownSize()
58 PostLoopBB = PreLoopBB->splitBasicBlock(InsertBefore, "memcpy-split"); in createMemCpyLoopKnownSize()
118 : InsertBefore); in createMemCpyLoopKnownSize()
176 void llvm::createMemCpyLoopUnknownSize(Instruction *InsertBefore, in createMemCpyLoopUnknownSize() argument
183 BasicBlock *PreLoopBB = InsertBefore->getParent(); in createMemCpyLoopUnknownSize()
384 BasicBlock *OrigBB = InsertBefore->getParent(); in createMemMoveLoop()
389 IRBuilder<> CastBuilder(InsertBefore); in createMemMoveLoop()
405 SplitBlockAndInsertIfThenElse(PtrCompare, InsertBefore, &ThenTerm, in createMemMoveLoop()
417 BasicBlock *ExitBB = InsertBefore->getParent(); in createMemMoveLoop()
476 BasicBlock *OrigBB = InsertBefore->getParent(); in createMemSetLoop()
[all …]
H A DCallPromotionUtils.cpp170 Instruction *InsertBefore = nullptr; in createRetBitCast() local
172 InsertBefore = in createRetBitCast()
175 InsertBefore = &*std::next(CB.getIterator()); in createRetBitCast()
178 auto *Cast = CastInst::CreateBitOrPointerCast(&CB, RetTy, "", InsertBefore); in createRetBitCast()
/llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp47 Instruction *InsertBefore, in createCallInstWithColors() argument
54 const ColorVector &CV = BlockColors.find(InsertBefore->getParent())->second; in createCallInstWithColors()
61 return CallInst::Create(FTy, Callee, Args, OpBundles, NameStr, InsertBefore); in createCallInstWithColors()
/llvm-project-15.0.7/polly/include/polly/CodeGen/
H A DPerfMonitor.h34 void insertRegionStart(llvm::Instruction *InsertBefore);
39 void insertRegionEnd(llvm::Instruction *InsertBefore);
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/
H A DLowerMemIntrinsics.h34 void createMemCpyLoopUnknownSize(Instruction *InsertBefore, Value *SrcAddr,
43 void createMemCpyLoopKnownSize(Instruction *InsertBefore, Value *SrcAddr,
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp311 void tagAlloca(AllocaInst *AI, Instruction *InsertBefore, Value *Ptr,
313 void untagAlloca(AllocaInst *AI, Instruction *InsertBefore, uint64_t Size);
432 void AArch64StackTagging::tagAlloca(AllocaInst *AI, Instruction *InsertBefore, in tagAlloca() argument
447 InsertBefore = collectInitializers(InsertBefore, Ptr, Size, IB); in tagAlloca()
450 IRBuilder<> IRB(InsertBefore); in tagAlloca()
454 void AArch64StackTagging::untagAlloca(AllocaInst *AI, Instruction *InsertBefore, in untagAlloca() argument
456 IRBuilder<> IRB(InsertBefore); in untagAlloca()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DMemProfiler.cpp180 void instrumentAddress(Instruction *OrigIns, Instruction *InsertBefore,
434 Instruction *InsertBefore = I; in instrumentMaskedLoadOrStore() local
448 InsertBefore = ThenTerm; in instrumentMaskedLoadOrStore()
451 IRBuilder<> IRB(InsertBefore); in instrumentMaskedLoadOrStore()
454 instrumentAddress(I, InsertBefore, InstrumentedAddress, ElemTypeSize, in instrumentMaskedLoadOrStore()
487 Instruction *InsertBefore, Value *Addr, in instrumentAddress() argument
489 IRBuilder<> IRB(InsertBefore); in instrumentAddress()
H A DAddressSanitizer.cpp1415 Instruction *InsertBefore = I; in instrumentMaskedLoadOrStore() local
1429 InsertBefore = ThenTerm; in instrumentMaskedLoadOrStore()
1432 IRBuilder<> IRB(InsertBefore); in instrumentMaskedLoadOrStore()
1501 IRBuilder<> IRB(InsertBefore); in generateCrashCode()
1551 return InsertBefore; in instrumentAMDGPUAddress()
1553 IRBuilder<> IRB(InsertBefore); in instrumentAMDGPUAddress()
1562 return InsertBefore; in instrumentAMDGPUAddress()
1571 InsertBefore = instrumentAMDGPUAddress(OrigIns, InsertBefore, Addr, in instrumentAddress()
1573 if (!InsertBefore) in instrumentAddress()
1577 IRBuilder<> IRB(InsertBefore); in instrumentAddress()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DPlaceSafepoints.cpp181 InsertSafepointPoll(Instruction *InsertBefore,
622 InsertSafepointPoll(Instruction *InsertBefore, in INITIALIZE_PASS_DEPENDENCY()
625 BasicBlock *OrigBB = InsertBefore->getParent(); in INITIALIZE_PASS_DEPENDENCY()
626 Module *M = InsertBefore->getModule(); in INITIALIZE_PASS_DEPENDENCY()
639 CallInst *PollCall = CallInst::Create(F, "", InsertBefore); in INITIALIZE_PASS_DEPENDENCY()
H A DMergeICmps.cpp597 BasicBlock *const InsertBefore, in mergeComparisons() argument
608 NextCmpBlock->getParent(), InsertBefore); in mergeComparisons()
683 BasicBlock *InsertBefore = EntryBlock_; in simplify() local
686 InsertBefore = NextCmpBlock = mergeComparisons( in simplify()
687 Blocks, InsertBefore, NextCmpBlock, Phi_, TLI, AA, DTU); in simplify()
H A DReassociate.cpp244 return BinaryOperator::CreateAdd(S1, S2, Name, InsertBefore); in CreateAdd()
247 BinaryOperator::CreateFAdd(S1, S2, Name, InsertBefore); in CreateAdd()
256 return BinaryOperator::CreateMul(S1, S2, Name, InsertBefore); in CreateMul()
259 BinaryOperator::CreateFMul(S1, S2, Name, InsertBefore); in CreateMul()
266 Instruction *InsertBefore, Value *FlagsOp) { in CreateNeg() argument
268 return BinaryOperator::CreateNeg(S1, Name, InsertBefore); in CreateNeg()
271 return UnaryOperator::CreateFNegFMF(S1, FMFSource, Name, InsertBefore); in CreateNeg()
273 return UnaryOperator::CreateFNeg(S1, Name, InsertBefore); in CreateNeg()
1297 static Value *createAndInstr(Instruction *InsertBefore, Value *Opnd, in createAndInstr() argument
1307 InsertBefore); in createAndInstr()
[all …]
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DPerfMonitor.cpp265 void PerfMonitor::insertRegionStart(Instruction *InsertBefore) { in insertRegionStart() argument
269 Builder.SetInsertPoint(InsertBefore); in insertRegionStart()
276 void PerfMonitor::insertRegionEnd(Instruction *InsertBefore) { in insertRegionEnd() argument
280 Builder.SetInsertPoint(InsertBefore); in insertRegionEnd()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DFixupStatepointCallerSaved.cpp420 MachineBasicBlock::iterator InsertBefore(MI); in spillRegisters() local
421 Reg = performCopyPropagation(Reg, InsertBefore, IsKill, TII, TRI); in spillRegisters()
423 LLVM_DEBUG(dbgs() << "Insert spill before " << *InsertBefore); in spillRegisters()
424 TII.storeRegToStackSlot(*MI.getParent(), InsertBefore, Reg, IsKill, FI, in spillRegisters()
H A DSplitKit.h428 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore,
432 MachineBasicBlock &MB, MachineBasicBlock::iterator InsertBefore,

123