| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Instructions.h | 82 const Twine &Name, InsertPosition InsertBefore); 85 InsertPosition InsertBefore); 89 InsertPosition InsertBefore = nullptr); 198 InsertPosition InsertBefore); 200 InsertPosition InsertBefore); 202 Align Align, InsertPosition InsertBefore = nullptr); 206 InsertPosition InsertBefore = nullptr); 315 LLVM_ABI StoreInst(Value *Val, Value *Ptr, InsertPosition InsertBefore); 317 InsertPosition InsertBefore); 319 InsertPosition InsertBefore = nullptr); [all …]
|
| H A D | InstrTypes.h | 63 InsertPosition InsertBefore = nullptr) 64 : Instruction(Ty, iType, AllocMarker, InsertBefore) { in Instruction() argument 106 InsertPosition InsertBefore); 121 InsertPosition InsertBefore = nullptr); 133 InsertPosition InsertBefore = nullptr) { \ 134 return Create(Instruction::OPC, V, Name, InsertBefore); \ 141 InsertPosition InsertBefore = nullptr) { 142 UnaryOperator *UO = Create(Opc, V, Name, InsertBefore); 149 InsertPosition InsertBefore = nullptr) { 151 InsertBefore); [all …]
|
| H A D | DebugProgramInstruction.h | 167 createDebugIntrinsic(Module *M, Instruction *InsertBefore) const; 204 LLVM_ABI void insertBefore(DbgRecord *InsertBefore); 209 LLVM_ABI void insertBefore(self_iterator InsertBefore); 260 Instruction *InsertBefore) const; 358 DbgVariableRecord &InsertBefore); 365 const DILocation *DI, DbgVariableRecord &InsertBefore); 544 createDebugIntrinsic(Module *M, Instruction *InsertBefore) const; 640 LLVM_ABI void insertDbgRecord(DbgRecord *New, DbgRecord *InsertBefore);
|
| H A D | BasicBlock.h | 159 BasicBlock *InsertBefore = nullptr); 208 BasicBlock *InsertBefore = nullptr) { 209 return new BasicBlock(Context, Name, Parent, InsertBefore); 402 BasicBlock *InsertBefore = nullptr);
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Instructions.cpp | 249 InsertPosition InsertBefore) in LandingPadInst() argument 250 : Instruction(RetTy, Instruction::LandingPad, AllocMarker, InsertBefore) { in LandingPadInst() 269 InsertPosition InsertBefore) { in Create() argument 270 return new LandingPadInst(RetTy, NumReservedClauses, NameStr, InsertBefore); in Create() 787 AllocInfo AllocInfo, InsertPosition InsertBefore) in CallInst() argument 789 InsertBefore) { in CallInst() 1001 InsertPosition InsertBefore) in ReturnInst() argument 1003 InsertBefore) { in ReturnInst() 1018 ResumeInst::ResumeInst(Value *Exn, InsertPosition InsertBefore) in ResumeInst() argument 1020 AllocMarker, InsertBefore) { in ResumeInst() [all …]
|
| H A D | DebugProgramInstruction.cpp | 136 DbgRecord::createDebugIntrinsic(Module *M, Instruction *InsertBefore) const { in createDebugIntrinsic() 139 return cast<DbgVariableRecord>(this)->createDebugIntrinsic(M, InsertBefore); in createDebugIntrinsic() 141 return cast<DbgLabelRecord>(this)->createDebugIntrinsic(M, InsertBefore); in createDebugIntrinsic() 189 const DILocation *DI, DbgVariableRecord &InsertBefore) { in createDbgVariableRecord() argument 191 NewDbgVariableRecord->insertBefore(&InsertBefore); in createDbgVariableRecord() 206 DbgVariableRecord &InsertBefore) { in createDVRDeclare() argument 208 NewDVRDeclare->insertBefore(&InsertBefore); in createDVRDeclare() 405 Instruction *InsertBefore) const { in createDebugIntrinsic() 454 if (InsertBefore) in createDebugIntrinsic() 455 DVI->insertBefore(InsertBefore->getIterator()); in createDebugIntrinsic() [all …]
|
| H A D | BasicBlock.cpp | 145 BasicBlock *InsertBefore) in BasicBlock() argument 149 insertInto(NewParent, InsertBefore); in BasicBlock() 151 assert(!InsertBefore && in BasicBlock() 158 void BasicBlock::insertInto(Function *NewParent, BasicBlock *InsertBefore) { in insertInto() argument 162 if (InsertBefore) in insertInto() 163 NewParent->insert(InsertBefore->getIterator(), this); in insertInto()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | A15SDOptimizer.cpp | 67 MachineBasicBlock::iterator InsertBefore, 72 MachineBasicBlock::iterator InsertBefore, 77 MachineBasicBlock::iterator InsertBefore, 81 MachineBasicBlock::iterator InsertBefore, 86 MachineBasicBlock::iterator InsertBefore, 91 MachineBasicBlock::iterator InsertBefore, 415 MachineBasicBlock::iterator InsertBefore, in createDupLane() argument 420 BuildMI(MBB, InsertBefore, DL, in createDupLane() 431 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in createExtractSubreg() argument 436 InsertBefore, in createExtractSubreg() [all …]
|
| H A D | ARMInstructionSelector.cpp | 486 : MBB(*MIB->getParent()), InsertBefore(std::next(MIB->getIterator())), in InsertInfo() 490 const MachineBasicBlock::instr_iterator InsertBefore; member 496 (void)BuildMI(I.MBB, I.InsertBefore, I.DbgLoc, TII.get(Opcodes.MOVi)) in putConstant() 582 BuildMI(I.MBB, I.InsertBefore, I.DbgLoc, TII.get(Helper.ComparisonOpcode)) in insertComparison() 591 auto ReadI = BuildMI(I.MBB, I.InsertBefore, I.DbgLoc, in insertComparison() 599 auto Mov1I = BuildMI(I.MBB, I.InsertBefore, I.DbgLoc, in insertComparison() 695 auto InsertBefore = std::next(MIB->getIterator()); in selectGlobal() local 696 auto MIBLoad = BuildMI(MBB, InsertBefore, MIB->getDebugLoc(), in selectGlobal() 772 auto InsertBefore = std::next(MIB->getIterator()); in selectSelect() local 779 auto CmpI = BuildMI(MBB, InsertBefore, DbgLoc, TII.get(Opcodes.TSTri)) in selectSelect() [all …]
|
| H A D | ARMLoadStoreOptimizer.cpp | 174 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, 180 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 …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SILoadStoreOptimizer.cpp | 231 MachineBasicBlock::iterator InsertBefore, 234 MachineBasicBlock::iterator InsertBefore, 241 MachineBasicBlock::iterator InsertBefore); 247 MachineBasicBlock::iterator InsertBefore); 250 MachineBasicBlock::iterator InsertBefore); 253 MachineBasicBlock::iterator InsertBefore); 256 MachineBasicBlock::iterator InsertBefore); 259 MachineBasicBlock::iterator InsertBefore); 262 MachineBasicBlock::iterator InsertBefore); 265 MachineBasicBlock::iterator InsertBefore); [all …]
|
| H A D | AMDGPUAsanInstrumentation.cpp | 98 Type *IntptrTy, Instruction *InsertBefore, in generateCrashCode() argument 102 IRB.SetInsertPoint(InsertBefore); in generateCrashCode() 152 Instruction *InsertBefore, Value *Addr, in instrumentAddressImpl() argument 160 IRB.SetInsertPoint(InsertBefore); in instrumentAddressImpl() 184 Instruction *InsertBefore, Value *Addr, Align Alignment, in instrumentAddress() argument 200 M, IRB, OrigIns, InsertBefore, Addr, Alignment, FixedSize, IsWrite, in instrumentAddress() 205 IRB.SetInsertPoint(InsertBefore); in instrumentAddress() 214 instrumentAddressImpl(M, IRB, OrigIns, InsertBefore, Addr, {}, 8, IsWrite, in instrumentAddress() 216 instrumentAddressImpl(M, IRB, OrigIns, InsertBefore, LastByte, {}, 8, IsWrite, in instrumentAddress()
|
| H A D | AMDGPUAsanInstrumentation.h | 46 Instruction *InsertBefore, Value *Addr, Align Alignment,
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LowerMemIntrinsics.cpp | 25 Instruction *InsertBefore, Value *SrcAddr, Value *DstAddr, in createMemCpyLoopKnownSize() argument 33 BasicBlock *PreLoopBB = InsertBefore->getParent(); in createMemCpyLoopKnownSize() 61 PostLoopBB = PreLoopBB->splitBasicBlock(InsertBefore, "memcpy-split"); in createMemCpyLoopKnownSize() 113 : InsertBefore->getIterator(); in createMemCpyLoopKnownSize() 181 Instruction *InsertBefore, Value *SrcAddr, Value *DstAddr, Value *CopyLen, in createMemCpyLoopUnknownSize() argument 185 BasicBlock *PreLoopBB = InsertBefore->getParent(); in createMemCpyLoopUnknownSize() 187 PreLoopBB->splitBasicBlock(InsertBefore, "post-loop-memcpy-expansion"); in createMemCpyLoopUnknownSize() 402 static void createMemMoveLoopUnknownSize(Instruction *InsertBefore, in createMemMoveLoopUnknownSize() argument 409 BasicBlock *OrigBB = InsertBefore->getParent(); in createMemMoveLoopUnknownSize() 436 IRBuilder<> PLBuilder(InsertBefore); in createMemMoveLoopUnknownSize() [all …]
|
| H A D | CallPromotionUtils.cpp | 176 BasicBlock::iterator InsertBefore; in createRetBitCast() local 178 InsertBefore = in createRetBitCast() 181 InsertBefore = std::next(CB.getIterator()); in createRetBitCast() 184 auto *Cast = CastInst::CreateBitOrPointerCast(&CB, RetTy, "", InsertBefore); in createRetBitCast()
|
| H A D | BasicBlockUtils.cpp | 1619 ElementCount EC, Type *IndexTy, BasicBlock::iterator InsertBefore, in SplitBlockAndInsertForEachLane() argument 1622 IRBuilder<> IRB(InsertBefore->getParent(), InsertBefore); in SplitBlockAndInsertForEachLane() 1628 SplitBlockAndInsertSimpleForLoop(NumElements, InsertBefore); in SplitBlockAndInsertForEachLane() 1637 IRB.SetInsertPoint(InsertBefore); in SplitBlockAndInsertForEachLane() 1643 Value *EVL, BasicBlock::iterator InsertBefore, in SplitBlockAndInsertForEachLane() argument 1646 IRBuilder<> IRB(InsertBefore->getParent(), InsertBefore); in SplitBlockAndInsertForEachLane() 1650 auto [BodyIP, Index] = SplitBlockAndInsertSimpleForLoop(EVL, InsertBefore); in SplitBlockAndInsertForEachLane() 1658 IRB.SetInsertPoint(InsertBefore); in SplitBlockAndInsertForEachLane()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| H A D | ObjCARC.cpp | 26 BasicBlock::iterator InsertBefore, in createCallInstWithColors() argument 33 const ColorVector &CV = BlockColors.find(InsertBefore->getParent())->second; in createCallInstWithColors() 40 return CallInst::Create(FTy, Callee, Args, OpBundles, NameStr, InsertBefore); in createCallInstWithColors()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | LowerMemIntrinsics.h | 38 Instruction *InsertBefore, Value *SrcAddr, Value *DstAddr, Value *CopyLen, 46 Instruction *InsertBefore, Value *SrcAddr, Value *DstAddr,
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | MemProfInstrumentation.cpp | 198 void instrumentAddress(Instruction *OrigIns, Instruction *InsertBefore, 392 Instruction *InsertBefore = I; in instrumentMaskedLoadOrStore() local 406 InsertBefore = ThenTerm; in instrumentMaskedLoadOrStore() 409 IRBuilder<> IRB(InsertBefore); in instrumentMaskedLoadOrStore() 412 instrumentAddress(I, InsertBefore, InstrumentedAddress, IsWrite); in instrumentMaskedLoadOrStore() 444 Instruction *InsertBefore, Value *Addr, in instrumentAddress() argument 446 IRBuilder<> IRB(InsertBefore); in instrumentAddress() 465 SplitBlockAndInsertIfThen(Cmp, InsertBefore, /*Unreachable=*/false); in instrumentAddress()
|
| H A D | AddressSanitizer.cpp | 813 void instrumentAddress(Instruction *OrigIns, Instruction *InsertBefore, 819 Instruction *InsertBefore, Value *Addr, 825 Instruction *InsertBefore, Value *Addr, 839 Instruction *generateCrashCode(Instruction *InsertBefore, Value *Addr, 1659 Instruction *InsertBefore, Value *Addr, in doInstrumentAddress() argument 1676 return Pass->instrumentAddress(I, InsertBefore, Addr, Alignment, in doInstrumentAddress() 1681 Pass->instrumentUnusualSizeOrAlignment(I, InsertBefore, Addr, TypeStoreSize, in doInstrumentAddress() 1808 Instruction *AddressSanitizer::generateCrashCode(Instruction *InsertBefore, in generateCrashCode() argument 1814 InstrumentationIRBuilder IRB(InsertBefore); in generateCrashCode() 1856 Instruction *OrigIns, Instruction *InsertBefore, Value *Addr, in instrumentAMDGPUAddress() argument [all …]
|
| H A D | HWAddressSanitizer.cpp | 340 ShadowTagCheckInfo insertShadowTagCheck(Value *Ptr, Instruction *InsertBefore, 344 Instruction *InsertBefore, 348 Instruction *InsertBefore, DomTreeUpdater &DTU, 951 HWAddressSanitizer::insertShadowTagCheck(Value *Ptr, Instruction *InsertBefore, in insertShadowTagCheck() argument 955 IRBuilder<> IRB(InsertBefore); in insertShadowTagCheck() 972 TagMismatch, InsertBefore, false, in insertShadowTagCheck() 980 Instruction *InsertBefore, in instrumentMemAccessOutline() argument 987 InsertBefore = in instrumentMemAccessOutline() 988 insertShadowTagCheck(Ptr, InsertBefore, DTU, LI).TagMismatchTerm; in instrumentMemAccessOutline() 990 IRBuilder<> IRB(InsertBefore); in instrumentMemAccessOutline() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64StackTagging.cpp | 314 void tagAlloca(AllocaInst *AI, Instruction *InsertBefore, Value *Ptr, 316 void untagAlloca(AllocaInst *AI, Instruction *InsertBefore, uint64_t Size); 422 void AArch64StackTagging::tagAlloca(AllocaInst *AI, Instruction *InsertBefore, in tagAlloca() argument 436 InsertBefore = collectInitializers(InsertBefore, Ptr, Size, IB); in tagAlloca() 439 IRBuilder<> IRB(InsertBefore); in tagAlloca() 443 void AArch64StackTagging::untagAlloca(AllocaInst *AI, Instruction *InsertBefore, in untagAlloca() argument 445 IRBuilder<> IRB(InsertBefore); in untagAlloca()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | PlaceSafepoints.cpp | 194 InsertSafepointPoll(BasicBlock::iterator InsertBefore, 620 InsertSafepointPoll(BasicBlock::iterator InsertBefore, in InsertSafepointPoll() argument 623 BasicBlock *OrigBB = InsertBefore->getParent(); in InsertSafepointPoll() 624 Module *M = InsertBefore->getModule(); in InsertSafepointPoll() 637 CallInst *PollCall = CallInst::Create(F, "", InsertBefore); in InsertSafepointPoll()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | AssignmentTrackingAnalysis.cpp | 961 auto InsertBefore = Pair.first; in run() local 962 assert(InsertBefore && "should never be null"); in run() 976 FnVarLocs->addVarLoc(InsertBefore, Var, Expr, FragMemLoc.DL, in run() 1498 auto InsertBefore = getNextNode(After); in emitDbgValue() local 1499 assert(InsertBefore && "Shouldn't be inserting after a terminator"); in emitDbgValue() 1508 InsertBeforeMap[InsertBefore].push_back(VarLoc); in emitDbgValue() 1580 auto InsertBefore = getNextNode(&I); in processUnknownStoreToVariable() local 1581 assert(InsertBefore && "Shouldn't be inserting after a terminator"); in processUnknownStoreToVariable() 1595 InsertBeforeMap[InsertBefore].push_back(VarLoc); in processUnknownStoreToVariable() 1661 auto InsertBefore = getNextNode(&I); in processUntaggedInstruction() local [all …]
|
| H A D | FixupStatepointCallerSaved.cpp | 417 MachineBasicBlock::iterator InsertBefore(MI); in spillRegisters() local 418 Reg = performCopyPropagation(Reg, InsertBefore, IsKill, TII, TRI); in spillRegisters() 421 LLVM_DEBUG(dbgs() << "Insert spill before " << *InsertBefore); in spillRegisters() 422 TII.storeRegToStackSlot(*MI.getParent(), InsertBefore, Reg, IsKill, FI, in spillRegisters()
|