| /src/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Instructions.h | 79 const Twine &Name, InsertPosition InsertBefore); 82 InsertPosition InsertBefore); 85 const Twine &Name = "", InsertPosition InsertBefore = nullptr); 192 InsertPosition InsertBefore); 194 InsertPosition InsertBefore); 196 Align Align, InsertPosition InsertBefore = nullptr); 200 InsertPosition InsertBefore = nullptr); 307 StoreInst(Value *Val, Value *Ptr, InsertPosition InsertBefore); 309 InsertPosition InsertBefore); 311 InsertPosition InsertBefore = nullptr); [all …]
|
| H A D | InstrTypes.h | 111 InsertPosition InsertBefore); 126 InsertPosition InsertBefore = nullptr); 158 InsertPosition InsertBefore = nullptr) { 159 UnaryOperator *UO = Create(Opc, V, Name, InsertBefore); 166 InsertPosition InsertBefore = nullptr) { 168 InsertBefore); 193 const Twine &Name, InsertPosition InsertBefore); 215 InsertPosition InsertBefore = nullptr); 248 InsertPosition InsertBefore = nullptr) { 249 BinaryOperator *BO = Create(Opc, V1, V2, Name, InsertBefore); [all …]
|
| H A D | DebugProgramInstruction.h | 161 Instruction *InsertBefore) const; 195 void insertBefore(DbgRecord *InsertBefore); 245 Instruction *InsertBefore) const; 344 DbgVariableRecord &InsertBefore); 351 const DILocation *DI, DbgVariableRecord &InsertBefore); 525 Instruction *InsertBefore) const; 617 void insertDbgRecord(DbgRecord *New, DbgRecord *InsertBefore);
|
| H A D | DIBuilder.h | 98 BasicBlock *InsertBB, Instruction *InsertBefore); 102 BasicBlock *InsertBB, Instruction *InsertBefore); 106 Instruction *InsertBefore, 114 Instruction *InsertBefore); 121 Instruction *InsertBefore); 989 Instruction *InsertBefore); 996 Instruction *InsertBefore); 1025 Instruction *InsertBefore);
|
| H A D | BasicBlock.h | 156 BasicBlock *InsertBefore = nullptr); 204 BasicBlock *InsertBefore = nullptr) { 205 return new BasicBlock(Context, Name, Parent, InsertBefore); 381 void insertInto(Function *Parent, BasicBlock *InsertBefore = nullptr);
|
| /src/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Instructions.cpp | 245 InsertPosition InsertBefore) in LandingPadInst() argument 246 : Instruction(RetTy, Instruction::LandingPad, nullptr, 0, InsertBefore) { in LandingPadInst() 265 InsertPosition InsertBefore) { in Create() argument 266 return new LandingPadInst(RetTy, NumReservedClauses, NameStr, InsertBefore); in Create() 719 InsertPosition InsertBefore) in CallInst() argument 721 OperandTraits<CallBase>::op_end(this) - 1, 1, InsertBefore) { in CallInst() 931 InsertPosition InsertBefore) in ReturnInst() argument 934 InsertBefore) { in ReturnInst() 949 ResumeInst::ResumeInst(Value *Exn, InsertPosition InsertBefore) in ResumeInst() argument 951 OperandTraits<ResumeInst>::op_begin(this), 1, InsertBefore) { in ResumeInst() [all …]
|
| H A D | DebugProgramInstruction.cpp | 135 DbgRecord::createDebugIntrinsic(Module *M, Instruction *InsertBefore) const { in createDebugIntrinsic() 138 return cast<DbgVariableRecord>(this)->createDebugIntrinsic(M, InsertBefore); in createDebugIntrinsic() 140 return cast<DbgLabelRecord>(this)->createDebugIntrinsic(M, InsertBefore); in createDebugIntrinsic() 188 const DILocation *DI, DbgVariableRecord &InsertBefore) { in createDbgVariableRecord() argument 190 NewDbgVariableRecord->insertBefore(&InsertBefore); in createDbgVariableRecord() 205 DbgVariableRecord &InsertBefore) { in createDVRDeclare() argument 207 NewDVRDeclare->insertBefore(&InsertBefore); in createDVRDeclare() 404 Instruction *InsertBefore) const { in createDebugIntrinsic() 453 if (InsertBefore) in createDebugIntrinsic() 454 DVI->insertBefore(InsertBefore); in createDebugIntrinsic() [all …]
|
| H A D | DIBuilder.cpp | 957 Instruction *InsertBefore) { in insertDeclare() argument 958 return insertDeclare(Storage, VarInfo, Expr, DL, InsertBefore->getParent(), in insertDeclare() 959 InsertBefore); in insertDeclare() 967 Instruction *InsertBefore = InsertAtEnd->getTerminator(); in insertDeclare() local 968 return insertDeclare(Storage, VarInfo, Expr, DL, InsertAtEnd, InsertBefore); in insertDeclare() 986 Instruction *InsertBefore = NextIt == InsertBB->end() ? nullptr : &*NextIt; in insertDbgAssign() local 987 insertDbgVariableRecord(DVR, InsertBB, InsertBefore, true); in insertDbgAssign() 1014 Instruction *InsertBefore) { in insertLabel() argument 1016 InsertBefore ? InsertBefore->getParent() : nullptr, in insertLabel() 1017 InsertBefore); in insertLabel() [all …]
|
| H A D | BasicBlock.cpp | 182 BasicBlock *InsertBefore) in BasicBlock() argument 187 insertInto(NewParent, InsertBefore); in BasicBlock() 189 assert(!InsertBefore && in BasicBlock() 198 void BasicBlock::insertInto(Function *NewParent, BasicBlock *InsertBefore) { in insertInto() argument 202 if (InsertBefore) in insertInto() 203 NewParent->insert(InsertBefore->getIterator(), this); in insertInto()
|
| /src/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, 414 MachineBasicBlock::iterator InsertBefore, in createDupLane() argument 419 BuildMI(MBB, InsertBefore, DL, in createDupLane() 430 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in createExtractSubreg() argument 435 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 | 177 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, 183 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, 629 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in CreateLoadStoreMulti() argument 640 (MBB.computeRegisterLiveness(TRI, ARM::CPSR, InsertBefore, 20) == in CreateLoadStoreMulti() 692 moveLiveRegsBefore(MBB, InsertBefore); in CreateLoadStoreMulti() 746 BuildMI(MBB, InsertBefore, DL, TII->get(ARM::tMOVSr), NewBase) in CreateLoadStoreMulti() 749 BuildMI(MBB, InsertBefore, DL, TII->get(ARM::tMOVr), NewBase) in CreateLoadStoreMulti() 759 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti() 764 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti() 770 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti() [all …]
|
| /src/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SILoadStoreOptimizer.cpp | 230 MachineBasicBlock::iterator InsertBefore, int OpName, 233 MachineBasicBlock::iterator InsertBefore, 240 MachineBasicBlock::iterator InsertBefore); 246 MachineBasicBlock::iterator InsertBefore); 249 MachineBasicBlock::iterator InsertBefore); 252 MachineBasicBlock::iterator InsertBefore); 255 MachineBasicBlock::iterator InsertBefore); 258 MachineBasicBlock::iterator InsertBefore); 261 MachineBasicBlock::iterator InsertBefore); 264 MachineBasicBlock::iterator InsertBefore); [all …]
|
| H A D | SILowerSGPRSpills.cpp | 280 MachineBasicBlock::iterator InsertBefore = SaveBlock->begin(); in extendWWMVirtRegLiveness() local 281 DebugLoc DL = SaveBlock->findDebugLoc(InsertBefore); in extendWWMVirtRegLiveness() 282 auto MIB = BuildMI(*SaveBlock, InsertBefore, DL, in extendWWMVirtRegLiveness() 296 MachineBasicBlock::iterator InsertBefore = in extendWWMVirtRegLiveness() local 298 DebugLoc DL = RestoreBlock->findDebugLoc(InsertBefore); in extendWWMVirtRegLiveness() 300 auto MIB = BuildMI(*RestoreBlock, InsertBefore, DL, in extendWWMVirtRegLiveness()
|
| /src/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() 110 : InsertBefore); in createMemCpyLoopKnownSize() 180 Instruction *InsertBefore, Value *SrcAddr, Value *DstAddr, Value *CopyLen, in createMemCpyLoopUnknownSize() argument 184 BasicBlock *PreLoopBB = InsertBefore->getParent(); in createMemCpyLoopUnknownSize() 186 PreLoopBB->splitBasicBlock(InsertBefore, "post-loop-memcpy-expansion"); in createMemCpyLoopUnknownSize() 372 static void createMemMoveLoop(Instruction *InsertBefore, Value *SrcAddr, in createMemMoveLoop() argument 378 BasicBlock *OrigBB = InsertBefore->getParent(); in createMemMoveLoop() 390 ICmpInst *PtrCompare = new ICmpInst(InsertBefore->getIterator(), ICmpInst::ICMP_ULT, in createMemMoveLoop() [all …]
|
| H A D | CallPromotionUtils.cpp | 174 BasicBlock::iterator InsertBefore; in createRetBitCast() local 176 InsertBefore = in createRetBitCast() 179 InsertBefore = std::next(CB.getIterator()); in createRetBitCast() 182 auto *Cast = CastInst::CreateBitOrPointerCast(&CB, RetTy, "", InsertBefore); in createRetBitCast()
|
| /src/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()
|
| /src/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | LowerMemIntrinsics.h | 36 Instruction *InsertBefore, Value *SrcAddr, Value *DstAddr, Value *CopyLen, 44 Instruction *InsertBefore, Value *SrcAddr, Value *DstAddr,
|
| /src/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64StackTagging.cpp | 326 void tagAlloca(AllocaInst *AI, Instruction *InsertBefore, Value *Ptr, 328 void untagAlloca(AllocaInst *AI, Instruction *InsertBefore, uint64_t Size); 433 void AArch64StackTagging::tagAlloca(AllocaInst *AI, Instruction *InsertBefore, in tagAlloca() argument 448 InsertBefore = collectInitializers(InsertBefore, Ptr, Size, IB); in tagAlloca() 451 IRBuilder<> IRB(InsertBefore); in tagAlloca() 455 void AArch64StackTagging::untagAlloca(AllocaInst *AI, Instruction *InsertBefore, in untagAlloca() argument 457 IRBuilder<> IRB(InsertBefore); in untagAlloca()
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | PlaceSafepoints.cpp | 194 InsertSafepointPoll(BasicBlock::iterator InsertBefore, 624 InsertSafepointPoll(BasicBlock::iterator InsertBefore, in InsertSafepointPoll() argument 627 BasicBlock *OrigBB = InsertBefore->getParent(); in InsertSafepointPoll() 628 Module *M = InsertBefore->getModule(); in InsertSafepointPoll() 641 CallInst *PollCall = CallInst::Create(F, "", InsertBefore); in InsertSafepointPoll()
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | AddressSanitizer.cpp | 765 void instrumentAddress(Instruction *OrigIns, Instruction *InsertBefore, 771 Instruction *InsertBefore, Value *Addr, 777 Instruction *InsertBefore, Value *Addr, 791 Instruction *generateCrashCode(Instruction *InsertBefore, Value *Addr, 1592 Instruction *InsertBefore, Value *Addr, in doInstrumentAddress() argument 1609 return Pass->instrumentAddress(I, InsertBefore, Addr, Alignment, in doInstrumentAddress() 1614 Pass->instrumentUnusualSizeOrAlignment(I, InsertBefore, Addr, TypeStoreSize, in doInstrumentAddress() 1741 Instruction *AddressSanitizer::generateCrashCode(Instruction *InsertBefore, in generateCrashCode() argument 1747 InstrumentationIRBuilder IRB(InsertBefore); in generateCrashCode() 1789 Instruction *OrigIns, Instruction *InsertBefore, Value *Addr, in instrumentAMDGPUAddress() argument [all …]
|
| H A D | MemProfiler.cpp | 234 void instrumentAddress(Instruction *OrigIns, Instruction *InsertBefore, 430 Instruction *InsertBefore = I; in instrumentMaskedLoadOrStore() local 444 InsertBefore = ThenTerm; in instrumentMaskedLoadOrStore() 447 IRBuilder<> IRB(InsertBefore); in instrumentMaskedLoadOrStore() 450 instrumentAddress(I, InsertBefore, InstrumentedAddress, IsWrite); in instrumentMaskedLoadOrStore() 482 Instruction *InsertBefore, Value *Addr, in instrumentAddress() argument 484 IRBuilder<> IRB(InsertBefore); in instrumentAddress()
|
| H A D | HWAddressSanitizer.cpp | 330 ShadowTagCheckInfo insertShadowTagCheck(Value *Ptr, Instruction *InsertBefore, 334 Instruction *InsertBefore, 338 Instruction *InsertBefore, DomTreeUpdater &DTU, 913 HWAddressSanitizer::insertShadowTagCheck(Value *Ptr, Instruction *InsertBefore, in insertShadowTagCheck() argument 917 IRBuilder<> IRB(InsertBefore); in insertShadowTagCheck() 934 TagMismatch, InsertBefore, false, in insertShadowTagCheck() 942 Instruction *InsertBefore, in instrumentMemAccessOutline() argument 949 InsertBefore = in instrumentMemAccessOutline() 950 insertShadowTagCheck(Ptr, InsertBefore, DTU, LI).TagMismatchTerm; in instrumentMemAccessOutline() 952 IRBuilder<> IRB(InsertBefore); in instrumentMemAccessOutline() [all …]
|
| /src/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | SandboxIR.cpp | 470 Instruction *InsertBefore, Context &Ctx, in create() argument 472 llvm::Instruction *BeforeIR = InsertBefore->getTopmostLLVMInstruction(); in create() 504 Instruction *InsertBefore, Context &Ctx, in create() argument 506 llvm::Instruction *BeforeIR = InsertBefore->getTopmostLLVMInstruction(); in create() 546 Instruction *InsertBefore, Context &Ctx) { in create() argument 547 llvm::Instruction *BeforeIR = InsertBefore->getTopmostLLVMInstruction(); in create() 600 ReturnInst *ReturnInst::create(Value *RetVal, Instruction *InsertBefore, in create() argument 602 llvm::Instruction *BeforeIR = InsertBefore->getTopmostLLVMInstruction(); in create()
|
| /src/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | FixupStatepointCallerSaved.cpp | 419 MachineBasicBlock::iterator InsertBefore(MI); in spillRegisters() local 420 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()
|