Lines Matching refs:InsertBefore

190                                const Twine &NameStr, Instruction *InsertBefore)  in LandingPadInst()  argument
191 : Instruction(RetTy, Instruction::LandingPad, nullptr, 0, InsertBefore) { in LandingPadInst()
216 Instruction *InsertBefore) { in Create() argument
217 return new LandingPadInst(RetTy, NumReservedClauses, NameStr, InsertBefore); in Create()
556 Instruction *InsertBefore) in CallInst() argument
558 OperandTraits<CallBase>::op_end(this) - 1, 1, InsertBefore) { in CallInst()
662 static Instruction *createMalloc(Instruction *InsertBefore, in createMalloc() argument
668 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createMalloc()
678 if (InsertBefore) in createMalloc()
680 "", InsertBefore); in createMalloc()
696 if (InsertBefore) in createMalloc()
698 "mallocsize", InsertBefore); in createMalloc()
707 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createMalloc()
717 if (InsertBefore) { in createMalloc()
719 InsertBefore); in createMalloc()
723 Result = new BitCastInst(MCall, AllocPtrType, Name, InsertBefore); in createMalloc()
750 Instruction *CallInst::CreateMalloc(Instruction *InsertBefore, in CreateMalloc() argument
755 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
758 Instruction *CallInst::CreateMalloc(Instruction *InsertBefore, in CreateMalloc() argument
764 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
794 Instruction *InsertBefore, in createFree() argument
796 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createFree()
801 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createFree()
810 if (InsertBefore) { in createFree()
812 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore); in createFree()
813 Result = CallInst::Create(FreeFunc, PtrCast, Bundles, "", InsertBefore); in createFree()
827 Instruction *CallInst::CreateFree(Value *Source, Instruction *InsertBefore) { in CreateFree() argument
828 return createFree(Source, None, InsertBefore, nullptr); in CreateFree()
832 Instruction *InsertBefore) { in CreateFree() argument
833 return createFree(Source, Bundles, InsertBefore, nullptr); in CreateFree()
1009 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, Instruction *InsertBefore) in ReturnInst() argument
1012 InsertBefore) { in ReturnInst()
1039 ResumeInst::ResumeInst(Value *Exn, Instruction *InsertBefore) in ResumeInst() argument
1041 OperandTraits<ResumeInst>::op_begin(this), 1, InsertBefore) { in ResumeInst()
1077 unsigned Values, Instruction *InsertBefore) in CleanupReturnInst() argument
1081 Values, InsertBefore) { in CleanupReturnInst()
1110 Instruction *InsertBefore) in CatchReturnInst() argument
1113 InsertBefore) { in CatchReturnInst()
1132 Instruction *InsertBefore) in CatchSwitchInst() argument
1134 InsertBefore) { in CatchSwitchInst()
1230 const Twine &NameStr, Instruction *InsertBefore) in FuncletPadInst() argument
1233 InsertBefore) { in FuncletPadInst()
1251 Instruction *InsertBefore) in UnreachableInst() argument
1253 0, InsertBefore) {} in UnreachableInst()
1268 BranchInst::BranchInst(BasicBlock *IfTrue, Instruction *InsertBefore) in BranchInst() argument
1271 InsertBefore) { in BranchInst()
1277 Instruction *InsertBefore) in BranchInst() argument
1280 InsertBefore) { in BranchInst()
1364 Instruction *InsertBefore) in AllocaInst() argument
1365 : AllocaInst(Ty, AddrSpace, /*ArraySize=*/nullptr, Name, InsertBefore) {} in AllocaInst()
1372 const Twine &Name, Instruction *InsertBefore) in AllocaInst() argument
1374 computeAllocaDefaultAlign(Ty, InsertBefore), Name, in AllocaInst()
1375 InsertBefore) {} in AllocaInst()
1385 Instruction *InsertBefore) in AllocaInst() argument
1387 getAISize(Ty->getContext(), ArraySize), InsertBefore), in AllocaInst()
1510 StoreInst::StoreInst(Value *val, Value *addr, Instruction *InsertBefore) in StoreInst() argument
1511 : StoreInst(val, addr, /*isVolatile=*/false, InsertBefore) {} in StoreInst()
1517 Instruction *InsertBefore) in StoreInst() argument
1519 computeLoadStoreDefaultAlign(val->getType(), InsertBefore), in StoreInst()
1520 InsertBefore) {} in StoreInst()
1529 Instruction *InsertBefore) in StoreInst() argument
1531 SyncScope::System, InsertBefore) {} in StoreInst()
1540 Instruction *InsertBefore) in StoreInst() argument
1543 OperandTraits<StoreInst>::operands(this), InsertBefore) { in StoreInst()
1602 Instruction *InsertBefore) in AtomicCmpXchgInst() argument
1606 OperandTraits<AtomicCmpXchgInst>::operands(this), InsertBefore) { in AtomicCmpXchgInst()
1654 SyncScope::ID SSID, Instruction *InsertBefore) in AtomicRMWInst() argument
1657 OperandTraits<AtomicRMWInst>::operands(this), InsertBefore) { in AtomicRMWInst()
1715 Instruction *InsertBefore) in FenceInst() argument
1716 : Instruction(Type::getVoidTy(C), Fence, nullptr, 0, InsertBefore) { in FenceInst()
1949 Instruction *InsertBefore) in ShuffleVectorInst() argument
1951 InsertBefore) {} in ShuffleVectorInst()
1960 Instruction *InsertBefore) in ShuffleVectorInst() argument
1962 InsertBefore) {} in ShuffleVectorInst()
1971 Instruction *InsertBefore) in ShuffleVectorInst() argument
1976 OperandTraits<ShuffleVectorInst>::operands(this), InsertBefore) { in ShuffleVectorInst()
2008 Instruction *InsertBefore) in ShuffleVectorInst() argument
2013 OperandTraits<ShuffleVectorInst>::operands(this), InsertBefore) { in ShuffleVectorInst()
2636 Instruction *InsertBefore) in UnaryOperator() argument
2637 : UnaryInstruction(Ty, iType, S, InsertBefore) { in UnaryOperator()
2654 Instruction *InsertBefore) { in Create() argument
2655 return new UnaryOperator(Op, S, S->getType(), Name, InsertBefore); in Create()
2689 Instruction *InsertBefore) in BinaryOperator() argument
2693 InsertBefore) { in BinaryOperator()
2783 Instruction *InsertBefore) { in Create() argument
2786 return new BinaryOperator(Op, S1, S2, S1->getType(), Name, InsertBefore); in Create()
2798 Instruction *InsertBefore) { in CreateNeg() argument
2802 Op->getType(), Name, InsertBefore); in CreateNeg()
2814 Instruction *InsertBefore) { in CreateNSWNeg() argument
2816 return BinaryOperator::CreateNSWSub(zero, Op, Name, InsertBefore); in CreateNSWNeg()
2826 Instruction *InsertBefore) { in CreateNUWNeg() argument
2828 return BinaryOperator::CreateNUWSub(zero, Op, Name, InsertBefore); in CreateNUWNeg()
2838 Instruction *InsertBefore) { in CreateNot() argument
2841 Op->getType(), Name, InsertBefore); in CreateNot()
3186 const Twine &Name, Instruction *InsertBefore) { in Create() argument
3190 case Trunc: return new TruncInst (S, Ty, Name, InsertBefore); in Create()
3191 case ZExt: return new ZExtInst (S, Ty, Name, InsertBefore); in Create()
3192 case SExt: return new SExtInst (S, Ty, Name, InsertBefore); in Create()
3193 case FPTrunc: return new FPTruncInst (S, Ty, Name, InsertBefore); in Create()
3194 case FPExt: return new FPExtInst (S, Ty, Name, InsertBefore); in Create()
3195 case UIToFP: return new UIToFPInst (S, Ty, Name, InsertBefore); in Create()
3196 case SIToFP: return new SIToFPInst (S, Ty, Name, InsertBefore); in Create()
3197 case FPToUI: return new FPToUIInst (S, Ty, Name, InsertBefore); in Create()
3198 case FPToSI: return new FPToSIInst (S, Ty, Name, InsertBefore); in Create()
3199 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertBefore); in Create()
3200 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertBefore); in Create()
3201 case BitCast: return new BitCastInst (S, Ty, Name, InsertBefore); in Create()
3202 case AddrSpaceCast: return new AddrSpaceCastInst (S, Ty, Name, InsertBefore); in Create()
3231 Instruction *InsertBefore) { in CreateZExtOrBitCast() argument
3233 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateZExtOrBitCast()
3234 return Create(Instruction::ZExt, S, Ty, Name, InsertBefore); in CreateZExtOrBitCast()
3247 Instruction *InsertBefore) { in CreateSExtOrBitCast() argument
3249 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateSExtOrBitCast()
3250 return Create(Instruction::SExt, S, Ty, Name, InsertBefore); in CreateSExtOrBitCast()
3263 Instruction *InsertBefore) { in CreateTruncOrBitCast() argument
3265 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateTruncOrBitCast()
3266 return Create(Instruction::Trunc, S, Ty, Name, InsertBefore); in CreateTruncOrBitCast()
3298 Instruction *InsertBefore) { in CreatePointerCast() argument
3309 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreatePointerCast()
3311 return CreatePointerBitCastOrAddrSpaceCast(S, Ty, Name, InsertBefore); in CreatePointerCast()
3330 Instruction *InsertBefore) { in CreatePointerBitCastOrAddrSpaceCast() argument
3335 return Create(Instruction::AddrSpaceCast, S, Ty, Name, InsertBefore); in CreatePointerBitCastOrAddrSpaceCast()
3337 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreatePointerBitCastOrAddrSpaceCast()
3342 Instruction *InsertBefore) { in CreateBitOrPointerCast() argument
3344 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3346 return Create(Instruction::IntToPtr, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3348 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3353 Instruction *InsertBefore) { in CreateIntegerCast() argument
3362 return Create(opcode, C, Ty, Name, InsertBefore); in CreateIntegerCast()
3381 Instruction *InsertBefore) { in CreateFPCast() argument
3389 return Create(opcode, C, Ty, Name, InsertBefore); in CreateFPCast()
3670 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in TruncInst() argument
3671 ) : CastInst(Ty, Trunc, S, Name, InsertBefore) { in TruncInst()
3682 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in ZExtInst() argument
3683 ) : CastInst(Ty, ZExt, S, Name, InsertBefore) { in ZExtInst()
3693 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in SExtInst() argument
3694 ) : CastInst(Ty, SExt, S, Name, InsertBefore) { in SExtInst()
3705 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPTruncInst() argument
3706 ) : CastInst(Ty, FPTrunc, S, Name, InsertBefore) { in FPTruncInst()
3717 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPExtInst() argument
3718 ) : CastInst(Ty, FPExt, S, Name, InsertBefore) { in FPExtInst()
3729 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in UIToFPInst() argument
3730 ) : CastInst(Ty, UIToFP, S, Name, InsertBefore) { in UIToFPInst()
3741 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in SIToFPInst() argument
3742 ) : CastInst(Ty, SIToFP, S, Name, InsertBefore) { in SIToFPInst()
3753 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPToUIInst() argument
3754 ) : CastInst(Ty, FPToUI, S, Name, InsertBefore) { in FPToUIInst()
3765 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPToSIInst() argument
3766 ) : CastInst(Ty, FPToSI, S, Name, InsertBefore) { in FPToSIInst()
3777 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in PtrToIntInst() argument
3778 ) : CastInst(Ty, PtrToInt, S, Name, InsertBefore) { in PtrToIntInst()
3789 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in IntToPtrInst() argument
3790 ) : CastInst(Ty, IntToPtr, S, Name, InsertBefore) { in IntToPtrInst()
3801 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in BitCastInst() argument
3802 ) : CastInst(Ty, BitCast, S, Name, InsertBefore) { in BitCastInst()
3813 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in AddrSpaceCastInst() argument
3814 ) : CastInst(Ty, AddrSpaceCast, S, Name, InsertBefore) { in AddrSpaceCastInst()
3829 Value *RHS, const Twine &Name, Instruction *InsertBefore, in CmpInst() argument
3834 InsertBefore) { in CmpInst()
3857 const Twine &Name, Instruction *InsertBefore) { in Create() argument
3859 if (InsertBefore) in Create()
3860 return new ICmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
3867 if (InsertBefore) in Create()
3868 return new FCmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
4331 Instruction *InsertBefore) in SwitchInst() argument
4333 nullptr, 0, InsertBefore) { in SwitchInst()
4561 Instruction *InsertBefore) in IndirectBrInst() argument
4563 Instruction::IndirectBr, nullptr, 0, InsertBefore) { in IndirectBrInst()
4618 const Twine &Name, Instruction *InsertBefore) in FreezeInst() argument
4619 : UnaryInstruction(S->getType(), Freeze, S, InsertBefore) { in FreezeInst()