Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DInstructions.cpp186 const Twine &NameStr, Instruction *InsertBefore) in LandingPadInst() argument
187 : Instruction(RetTy, Instruction::LandingPad, nullptr, 0, InsertBefore) { in LandingPadInst()
212 Instruction *InsertBefore) { in Create() argument
213 return new LandingPadInst(RetTy, NumReservedClauses, NameStr, InsertBefore); in Create()
518 Instruction *InsertBefore) in CallInst() argument
520 OperandTraits<CallBase>::op_end(this) - 1, 1, InsertBefore) { in CallInst()
624 static Instruction *createMalloc(Instruction *InsertBefore, in createMalloc() argument
630 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createMalloc()
640 if (InsertBefore) in createMalloc()
642 "", InsertBefore); in createMalloc()
[all …]
H A DDIBuilder.cpp911 Instruction *InsertBefore) { in insertDeclare() argument
912 return insertDeclare(Storage, VarInfo, Expr, DL, InsertBefore->getParent(), in insertDeclare()
913 InsertBefore); in insertDeclare()
921 Instruction *InsertBefore = InsertAtEnd->getTerminator(); in insertDeclare() local
922 return insertDeclare(Storage, VarInfo, Expr, DL, InsertAtEnd, InsertBefore); in insertDeclare()
926 Instruction *InsertBefore) { in insertLabel() argument
928 LabelInfo, DL, InsertBefore ? InsertBefore->getParent() : nullptr, in insertLabel()
929 InsertBefore); in insertLabel()
941 Instruction *InsertBefore) { in insertDbgValueIntrinsic() argument
943 V, VarInfo, Expr, DL, InsertBefore ? InsertBefore->getParent() : nullptr, in insertDbgValueIntrinsic()
[all …]
H A DBasicBlock.cpp45 BasicBlock *InsertBefore) in BasicBlock() argument
49 insertInto(NewParent, InsertBefore); in BasicBlock()
51 assert(!InsertBefore && in BasicBlock()
57 void BasicBlock::insertInto(Function *NewParent, BasicBlock *InsertBefore) { in insertInto() argument
61 if (InsertBefore) in insertInto()
62 NewParent->getBasicBlockList().insert(InsertBefore->getIterator(), this); in insertInto()
H A DInstruction.cpp25 Instruction *InsertBefore) in Instruction() argument
29 if (InsertBefore) { in Instruction()
30 BasicBlock *BB = InsertBefore->getParent(); in Instruction()
32 BB->getInstList().insert(InsertBefore->getIterator(), this); in Instruction()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DInstructions.h79 const Twine &Name, Instruction *InsertBefore);
84 Instruction *InsertBefore);
89 const Twine &Name = "", Instruction *InsertBefore = nullptr);
192 Instruction *InsertBefore);
195 Instruction *InsertBefore);
199 Align Align, Instruction *InsertBefore = nullptr);
205 Instruction *InsertBefore = nullptr);
320 StoreInst(Value *Val, Value *Ptr, Instruction *InsertBefore);
322 StoreInst(Value *Val, Value *Ptr, bool isVolatile, Instruction *InsertBefore);
325 Instruction *InsertBefore = nullptr);
[all …]
H A DInstrTypes.h108 const Twine &Name, Instruction *InsertBefore);
126 Instruction *InsertBefore = nullptr);
160 Instruction *InsertBefore = nullptr) {
161 UnaryOperator *UO = Create(Opc, V, Name, InsertBefore);
168 Instruction *InsertBefore = nullptr) {
170 InsertBefore);
195 const Twine &Name, Instruction *InsertBefore);
220 Instruction *InsertBefore = nullptr);
379 Instruction *InsertBefore = nullptr);
383 Instruction *InsertBefore = nullptr);
[all …]
H A DDIBuilder.h83 BasicBlock *InsertBB, Instruction *InsertBefore);
87 BasicBlock *InsertBB, Instruction *InsertBefore);
93 BasicBlock *InsertBB, Instruction *InsertBefore);
871 Instruction *InsertBefore);
878 Instruction *InsertBefore);
909 Instruction *InsertBefore);
H A DBasicBlock.h79 BasicBlock *InsertBefore = nullptr);
102 BasicBlock *InsertBefore = nullptr) {
103 return new BasicBlock(Context, Name, Parent, InsertBefore);
239 void insertInto(Function *Parent, BasicBlock *InsertBefore = nullptr);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/
H A DA15SDOptimizer.cpp67 MachineBasicBlock::iterator InsertBefore,
72 MachineBasicBlock::iterator InsertBefore,
77 MachineBasicBlock::iterator InsertBefore,
81 MachineBasicBlock::iterator InsertBefore,
86 MachineBasicBlock::iterator InsertBefore,
91 MachineBasicBlock::iterator InsertBefore,
416 MachineBasicBlock::iterator InsertBefore, in createDupLane() argument
421 BuildMI(MBB, InsertBefore, DL, in createDupLane()
432 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in createExtractSubreg() argument
437 InsertBefore, in createExtractSubreg()
[all …]
H A DARMInstructionSelector.cpp484 : MBB(*MIB->getParent()), InsertBefore(std::next(MIB->getIterator())), in InsertInfo()
488 const MachineBasicBlock::instr_iterator InsertBefore; member
494 (void)BuildMI(I.MBB, I.InsertBefore, I.DbgLoc, TII.get(Opcodes.MOVi)) in putConstant()
580 BuildMI(I.MBB, I.InsertBefore, I.DbgLoc, TII.get(Helper.ComparisonOpcode)) in insertComparison()
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()
[all …]
H A DARMLoadStoreOptimizer.cpp175 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore,
181 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore,
626 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in CreateLoadStoreMulti() argument
637 (MBB.computeRegisterLiveness(TRI, ARM::CPSR, InsertBefore, 20) == in CreateLoadStoreMulti()
689 moveLiveRegsBefore(MBB, InsertBefore); in CreateLoadStoreMulti()
743 BuildMI(MBB, InsertBefore, DL, TII->get(ARM::tMOVSr), NewBase) in CreateLoadStoreMulti()
746 BuildMI(MBB, InsertBefore, DL, TII->get(ARM::tMOVr), NewBase) in CreateLoadStoreMulti()
756 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti()
761 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti()
767 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp17 void llvm::createMemCpyLoopKnownSize(Instruction *InsertBefore, Value *SrcAddr, in createMemCpyLoopKnownSize() argument
26 BasicBlock *PreLoopBB = InsertBefore->getParent(); in createMemCpyLoopKnownSize()
44 PostLoopBB = PreLoopBB->splitBasicBlock(InsertBefore, "memcpy-split"); in createMemCpyLoopKnownSize()
91 : InsertBefore); in createMemCpyLoopKnownSize()
133 void llvm::createMemCpyLoopUnknownSize(Instruction *InsertBefore, in createMemCpyLoopUnknownSize() argument
139 BasicBlock *PreLoopBB = InsertBefore->getParent(); in createMemCpyLoopUnknownSize()
141 PreLoopBB->splitBasicBlock(InsertBefore, "post-loop-memcpy-expansion"); in createMemCpyLoopUnknownSize()
291 static void createMemMoveLoop(Instruction *InsertBefore, Value *SrcAddr, in createMemMoveLoop() argument
296 BasicBlock *OrigBB = InsertBefore->getParent(); in createMemMoveLoop()
308 ICmpInst *PtrCompare = new ICmpInst(InsertBefore, ICmpInst::ICMP_ULT, in createMemMoveLoop()
[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()
H A DDebugify.cpp125 Instruction *InsertBefore) { in applyDebugifyMetadata() argument
135 InsertBefore); in applyDebugifyMetadata()
159 Instruction *InsertBefore = &*InsertPt; in applyDebugifyMetadata() local
170 InsertBefore = I->getNextNode(); in applyDebugifyMetadata()
172 insertDbgVal(*I, InsertBefore); in applyDebugifyMetadata()
H A DCodeExtractor.cpp1082 bool InsertBefore) { in insertLifetimeMarkersSurroundingCall() argument
1097 if (InsertBefore) in insertLifetimeMarkersSurroundingCall()
1309 Instruction *InsertBefore = &*InsertPt; in emitCallAndSwitchStatement() local
1310 assert((InsertBefore->getFunction() == newFunction || in emitCallAndSwitchStatement()
1311 Blocks.count(InsertBefore->getParent())) && in emitCallAndSwitchStatement()
1322 InsertBefore); in emitCallAndSwitchStatement()
1323 new StoreInst(outputs[i], GEP, InsertBefore); in emitCallAndSwitchStatement()
1328 new StoreInst(outputs[i], &*OAI, InsertBefore); in emitCallAndSwitchStatement()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp48 Instruction *InsertBefore, in createCallInstWithColors() argument
55 const ColorVector &CV = BlockColors.find(InsertBefore->getParent())->second; in createCallInstWithColors()
62 return CallInst::Create(FTy, Callee, Args, OpBundles, NameStr, InsertBefore); in createCallInstWithColors()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DLowerMemIntrinsics.h30 void createMemCpyLoopUnknownSize(Instruction *InsertBefore, Value *SrcAddr,
38 void createMemCpyLoopKnownSize(Instruction *InsertBefore, Value *SrcAddr,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DMemProfiler.cpp173 void instrumentAddress(Instruction *OrigIns, Instruction *InsertBefore,
424 Instruction *InsertBefore = I; in instrumentMaskedLoadOrStore() local
438 InsertBefore = ThenTerm; in instrumentMaskedLoadOrStore()
441 IRBuilder<> IRB(InsertBefore); in instrumentMaskedLoadOrStore()
444 instrumentAddress(I, InsertBefore, InstrumentedAddress, ElemTypeSize, in instrumentMaskedLoadOrStore()
469 Instruction *InsertBefore, Value *Addr, in instrumentAddress() argument
471 IRBuilder<> IRB(InsertBefore); in instrumentAddress()
H A DAddressSanitizer.cpp651 void instrumentAddress(Instruction *OrigIns, Instruction *InsertBefore,
655 Instruction *InsertBefore, Value *Addr,
659 Instruction *InsertBefore, Value *Addr,
665 Instruction *generateCrashCode(Instruction *InsertBefore, Value *Addr,
1538 Instruction *InsertBefore, Value *Addr, in doInstrumentAddress() argument
1548 return Pass->instrumentAddress(I, InsertBefore, Addr, TypeSize, IsWrite, in doInstrumentAddress()
1550 Pass->instrumentUnusualSizeOrAlignment(I, InsertBefore, Addr, TypeSize, in doInstrumentAddress()
1568 Instruction *InsertBefore = I; in instrumentMaskedLoadOrStore() local
1582 InsertBefore = ThenTerm; in instrumentMaskedLoadOrStore()
1585 IRBuilder<> IRB(InsertBefore); in instrumentMaskedLoadOrStore()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DPlaceSafepoints.cpp180 InsertSafepointPoll(Instruction *InsertBefore,
621 InsertSafepointPoll(Instruction *InsertBefore, in INITIALIZE_PASS_DEPENDENCY()
624 BasicBlock *OrigBB = InsertBefore->getParent(); in INITIALIZE_PASS_DEPENDENCY()
625 Module *M = InsertBefore->getModule(); in INITIALIZE_PASS_DEPENDENCY()
638 CallInst *PollCall = CallInst::Create(F, "", InsertBefore); in INITIALIZE_PASS_DEPENDENCY()
H A DReassociate.cpp235 Instruction *InsertBefore, Value *FlagsOp) { in CreateAdd() argument
237 return BinaryOperator::CreateAdd(S1, S2, Name, InsertBefore); in CreateAdd()
240 BinaryOperator::CreateFAdd(S1, S2, Name, InsertBefore); in CreateAdd()
247 Instruction *InsertBefore, Value *FlagsOp) { in CreateMul() argument
249 return BinaryOperator::CreateMul(S1, S2, Name, InsertBefore); in CreateMul()
252 BinaryOperator::CreateFMul(S1, S2, Name, InsertBefore); in CreateMul()
259 Instruction *InsertBefore, Value *FlagsOp) { in CreateNeg() argument
261 return BinaryOperator::CreateNeg(S1, Name, InsertBefore); in CreateNeg()
264 return UnaryOperator::CreateFNegFMF(S1, FMFSource, Name, InsertBefore); in CreateNeg()
266 return UnaryOperator::CreateFNeg(S1, Name, InsertBefore); in CreateNeg()
[all …]
H A DMergeICmps.cpp606 BasicBlock *const InsertBefore, in mergeComparisons() argument
617 NextCmpBlock->getParent(), InsertBefore); in mergeComparisons()
698 BasicBlock *InsertBefore, in simplify()
701 InsertBefore, Next, Phi_, TLI, AA, DTU); in simplify()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DFixupStatepointCallerSaved.cpp419 MachineBasicBlock::iterator InsertBefore(MI); in spillRegisters() local
420 Reg = performCopyPropagation(Reg, InsertBefore, IsKill, TII, TRI); in spillRegisters()
422 LLVM_DEBUG(dbgs() << "Insert spill before " << *InsertBefore); in spillRegisters()
423 TII.storeRegToStackSlot(*MI.getParent(), InsertBefore, Reg, IsKill, FI, in spillRegisters()
H A DSplitKit.h452 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore,
456 MachineBasicBlock &MB, MachineBasicBlock::iterator InsertBefore,

123