Home
last modified time | relevance | path

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

123

/netbsd/external/apache2/llvm/dist/llvm/lib/IR/
H A DInstructions.cpp630 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createMalloc()
640 if (InsertBefore) in createMalloc()
658 if (InsertBefore) in createMalloc()
669 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createMalloc()
679 if (InsertBefore) { in createMalloc()
758 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createFree()
763 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createFree()
772 if (InsertBefore) { in createFree()
3091 Instruction *InsertBefore) { in CreatePointerBitCastOrAddrSpaceCast() argument
3620 if (InsertBefore) in Create()
[all …]
H A DDIBuilder.cpp913 InsertBefore); in insertDeclare()
928 LabelInfo, DL, InsertBefore ? InsertBefore->getParent() : nullptr, in insertLabel()
929 InsertBefore); in insertLabel()
943 V, VarInfo, Expr, DL, InsertBefore ? InsertBefore->getParent() : nullptr, in insertDbgValueIntrinsic()
944 InsertBefore); in insertDbgValueIntrinsic()
959 if (InsertBefore) in initIRBuilder()
960 Builder.SetInsertPoint(InsertBefore); in initIRBuilder()
994 initIRBuilder(B, DL, InsertBB, InsertBefore); in insertDeclare()
1017 initIRBuilder(B, DL, InsertBB, InsertBefore); in insertDbgValueIntrinsic()
1023 BasicBlock *InsertBB, Instruction *InsertBefore) { in insertLabel() argument
[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/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DInstructions.h84 Instruction *InsertBefore);
192 Instruction *InsertBefore);
195 Instruction *InsertBefore);
1221 InsertBefore) {
1385 InsertBefore) {
1556 InsertBefore);
1571 InsertBefore);
1719 InsertBefore) {
2561 2, InsertBefore) {
3889 InsertBefore) {
[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);
170 InsertBefore);
195 const Twine &Name, Instruction *InsertBefore);
220 Instruction *InsertBefore = nullptr);
379 Instruction *InsertBefore = nullptr);
437 : UnaryInstruction(Ty, iType, S, InsertBefore) {
763 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/external/apache2/llvm/dist/llvm/lib/Target/ARM/
H A DA15SDOptimizer.cpp67 MachineBasicBlock::iterator InsertBefore,
77 MachineBasicBlock::iterator InsertBefore,
81 MachineBasicBlock::iterator InsertBefore,
91 MachineBasicBlock::iterator InsertBefore,
421 BuildMI(MBB, InsertBefore, DL, in createDupLane()
432 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in createExtractSubreg() argument
437 InsertBefore, in createExtractSubreg()
451 InsertBefore, in createRegSequence()
468 BuildMI(MBB, InsertBefore, DL, TII->get(ARM::VEXTd32), Out) in createVExt()
481 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()
884 auto InsertBefore = std::next(I.getIterator()); in select() local
933 auto InsertBefore = std::next(I.getIterator()); in select() local
[all …]
H A DARMLoadStoreOptimizer.cpp626 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in CreateLoadStoreMulti() argument
637 (MBB.computeRegisterLiveness(TRI, ARM::CPSR, InsertBefore, 20) == in CreateLoadStoreMulti()
689 moveLiveRegsBefore(MBB, InsertBefore); 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()
806 MIB = BuildMI(MBB, InsertBefore, DL, TII->get(Opcode)); in CreateLoadStoreMulti()
818 MIB = BuildMI(MBB, InsertBefore, DL, TII->get(Opcode)); in CreateLoadStoreMulti()
833 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in CreateLoadStoreDouble() argument
843 MachineInstrBuilder MIB = BuildMI(MBB, InsertBefore, DL, in CreateLoadStoreDouble()
[all …]
/netbsd/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()
296 BasicBlock *OrigBB = InsertBefore->getParent(); in createMemMoveLoop()
311 SplitBlockAndInsertIfThenElse(PtrCompare, InsertBefore, &ThenTerm, in createMemMoveLoop()
323 BasicBlock *ExitBB = InsertBefore->getParent(); in createMemMoveLoop()
382 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()
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/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/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/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.cpp1568 Instruction *InsertBefore = I; in instrumentMaskedLoadOrStore() local
1582 InsertBefore = ThenTerm; in instrumentMaskedLoadOrStore()
1654 IRBuilder<> IRB(InsertBefore); in generateCrashCode()
1704 return InsertBefore; in instrumentAMDGPUAddress()
1706 IRBuilder<> IRB(InsertBefore); in instrumentAMDGPUAddress()
1715 return InsertBefore; in instrumentAMDGPUAddress()
1726 InsertBefore = instrumentAMDGPUAddress(OrigIns, InsertBefore, Addr, in instrumentAddress()
1728 if (!InsertBefore) in instrumentAddress()
1732 IRBuilder<> IRB(InsertBefore); in instrumentAddress()
1761 InsertBefore = TagCheckTerm; in instrumentAddress()
[all …]
/netbsd/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/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.cpp237 return BinaryOperator::CreateAdd(S1, S2, Name, InsertBefore); in CreateAdd()
240 BinaryOperator::CreateFAdd(S1, S2, Name, InsertBefore); in CreateAdd()
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()
1280 static Value *createAndInstr(Instruction *InsertBefore, Value *Opnd, in createAndInstr() argument
1290 InsertBefore); in createAndInstr()
[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/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