| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Instructions.cpp | 201 const Twine &NameStr, Instruction *InsertBefore) in LandingPadInst() argument 202 : Instruction(RetTy, Instruction::LandingPad, nullptr, 0, InsertBefore) { in LandingPadInst() 227 Instruction *InsertBefore) { in Create() argument 228 return new LandingPadInst(RetTy, NumReservedClauses, NameStr, InsertBefore); in Create() 664 Instruction *InsertBefore) in CallInst() argument 666 OperandTraits<CallBase>::op_end(this) - 1, 1, InsertBefore) { in CallInst() 770 static Instruction *createMalloc(Instruction *InsertBefore, in createMalloc() argument 776 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createMalloc() 786 if (InsertBefore) in createMalloc() 788 "", InsertBefore); in createMalloc() [all …]
|
| H A D | DIBuilder.cpp | 951 Instruction *InsertBefore) { in insertDeclare() argument 952 return insertDeclare(Storage, VarInfo, Expr, DL, InsertBefore->getParent(), in insertDeclare() 953 InsertBefore); in insertDeclare() 961 Instruction *InsertBefore = InsertAtEnd->getTerminator(); in insertDeclare() local 962 return insertDeclare(Storage, VarInfo, Expr, DL, InsertAtEnd, InsertBefore); in insertDeclare() 996 Instruction *InsertBefore) { in insertLabel() argument 998 InsertBefore ? InsertBefore->getParent() : nullptr, in insertLabel() 999 InsertBefore); in insertLabel() 1011 Instruction *InsertBefore) { in insertDbgValueIntrinsic() argument 1013 V, VarInfo, Expr, DL, InsertBefore ? InsertBefore->getParent() : nullptr, in insertDbgValueIntrinsic() [all …]
|
| H A D | BasicBlock.cpp | 48 BasicBlock *InsertBefore) in BasicBlock() argument 52 insertInto(NewParent, InsertBefore); in BasicBlock() 54 assert(!InsertBefore && in BasicBlock() 60 void BasicBlock::insertInto(Function *NewParent, BasicBlock *InsertBefore) { in insertInto() argument 64 if (InsertBefore) in insertInto() 65 NewParent->insert(InsertBefore->getIterator(), this); in insertInto()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | Instructions.h | 76 const Twine &Name, Instruction *InsertBefore); 81 Instruction *InsertBefore); 86 const Twine &Name = "", Instruction *InsertBefore = nullptr); 195 Instruction *InsertBefore); 198 Instruction *InsertBefore); 202 Align Align, Instruction *InsertBefore = nullptr); 208 Instruction *InsertBefore = nullptr); 318 StoreInst(Value *Val, Value *Ptr, Instruction *InsertBefore); 320 StoreInst(Value *Val, Value *Ptr, bool isVolatile, Instruction *InsertBefore); 323 Instruction *InsertBefore = nullptr); [all …]
|
| H A D | InstrTypes.h | 105 const Twine &Name, Instruction *InsertBefore); 123 Instruction *InsertBefore = nullptr); 157 Instruction *InsertBefore = nullptr) { 158 UnaryOperator *UO = Create(Opc, V, Name, InsertBefore); 165 Instruction *InsertBefore = nullptr) { 167 InsertBefore); 192 const Twine &Name, Instruction *InsertBefore); 216 Instruction *InsertBefore = nullptr); 250 Instruction *InsertBefore = nullptr) { 251 BinaryOperator *BO = Create(Opc, V1, V2, Name, InsertBefore); [all …]
|
| H A D | DIBuilder.h | 86 BasicBlock *InsertBB, Instruction *InsertBefore); 90 BasicBlock *InsertBB, Instruction *InsertBefore); 97 Instruction *InsertBefore); 103 BasicBlock *InsertBB, Instruction *InsertBefore); 109 BasicBlock *InsertBB, Instruction *InsertBefore); 949 Instruction *InsertBefore); 956 Instruction *InsertBefore); 987 Instruction *InsertBefore); 1011 Instruction *InsertBefore);
|
| H A D | BasicBlock.h | 76 BasicBlock *InsertBefore = nullptr); 107 BasicBlock *InsertBefore = nullptr) { 108 return new BasicBlock(Context, Name, Parent, InsertBefore); 257 void insertInto(Function *Parent, BasicBlock *InsertBefore = nullptr);
|
| /openbsd-src/gnu/llvm/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 | 484 : 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 D | ARMLoadStoreOptimizer.cpp | 177 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, 183 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, 628 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, in CreateLoadStoreMulti() argument 639 (MBB.computeRegisterLiveness(TRI, ARM::CPSR, InsertBefore, 20) == in CreateLoadStoreMulti() 691 moveLiveRegsBefore(MBB, InsertBefore); in CreateLoadStoreMulti() 745 BuildMI(MBB, InsertBefore, DL, TII->get(ARM::tMOVSr), NewBase) in CreateLoadStoreMulti() 748 BuildMI(MBB, InsertBefore, DL, TII->get(ARM::tMOVr), NewBase) in CreateLoadStoreMulti() 758 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti() 763 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti() 769 BuildMI(MBB, InsertBefore, DL, TII->get(BaseOpc), NewBase) in CreateLoadStoreMulti() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | LowerMemIntrinsics.cpp | 21 Instruction *InsertBefore, Value *SrcAddr, Value *DstAddr, in createMemCpyLoopKnownSize() argument 29 BasicBlock *PreLoopBB = InsertBefore->getParent(); in createMemCpyLoopKnownSize() 57 PostLoopBB = PreLoopBB->splitBasicBlock(InsertBefore, "memcpy-split"); in createMemCpyLoopKnownSize() 117 : InsertBefore); in createMemCpyLoopKnownSize() 176 Instruction *InsertBefore, Value *SrcAddr, Value *DstAddr, Value *CopyLen, in createMemCpyLoopUnknownSize() argument 180 BasicBlock *PreLoopBB = InsertBefore->getParent(); in createMemCpyLoopUnknownSize() 182 PreLoopBB->splitBasicBlock(InsertBefore, "post-loop-memcpy-expansion"); in createMemCpyLoopUnknownSize() 376 static void createMemMoveLoop(Instruction *InsertBefore, Value *SrcAddr, in createMemMoveLoop() argument 381 BasicBlock *OrigBB = InsertBefore->getParent(); in createMemMoveLoop() 386 IRBuilder<> CastBuilder(InsertBefore); in createMemMoveLoop() [all …]
|
| H A D | CallPromotionUtils.cpp | 170 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 D | Debugify.cpp | 131 Instruction *InsertBefore) { in applyDebugifyMetadata() argument 141 InsertBefore); in applyDebugifyMetadata() 165 Instruction *InsertBefore = &*InsertPt; in applyDebugifyMetadata() local 176 InsertBefore = I->getNextNode(); in applyDebugifyMetadata() 178 insertDbgVal(*I, InsertBefore); in applyDebugifyMetadata()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | SILoadStoreOptimizer.cpp | 230 MachineBasicBlock::iterator InsertBefore); 236 MachineBasicBlock::iterator InsertBefore); 239 MachineBasicBlock::iterator InsertBefore); 242 MachineBasicBlock::iterator InsertBefore); 245 MachineBasicBlock::iterator InsertBefore); 248 MachineBasicBlock::iterator InsertBefore); 251 MachineBasicBlock::iterator InsertBefore); 254 MachineBasicBlock::iterator InsertBefore); 257 MachineBasicBlock::iterator InsertBefore); 260 MachineBasicBlock::iterator InsertBefore); [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/ObjCARC/ |
| H A D | ObjCARC.cpp | 26 Instruction *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()
|
| /openbsd-src/gnu/llvm/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,
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/ |
| H A D | AArch64StackTagging.cpp | 307 void tagAlloca(AllocaInst *AI, Instruction *InsertBefore, Value *Ptr, 309 void untagAlloca(AllocaInst *AI, Instruction *InsertBefore, uint64_t Size); 413 void AArch64StackTagging::tagAlloca(AllocaInst *AI, Instruction *InsertBefore, in tagAlloca() argument 428 InsertBefore = collectInitializers(InsertBefore, Ptr, Size, IB); in tagAlloca() 431 IRBuilder<> IRB(InsertBefore); in tagAlloca() 435 void AArch64StackTagging::untagAlloca(AllocaInst *AI, Instruction *InsertBefore, in untagAlloca() argument 437 IRBuilder<> IRB(InsertBefore); in untagAlloca()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
| H A D | MemProfiler.cpp | 180 void instrumentAddress(Instruction *OrigIns, Instruction *InsertBefore, 376 Instruction *InsertBefore = I; in instrumentMaskedLoadOrStore() local 390 InsertBefore = ThenTerm; in instrumentMaskedLoadOrStore() 393 IRBuilder<> IRB(InsertBefore); in instrumentMaskedLoadOrStore() 396 instrumentAddress(I, InsertBefore, InstrumentedAddress, ElemTypeSize, in instrumentMaskedLoadOrStore() 429 Instruction *InsertBefore, Value *Addr, in instrumentAddress() argument 431 IRBuilder<> IRB(InsertBefore); in instrumentAddress()
|
| H A D | AddressSanitizer.cpp | 694 void instrumentAddress(Instruction *OrigIns, Instruction *InsertBefore, 698 Instruction *InsertBefore, Value *Addr, 702 Instruction *InsertBefore, Value *Addr, 708 Instruction *generateCrashCode(Instruction *InsertBefore, Value *Addr, 1417 Instruction *InsertBefore, Value *Addr, in doInstrumentAddress() argument 1427 return Pass->instrumentAddress(I, InsertBefore, Addr, TypeSize, IsWrite, in doInstrumentAddress() 1429 Pass->instrumentUnusualSizeOrAlignment(I, InsertBefore, Addr, TypeSize, in doInstrumentAddress() 1446 Instruction *InsertBefore = I; in instrumentMaskedLoadOrStore() local 1460 InsertBefore = ThenTerm; in instrumentMaskedLoadOrStore() 1463 IRBuilder<> IRB(InsertBefore); in instrumentMaskedLoadOrStore() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | PlaceSafepoints.cpp | 181 InsertSafepointPoll(Instruction *InsertBefore, 622 InsertSafepointPoll(Instruction *InsertBefore, in INITIALIZE_PASS_DEPENDENCY() 625 BasicBlock *OrigBB = InsertBefore->getParent(); in INITIALIZE_PASS_DEPENDENCY() 626 Module *M = InsertBefore->getModule(); in INITIALIZE_PASS_DEPENDENCY() 639 CallInst *PollCall = CallInst::Create(F, "", InsertBefore); in INITIALIZE_PASS_DEPENDENCY()
|
| H A D | MergeICmps.cpp | 602 BasicBlock *const InsertBefore, in mergeComparisons() argument 613 NextCmpBlock->getParent(), InsertBefore); in mergeComparisons() 692 BasicBlock *InsertBefore = EntryBlock_; in simplify() local 695 InsertBefore = NextCmpBlock = mergeComparisons( in simplify() 696 Blocks, InsertBefore, NextCmpBlock, Phi_, TLI, AA, DTU); in simplify()
|
| H A D | Reassociate.cpp | 242 Instruction *InsertBefore, Value *FlagsOp) { in CreateAdd() argument 244 return BinaryOperator::CreateAdd(S1, S2, Name, InsertBefore); in CreateAdd() 247 BinaryOperator::CreateFAdd(S1, S2, Name, InsertBefore); in CreateAdd() 254 Instruction *InsertBefore, Value *FlagsOp) { in CreateMul() argument 256 return BinaryOperator::CreateMul(S1, S2, Name, InsertBefore); in CreateMul() 259 BinaryOperator::CreateFMul(S1, S2, Name, InsertBefore); in CreateMul() 266 Instruction *InsertBefore, Value *FlagsOp) { in CreateNeg() argument 268 return BinaryOperator::CreateNeg(S1, Name, InsertBefore); in CreateNeg() 271 return UnaryOperator::CreateFNegFMF(S1, FMFSource, Name, InsertBefore); in CreateNeg() 273 return UnaryOperator::CreateFNeg(S1, Name, InsertBefore); in CreateNeg() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | AssignmentTrackingAnalysis.cpp | 851 Instruction *InsertBefore = Pair.first; in run() local 852 assert(InsertBefore && "should never be null"); in run() 864 FnVarLocs->addVarLoc(InsertBefore, Var, Expr, FragMemLoc.DL, in run() 1251 Instruction *InsertBefore = After->getNextNode(); in emitDbgValue() local 1252 assert(InsertBefore && "Shouldn't be inserting after a terminator"); in emitDbgValue() 1261 InsertBeforeMap[InsertBefore].push_back(VarLoc); in emitDbgValue() 1363 Instruction *InsertBefore = I.getNextNode(); in processUntaggedInstruction() local 1364 assert(InsertBefore && "Shouldn't be inserting after a terminator"); in processUntaggedInstruction() 1377 InsertBeforeMap[InsertBefore].push_back(VarLoc); in processUntaggedInstruction() 2076 for (const auto &[InsertBefore, Vec] : InsertBeforeMap) { in run() [all …]
|
| H A D | FixupStatepointCallerSaved.cpp | 420 MachineBasicBlock::iterator InsertBefore(MI); in spillRegisters() local 421 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()
|
| H A D | SplitKit.h | 427 MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, 431 MachineBasicBlock &MB, MachineBasicBlock::iterator InsertBefore,
|