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()
524 Instruction *InsertBefore) in CallInst() argument
526 OperandTraits<CallBase>::op_end(this) - 1, 1, InsertBefore) { in CallInst()
630 static Instruction *createMalloc(Instruction *InsertBefore, in createMalloc() argument
636 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createMalloc()
646 if (InsertBefore) in createMalloc()
648 "", InsertBefore); in createMalloc()
664 if (InsertBefore) in createMalloc()
666 "mallocsize", InsertBefore); in createMalloc()
675 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createMalloc()
685 if (InsertBefore) { in createMalloc()
687 InsertBefore); in createMalloc()
691 Result = new BitCastInst(MCall, AllocPtrType, Name, InsertBefore); in createMalloc()
718 Instruction *CallInst::CreateMalloc(Instruction *InsertBefore, in CreateMalloc() argument
723 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
726 Instruction *CallInst::CreateMalloc(Instruction *InsertBefore, in CreateMalloc() argument
732 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
762 Instruction *InsertBefore, in createFree() argument
764 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createFree()
769 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createFree()
778 if (InsertBefore) { in createFree()
780 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore); in createFree()
781 Result = CallInst::Create(FreeFunc, PtrCast, Bundles, "", InsertBefore); in createFree()
795 Instruction *CallInst::CreateFree(Value *Source, Instruction *InsertBefore) { in CreateFree() argument
796 return createFree(Source, None, InsertBefore, nullptr); in CreateFree()
800 Instruction *InsertBefore) { in CreateFree() argument
801 return createFree(Source, Bundles, InsertBefore, nullptr); in CreateFree()
982 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, Instruction *InsertBefore) in ReturnInst() argument
985 InsertBefore) { in ReturnInst()
1012 ResumeInst::ResumeInst(Value *Exn, Instruction *InsertBefore) in ResumeInst() argument
1014 OperandTraits<ResumeInst>::op_begin(this), 1, InsertBefore) { in ResumeInst()
1050 unsigned Values, Instruction *InsertBefore) in CleanupReturnInst() argument
1054 Values, InsertBefore) { in CleanupReturnInst()
1083 Instruction *InsertBefore) in CatchReturnInst() argument
1086 InsertBefore) { in CatchReturnInst()
1105 Instruction *InsertBefore) in CatchSwitchInst() argument
1107 InsertBefore) { in CatchSwitchInst()
1203 const Twine &NameStr, Instruction *InsertBefore) in FuncletPadInst() argument
1206 InsertBefore) { in FuncletPadInst()
1224 Instruction *InsertBefore) in UnreachableInst() argument
1226 0, InsertBefore) {} in UnreachableInst()
1241 BranchInst::BranchInst(BasicBlock *IfTrue, Instruction *InsertBefore) in BranchInst() argument
1244 InsertBefore) { in BranchInst()
1250 Instruction *InsertBefore) in BranchInst() argument
1253 InsertBefore) { in BranchInst()
1337 Instruction *InsertBefore) in AllocaInst() argument
1338 : AllocaInst(Ty, AddrSpace, /*ArraySize=*/nullptr, Name, InsertBefore) {} in AllocaInst()
1345 const Twine &Name, Instruction *InsertBefore) in AllocaInst() argument
1347 computeAllocaDefaultAlign(Ty, InsertBefore), Name, in AllocaInst()
1348 InsertBefore) {} in AllocaInst()
1358 Instruction *InsertBefore) in AllocaInst() argument
1360 getAISize(Ty->getContext(), ArraySize), InsertBefore), in AllocaInst()
1487 StoreInst::StoreInst(Value *val, Value *addr, Instruction *InsertBefore) in StoreInst() argument
1488 : StoreInst(val, addr, /*isVolatile=*/false, InsertBefore) {} in StoreInst()
1494 Instruction *InsertBefore) in StoreInst() argument
1496 computeLoadStoreDefaultAlign(val->getType(), InsertBefore), in StoreInst()
1497 InsertBefore) {} in StoreInst()
1506 Instruction *InsertBefore) in StoreInst() argument
1508 SyncScope::System, InsertBefore) {} in StoreInst()
1517 Instruction *InsertBefore) in StoreInst() argument
1520 OperandTraits<StoreInst>::operands(this), InsertBefore) { in StoreInst()
1579 Instruction *InsertBefore) in AtomicCmpXchgInst() argument
1583 OperandTraits<AtomicCmpXchgInst>::operands(this), InsertBefore) { in AtomicCmpXchgInst()
1627 SyncScope::ID SSID, Instruction *InsertBefore) in AtomicRMWInst() argument
1630 OperandTraits<AtomicRMWInst>::operands(this), InsertBefore) { in AtomicRMWInst()
1684 Instruction *InsertBefore) in FenceInst() argument
1685 : Instruction(Type::getVoidTy(C), Fence, nullptr, 0, InsertBefore) { in FenceInst()
1914 Instruction *InsertBefore) in ShuffleVectorInst() argument
1919 OperandTraits<ShuffleVectorInst>::operands(this), InsertBefore) { in ShuffleVectorInst()
1951 Instruction *InsertBefore) in ShuffleVectorInst() argument
1956 OperandTraits<ShuffleVectorInst>::operands(this), InsertBefore) { in ShuffleVectorInst()
2419 Instruction *InsertBefore) in UnaryOperator() argument
2420 : UnaryInstruction(Ty, iType, S, InsertBefore) { in UnaryOperator()
2437 Instruction *InsertBefore) { in Create() argument
2438 return new UnaryOperator(Op, S, S->getType(), Name, InsertBefore); in Create()
2472 Instruction *InsertBefore) in BinaryOperator() argument
2476 InsertBefore) { in BinaryOperator()
2566 Instruction *InsertBefore) { in Create() argument
2569 return new BinaryOperator(Op, S1, S2, S1->getType(), Name, InsertBefore); in Create()
2581 Instruction *InsertBefore) { in CreateNeg() argument
2585 Op->getType(), Name, InsertBefore); in CreateNeg()
2597 Instruction *InsertBefore) { in CreateNSWNeg() argument
2599 return BinaryOperator::CreateNSWSub(zero, Op, Name, InsertBefore); in CreateNSWNeg()
2609 Instruction *InsertBefore) { in CreateNUWNeg() argument
2611 return BinaryOperator::CreateNUWSub(zero, Op, Name, InsertBefore); in CreateNUWNeg()
2621 Instruction *InsertBefore) { in CreateNot() argument
2624 Op->getType(), Name, InsertBefore); in CreateNot()
2967 const Twine &Name, Instruction *InsertBefore) { in Create() argument
2971 case Trunc: return new TruncInst (S, Ty, Name, InsertBefore); in Create()
2972 case ZExt: return new ZExtInst (S, Ty, Name, InsertBefore); in Create()
2973 case SExt: return new SExtInst (S, Ty, Name, InsertBefore); in Create()
2974 case FPTrunc: return new FPTruncInst (S, Ty, Name, InsertBefore); in Create()
2975 case FPExt: return new FPExtInst (S, Ty, Name, InsertBefore); in Create()
2976 case UIToFP: return new UIToFPInst (S, Ty, Name, InsertBefore); in Create()
2977 case SIToFP: return new SIToFPInst (S, Ty, Name, InsertBefore); in Create()
2978 case FPToUI: return new FPToUIInst (S, Ty, Name, InsertBefore); in Create()
2979 case FPToSI: return new FPToSIInst (S, Ty, Name, InsertBefore); in Create()
2980 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertBefore); in Create()
2981 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertBefore); in Create()
2982 case BitCast: return new BitCastInst (S, Ty, Name, InsertBefore); in Create()
2983 case AddrSpaceCast: return new AddrSpaceCastInst (S, Ty, Name, InsertBefore); in Create()
3012 Instruction *InsertBefore) { in CreateZExtOrBitCast() argument
3014 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateZExtOrBitCast()
3015 return Create(Instruction::ZExt, S, Ty, Name, InsertBefore); in CreateZExtOrBitCast()
3028 Instruction *InsertBefore) { in CreateSExtOrBitCast() argument
3030 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateSExtOrBitCast()
3031 return Create(Instruction::SExt, S, Ty, Name, InsertBefore); in CreateSExtOrBitCast()
3044 Instruction *InsertBefore) { in CreateTruncOrBitCast() argument
3046 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateTruncOrBitCast()
3047 return Create(Instruction::Trunc, S, Ty, Name, InsertBefore); in CreateTruncOrBitCast()
3079 Instruction *InsertBefore) { in CreatePointerCast() argument
3090 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreatePointerCast()
3092 return CreatePointerBitCastOrAddrSpaceCast(S, Ty, Name, InsertBefore); in CreatePointerCast()
3111 Instruction *InsertBefore) { in CreatePointerBitCastOrAddrSpaceCast() argument
3116 return Create(Instruction::AddrSpaceCast, S, Ty, Name, InsertBefore); in CreatePointerBitCastOrAddrSpaceCast()
3118 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreatePointerBitCastOrAddrSpaceCast()
3123 Instruction *InsertBefore) { in CreateBitOrPointerCast() argument
3125 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3127 return Create(Instruction::IntToPtr, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3129 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3134 Instruction *InsertBefore) { in CreateIntegerCast() argument
3143 return Create(opcode, C, Ty, Name, InsertBefore); in CreateIntegerCast()
3162 Instruction *InsertBefore) { in CreateFPCast() argument
3170 return Create(opcode, C, Ty, Name, InsertBefore); in CreateFPCast()
3451 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in TruncInst() argument
3452 ) : CastInst(Ty, Trunc, S, Name, InsertBefore) { in TruncInst()
3463 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in ZExtInst() argument
3464 ) : CastInst(Ty, ZExt, S, Name, InsertBefore) { in ZExtInst()
3474 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in SExtInst() argument
3475 ) : CastInst(Ty, SExt, S, Name, InsertBefore) { in SExtInst()
3486 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPTruncInst() argument
3487 ) : CastInst(Ty, FPTrunc, S, Name, InsertBefore) { in FPTruncInst()
3498 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPExtInst() argument
3499 ) : CastInst(Ty, FPExt, S, Name, InsertBefore) { in FPExtInst()
3510 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in UIToFPInst() argument
3511 ) : CastInst(Ty, UIToFP, S, Name, InsertBefore) { in UIToFPInst()
3522 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in SIToFPInst() argument
3523 ) : CastInst(Ty, SIToFP, S, Name, InsertBefore) { in SIToFPInst()
3534 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPToUIInst() argument
3535 ) : CastInst(Ty, FPToUI, S, Name, InsertBefore) { in FPToUIInst()
3546 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPToSIInst() argument
3547 ) : CastInst(Ty, FPToSI, S, Name, InsertBefore) { in FPToSIInst()
3558 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in PtrToIntInst() argument
3559 ) : CastInst(Ty, PtrToInt, S, Name, InsertBefore) { in PtrToIntInst()
3570 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in IntToPtrInst() argument
3571 ) : CastInst(Ty, IntToPtr, S, Name, InsertBefore) { in IntToPtrInst()
3582 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in BitCastInst() argument
3583 ) : CastInst(Ty, BitCast, S, Name, InsertBefore) { in BitCastInst()
3594 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in AddrSpaceCastInst() argument
3595 ) : CastInst(Ty, AddrSpaceCast, S, Name, InsertBefore) { in AddrSpaceCastInst()
3610 Value *RHS, const Twine &Name, Instruction *InsertBefore, in CmpInst() argument
3615 InsertBefore) { in CmpInst()
3638 const Twine &Name, Instruction *InsertBefore) { in Create() argument
3640 if (InsertBefore) in Create()
3641 return new ICmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
3648 if (InsertBefore) in Create()
3649 return new FCmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
4042 Instruction *InsertBefore) in SwitchInst() argument
4044 nullptr, 0, InsertBefore) { in SwitchInst()
4273 Instruction *InsertBefore) in IndirectBrInst() argument
4275 Instruction::IndirectBr, nullptr, 0, InsertBefore) { in IndirectBrInst()
4330 const Twine &Name, Instruction *InsertBefore) in FreezeInst() argument
4331 : UnaryInstruction(S->getType(), Freeze, S, InsertBefore) { in FreezeInst()