Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/lib/IR/
H A DInstructions.cpp464 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createMalloc()
474 if (InsertBefore) in createMalloc()
492 if (InsertBefore) in createMalloc()
503 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createMalloc()
513 if (InsertBefore) { in createMalloc()
592 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createFree()
597 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createFree()
606 if (InsertBefore) { in createFree()
1642 InsertBefore) { in ShuffleVectorInst()
3318 if (InsertBefore) in Create()
[all …]
H A DDIBuilder.cpp845 Instruction *InsertBefore) { in insertDeclare() argument
847 InsertBefore); in insertDeclare()
855 Instruction *InsertBefore = InsertAtEnd->getTerminator(); in insertDeclare() local
860 Instruction *InsertBefore) { in insertLabel() argument
862 LabelInfo, DL, InsertBefore ? InsertBefore->getParent() : nullptr, in insertLabel()
863 InsertBefore); in insertLabel()
877 V, VarInfo, Expr, DL, InsertBefore ? InsertBefore->getParent() : nullptr, in insertDbgValueIntrinsic()
878 InsertBefore); in insertDbgValueIntrinsic()
895 if (InsertBefore) in getIRBForDbgInsertion()
896 B.SetInsertPoint(InsertBefore); in getIRBForDbgInsertion()
[all …]
H A DBasicBlock.cpp42 BasicBlock *InsertBefore) in BasicBlock() argument
46 insertInto(NewParent, InsertBefore); in BasicBlock()
48 assert(!InsertBefore && in BasicBlock()
54 void BasicBlock::insertInto(Function *NewParent, BasicBlock *InsertBefore) { in insertInto() argument
58 if (InsertBefore) in insertInto()
59 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()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DInstructions.h201 InsertBefore) {}
1093 Values, InsertBefore),
1219 InsertBefore) {
1359 InsertBefore) {
1724 InsertBefore) {
1736 Instruction *InsertBefore)
2532 2, InsertBefore) {
3123 Instruction *InsertBefore);
3731 InsertBefore);
3743 InsertBefore);
[all …]
H A DInstrTypes.h107 const Twine &Name, Instruction *InsertBefore);
132 Instruction *InsertBefore = nullptr);
296 Instruction *InsertBefore = nullptr);
300 Instruction *InsertBefore = nullptr);
304 Instruction *InsertBefore = nullptr);
308 Instruction *InsertBefore = nullptr);
312 Instruction *InsertBefore = nullptr);
357 const Twine &NameStr = "", Instruction *InsertBefore = nullptr)
358 : UnaryInstruction(Ty, iType, S, InsertBefore) {
685 Instruction *InsertBefore = nullptr,
[all …]
H A DBasicBlock.h79 BasicBlock *InsertBefore = nullptr);
102 BasicBlock *InsertBefore = nullptr) {
103 return new BasicBlock(Context, Name, Parent, InsertBefore);
218 void insertInto(Function *Parent, BasicBlock *InsertBefore = nullptr);
H A DDIBuilder.h84 BasicBlock *InsertBB, Instruction *InsertBefore);
88 BasicBlock *InsertBB, Instruction *InsertBefore);
94 BasicBlock *InsertBB, Instruction *InsertBefore);
803 Instruction *InsertBefore);
810 Instruction *InsertBefore);
841 Instruction *InsertBefore);
H A DGlobalVariable.h63 const Twine &Name = "", GlobalVariable *InsertBefore = nullptr,
/freebsd-12.1/contrib/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp159 MachineBasicBlock::iterator InsertBefore; in tryCombineExtendingLoads() member
161 MachineBasicBlock::iterator InsertBefore) in tryCombineExtendingLoads()
162 : UseMO(UseMO), InsertIntoBB(InsertIntoBB), InsertBefore(InsertBefore) { in tryCombineExtendingLoads()
278 MachineBasicBlock::iterator InsertBefore) { in tryCombineExtendingLoads() argument
279 ScheduleForInsert.emplace_back(&UseMO, InsertIntoBB, InsertBefore); in tryCombineExtendingLoads()
296 MachineBasicBlock::iterator InsertBefore) { in tryCombineExtendingLoads() argument
297 ScheduleForInsert.emplace_back(&UseMO, InsertIntoBB, InsertBefore); in tryCombineExtendingLoads()
305 MachineBasicBlock::iterator InsertBefore = InsertionInfo.InsertBefore; in tryCombineExtendingLoads() local
315 Builder.setInsertPt(*InsertIntoBB, InsertBefore); in tryCombineExtendingLoads()
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DA15SDOptimizer.cpp68 MachineBasicBlock::iterator InsertBefore,
78 MachineBasicBlock::iterator InsertBefore,
82 MachineBasicBlock::iterator InsertBefore,
92 MachineBasicBlock::iterator InsertBefore,
424 BuildMI(MBB, InsertBefore, DL, in createDupLane()
435 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in createExtractSubreg() argument
440 InsertBefore, in createExtractSubreg()
454 InsertBefore, in createRegSequence()
471 BuildMI(MBB, InsertBefore, DL, TII->get(ARM::VEXTd32), Out) in createVExt()
484 InsertBefore, in createInsertSubreg()
[all …]
H A DARMInstructionSelector.cpp432 : MBB(*MIB->getParent()), InsertBefore(std::next(MIB->getIterator())), in InsertInfo()
436 const MachineBasicBlock::instr_iterator InsertBefore; member
442 (void)BuildMI(I.MBB, I.InsertBefore, I.DbgLoc, TII.get(ARM::MOVi)) in putConstant()
537 auto ReadI = BuildMI(I.MBB, I.InsertBefore, I.DbgLoc, in insertComparison()
545 auto Mov1I = BuildMI(I.MBB, I.InsertBefore, I.DbgLoc, TII.get(ARM::MOVCCi)) in insertComparison()
680 auto InsertBefore = std::next(MIB->getIterator()); in selectSelect() local
687 auto CmpI = BuildMI(MBB, InsertBefore, DbgLoc, TII.get(ARM::CMPri)) in selectSelect()
702 auto Mov1I = BuildMI(MBB, InsertBefore, DbgLoc, TII.get(ARM::MOVCCr)) in selectSelect()
773 auto InsertBefore = std::next(I.getIterator()); in select() local
822 auto InsertBefore = std::next(I.getIterator()); in select() local
[all …]
H A DARMLoadStoreOptimizer.cpp623 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in CreateLoadStoreMulti() argument
633 (MBB.computeRegisterLiveness(TRI, ARM::CPSR, InsertBefore, 20) == in CreateLoadStoreMulti()
685 moveLiveRegsBefore(MBB, InsertBefore); in CreateLoadStoreMulti()
747 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti()
752 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti()
758 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti()
797 MIB = BuildMI(MBB, InsertBefore, DL, TII->get(Opcode)); in CreateLoadStoreMulti()
809 MIB = BuildMI(MBB, InsertBefore, DL, TII->get(Opcode)); in CreateLoadStoreMulti()
822 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in CreateLoadStoreDouble() argument
831 MachineInstrBuilder MIB = BuildMI(MBB, InsertBefore, DL, in CreateLoadStoreDouble()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp35 BasicBlock *PreLoopBB = InsertBefore->getParent(); in createMemCpyLoopKnownSize()
95 : InsertBefore); in createMemCpyLoopKnownSize()
136 void llvm::createMemCpyLoopUnknownSize(Instruction *InsertBefore, in createMemCpyLoopUnknownSize() argument
142 BasicBlock *PreLoopBB = InsertBefore->getParent(); in createMemCpyLoopUnknownSize()
288 static void createMemMoveLoop(Instruction *InsertBefore, in createMemMoveLoop() argument
293 BasicBlock *OrigBB = InsertBefore->getParent(); in createMemMoveLoop()
305 SplitBlockAndInsertIfThenElse(PtrCompare, InsertBefore, &ThenTerm, in createMemMoveLoop()
317 BasicBlock *ExitBB = InsertBefore->getParent(); in createMemMoveLoop()
365 static void createMemSetLoop(Instruction *InsertBefore, in createMemSetLoop() argument
369 BasicBlock *OrigBB = InsertBefore->getParent(); in createMemSetLoop()
[all …]
H A DCallPromotionUtils.cpp172 Instruction *InsertBefore = nullptr; in createRetBitCast() local
174 InsertBefore = in createRetBitCast()
177 InsertBefore = &*std::next(CS.getInstruction()->getIterator()); in createRetBitCast()
181 InsertBefore); in createRetBitCast()
/freebsd-12.1/contrib/llvm/include/llvm/Transforms/Utils/
H A DLowerMemIntrinsics.h30 void createMemCpyLoopUnknownSize(Instruction *InsertBefore, Value *SrcAddr,
38 void createMemCpyLoopKnownSize(Instruction *InsertBefore, Value *SrcAddr,
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DPlaceSafepoints.cpp181 InsertSafepointPoll(Instruction *InsertBefore,
624 InsertSafepointPoll(Instruction *InsertBefore, in INITIALIZE_PASS_DEPENDENCY()
627 BasicBlock *OrigBB = InsertBefore->getParent(); in INITIALIZE_PASS_DEPENDENCY()
628 Module *M = InsertBefore->getModule(); in INITIALIZE_PASS_DEPENDENCY()
641 CallInst *PollCall = CallInst::Create(F, "", InsertBefore); in INITIALIZE_PASS_DEPENDENCY()
H A DReassociate.cpp234 Instruction *InsertBefore, Value *FlagsOp) { in CreateAdd() argument
236 return BinaryOperator::CreateAdd(S1, S2, Name, InsertBefore); in CreateAdd()
239 BinaryOperator::CreateFAdd(S1, S2, Name, InsertBefore); in CreateAdd()
246 Instruction *InsertBefore, Value *FlagsOp) { in CreateMul() argument
248 return BinaryOperator::CreateMul(S1, S2, Name, InsertBefore); in CreateMul()
251 BinaryOperator::CreateFMul(S1, S2, Name, InsertBefore); in CreateMul()
258 Instruction *InsertBefore, Value *FlagsOp) { in CreateNeg() argument
260 return BinaryOperator::CreateNeg(S1, Name, InsertBefore); in CreateNeg()
1154 static Value *createAndInstr(Instruction *InsertBefore, Value *Opnd, in createAndInstr() argument
1164 InsertBefore); in createAndInstr()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp670 Instruction *generateCrashCode(Instruction *InsertBefore, Value *Addr,
1347 Instruction *InsertBefore, Value *Addr, in doInstrumentAddress() argument
1376 Instruction *InsertBefore = I; in instrumentMaskedLoadOrStore() local
1390 InsertBefore = ThenTerm; in instrumentMaskedLoadOrStore()
1393 IRBuilder<> IRB(InsertBefore); in instrumentMaskedLoadOrStore()
1467 IRBuilder<> IRB(InsertBefore); in generateCrashCode()
1518 IRBuilder<> IRB(InsertBefore); in instrumentAddress()
1543 SplitBlockAndInsertIfThen(TagCheck, InsertBefore, false, in instrumentAddress()
1547 InsertBefore = TagCheckTerm; in instrumentAddress()
1581 CrashTerm = SplitBlockAndInsertIfThen(Cmp, InsertBefore, !Recover); in instrumentAddress()
[all …]
H A DHWAddressSanitizer.cpp188 Instruction *InsertBefore);
525 Instruction *InsertBefore) { in instrumentMemAccessInline() argument
526 IRBuilder<> IRB(InsertBefore); in instrumentMemAccessInline()
543 SplitBlockAndInsertIfThen(TagMismatch, InsertBefore, !Recover, in instrumentMemAccessInline()
/freebsd-12.1/contrib/llvm/tools/opt/
H A DDebugify.cpp124 Instruction *InsertBefore = &*InsertPt; in applyDebugifyMetadata() local
135 InsertBefore = I->getNextNode(); in applyDebugifyMetadata()
143 InsertBefore); in applyDebugifyMetadata()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DSplitKit.h436 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore,
440 MachineBasicBlock &MB, MachineBasicBlock::iterator InsertBefore,
H A DSafeStack.cpp605 Instruction *InsertBefore; in moveStaticAllocasToUnsafeStack() local
607 InsertBefore = PHI->getIncomingBlock(U)->getTerminator(); in moveStaticAllocasToUnsafeStack()
609 InsertBefore = User; in moveStaticAllocasToUnsafeStack()
611 IRBuilder<> IRBUser(InsertBefore); in moveStaticAllocasToUnsafeStack()
H A DBranchFolding.cpp931 MachineBasicBlock::iterator InsertBefore = Pred->getFirstTerminator(); in mergeCommonTails() local
936 BuildMI(*Pred, InsertBefore, DL, TII->get(TargetOpcode::IMPLICIT_DEF), in mergeCommonTails()
1364 auto InsertBefore = PredMBB.getFirstTerminator(); in copyDebugInfoToPredecessor() local
1367 TII->duplicate(PredMBB, InsertBefore, MI); in copyDebugInfoToPredecessor()
1376 auto InsertBefore = SuccMBB.SkipPHIsAndLabels(SuccMBB.begin()); in copyDebugInfoToSuccessor() local
1379 TII->duplicate(SuccMBB, InsertBefore, MI); in copyDebugInfoToSuccessor()
/freebsd-12.1/contrib/llvm/lib/Transforms/ObjCARC/
H A DObjCARCContract.cpp318 Instruction *InsertBefore, in createCallInst() argument
322 const ColorVector &CV = BlockColors.find(InsertBefore->getParent())->second; in createCallInst()
329 return CallInst::Create(Func, Args, OpBundles, NameStr, InsertBefore); in createCallInst()

12