Lines Matching refs:InsertBefore
193 const Twine &NameStr, Instruction *InsertBefore) in LandingPadInst() argument
194 : Instruction(RetTy, Instruction::LandingPad, nullptr, 0, InsertBefore) { in LandingPadInst()
219 Instruction *InsertBefore) { in Create() argument
220 return new LandingPadInst(RetTy, NumReservedClauses, NameStr, InsertBefore); in Create()
402 Instruction *InsertBefore) in CallInst() argument
404 OperandTraits<CallBase>::op_end(this) - 1, 1, InsertBefore) { in CallInst()
458 static Instruction *createMalloc(Instruction *InsertBefore, in createMalloc() argument
464 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createMalloc()
474 if (InsertBefore) in createMalloc()
476 "", InsertBefore); in createMalloc()
492 if (InsertBefore) in createMalloc()
494 "mallocsize", InsertBefore); in createMalloc()
503 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createMalloc()
513 if (InsertBefore) { in createMalloc()
515 InsertBefore); in createMalloc()
519 Result = new BitCastInst(MCall, AllocPtrType, Name, InsertBefore); in createMalloc()
546 Instruction *CallInst::CreateMalloc(Instruction *InsertBefore, in CreateMalloc() argument
551 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
554 Instruction *CallInst::CreateMalloc(Instruction *InsertBefore, in CreateMalloc() argument
560 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
590 Instruction *InsertBefore, in createFree() argument
592 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createFree()
597 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createFree()
606 if (InsertBefore) { in createFree()
608 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore); in createFree()
609 Result = CallInst::Create(FreeFunc, PtrCast, Bundles, "", InsertBefore); in createFree()
623 Instruction *CallInst::CreateFree(Value *Source, Instruction *InsertBefore) { in CreateFree() argument
624 return createFree(Source, None, InsertBefore, nullptr); in CreateFree()
628 Instruction *InsertBefore) { in CreateFree() argument
629 return createFree(Source, Bundles, InsertBefore, nullptr); in CreateFree()
728 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, Instruction *InsertBefore) in ReturnInst() argument
731 InsertBefore) { in ReturnInst()
758 ResumeInst::ResumeInst(Value *Exn, Instruction *InsertBefore) in ResumeInst() argument
760 OperandTraits<ResumeInst>::op_begin(this), 1, InsertBefore) { in ResumeInst()
795 unsigned Values, Instruction *InsertBefore) in CleanupReturnInst() argument
799 Values, InsertBefore) { in CleanupReturnInst()
828 Instruction *InsertBefore) in CatchReturnInst() argument
831 InsertBefore) { in CatchReturnInst()
850 Instruction *InsertBefore) in CatchSwitchInst() argument
852 InsertBefore) { in CatchSwitchInst()
948 const Twine &NameStr, Instruction *InsertBefore) in FuncletPadInst() argument
951 InsertBefore) { in FuncletPadInst()
969 Instruction *InsertBefore) in UnreachableInst() argument
971 0, InsertBefore) {} in UnreachableInst()
986 BranchInst::BranchInst(BasicBlock *IfTrue, Instruction *InsertBefore) in BranchInst() argument
989 InsertBefore) { in BranchInst()
995 Instruction *InsertBefore) in BranchInst() argument
998 InsertBefore) { in BranchInst()
1066 Instruction *InsertBefore) in AllocaInst() argument
1067 : AllocaInst(Ty, AddrSpace, /*ArraySize=*/nullptr, Name, InsertBefore) {} in AllocaInst()
1074 const Twine &Name, Instruction *InsertBefore) in AllocaInst() argument
1075 : AllocaInst(Ty, AddrSpace, ArraySize, /*Align=*/0, Name, InsertBefore) {} in AllocaInst()
1083 Instruction *InsertBefore) in AllocaInst() argument
1085 getAISize(Ty->getContext(), ArraySize), InsertBefore), in AllocaInst()
1215 StoreInst::StoreInst(Value *val, Value *addr, Instruction *InsertBefore) in StoreInst() argument
1216 : StoreInst(val, addr, /*isVolatile=*/false, InsertBefore) {} in StoreInst()
1222 Instruction *InsertBefore) in StoreInst() argument
1223 : StoreInst(val, addr, isVolatile, /*Align=*/0, InsertBefore) {} in StoreInst()
1230 Instruction *InsertBefore) in StoreInst() argument
1232 SyncScope::System, InsertBefore) {} in StoreInst()
1242 Instruction *InsertBefore) in StoreInst() argument
1246 InsertBefore) { in StoreInst()
1321 Instruction *InsertBefore) in AtomicCmpXchgInst() argument
1325 OperandTraits<AtomicCmpXchgInst>::operands(this), InsertBefore) { in AtomicCmpXchgInst()
1368 Instruction *InsertBefore) in AtomicRMWInst() argument
1372 InsertBefore) { in AtomicRMWInst()
1424 Instruction *InsertBefore) in FenceInst() argument
1425 : Instruction(Type::getVoidTy(C), Fence, nullptr, 0, InsertBefore) { in FenceInst()
1636 Instruction *InsertBefore) in ShuffleVectorInst() argument
1642 InsertBefore) { in ShuffleVectorInst()
2019 Instruction *InsertBefore) in UnaryOperator() argument
2020 : UnaryInstruction(Ty, iType, S, InsertBefore) { in UnaryOperator()
2037 Instruction *InsertBefore) { in Create() argument
2038 return new UnaryOperator(Op, S, S->getType(), Name, InsertBefore); in Create()
2072 Instruction *InsertBefore) in BinaryOperator() argument
2076 InsertBefore) { in BinaryOperator()
2166 Instruction *InsertBefore) { in Create() argument
2169 return new BinaryOperator(Op, S1, S2, S1->getType(), Name, InsertBefore); in Create()
2181 Instruction *InsertBefore) { in CreateNeg() argument
2185 Op->getType(), Name, InsertBefore); in CreateNeg()
2197 Instruction *InsertBefore) { in CreateNSWNeg() argument
2199 return BinaryOperator::CreateNSWSub(zero, Op, Name, InsertBefore); in CreateNSWNeg()
2209 Instruction *InsertBefore) { in CreateNUWNeg() argument
2211 return BinaryOperator::CreateNUWSub(zero, Op, Name, InsertBefore); in CreateNUWNeg()
2221 Instruction *InsertBefore) { in CreateFNeg() argument
2224 Op->getType(), Name, InsertBefore); in CreateFNeg()
2235 Instruction *InsertBefore) { in CreateNot() argument
2238 Op->getType(), Name, InsertBefore); in CreateNot()
2574 const Twine &Name, Instruction *InsertBefore) { in Create() argument
2578 case Trunc: return new TruncInst (S, Ty, Name, InsertBefore); in Create()
2579 case ZExt: return new ZExtInst (S, Ty, Name, InsertBefore); in Create()
2580 case SExt: return new SExtInst (S, Ty, Name, InsertBefore); in Create()
2581 case FPTrunc: return new FPTruncInst (S, Ty, Name, InsertBefore); in Create()
2582 case FPExt: return new FPExtInst (S, Ty, Name, InsertBefore); in Create()
2583 case UIToFP: return new UIToFPInst (S, Ty, Name, InsertBefore); in Create()
2584 case SIToFP: return new SIToFPInst (S, Ty, Name, InsertBefore); in Create()
2585 case FPToUI: return new FPToUIInst (S, Ty, Name, InsertBefore); in Create()
2586 case FPToSI: return new FPToSIInst (S, Ty, Name, InsertBefore); in Create()
2587 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertBefore); in Create()
2588 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertBefore); in Create()
2589 case BitCast: return new BitCastInst (S, Ty, Name, InsertBefore); in Create()
2590 case AddrSpaceCast: return new AddrSpaceCastInst (S, Ty, Name, InsertBefore); in Create()
2619 Instruction *InsertBefore) { in CreateZExtOrBitCast() argument
2621 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateZExtOrBitCast()
2622 return Create(Instruction::ZExt, S, Ty, Name, InsertBefore); in CreateZExtOrBitCast()
2635 Instruction *InsertBefore) { in CreateSExtOrBitCast() argument
2637 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateSExtOrBitCast()
2638 return Create(Instruction::SExt, S, Ty, Name, InsertBefore); in CreateSExtOrBitCast()
2651 Instruction *InsertBefore) { in CreateTruncOrBitCast() argument
2653 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateTruncOrBitCast()
2654 return Create(Instruction::Trunc, S, Ty, Name, InsertBefore); in CreateTruncOrBitCast()
2685 Instruction *InsertBefore) { in CreatePointerCast() argument
2695 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreatePointerCast()
2697 return CreatePointerBitCastOrAddrSpaceCast(S, Ty, Name, InsertBefore); in CreatePointerCast()
2716 Instruction *InsertBefore) { in CreatePointerBitCastOrAddrSpaceCast() argument
2721 return Create(Instruction::AddrSpaceCast, S, Ty, Name, InsertBefore); in CreatePointerBitCastOrAddrSpaceCast()
2723 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreatePointerBitCastOrAddrSpaceCast()
2728 Instruction *InsertBefore) { in CreateBitOrPointerCast() argument
2730 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
2732 return Create(Instruction::IntToPtr, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
2734 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
2739 Instruction *InsertBefore) { in CreateIntegerCast() argument
2748 return Create(opcode, C, Ty, Name, InsertBefore); in CreateIntegerCast()
2767 Instruction *InsertBefore) { in CreateFPCast() argument
2775 return Create(opcode, C, Ty, Name, InsertBefore); in CreateFPCast()
3129 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in TruncInst() argument
3130 ) : CastInst(Ty, Trunc, S, Name, InsertBefore) { in TruncInst()
3141 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in ZExtInst() argument
3142 ) : CastInst(Ty, ZExt, S, Name, InsertBefore) { in ZExtInst()
3152 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in SExtInst() argument
3153 ) : CastInst(Ty, SExt, S, Name, InsertBefore) { in SExtInst()
3164 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPTruncInst() argument
3165 ) : CastInst(Ty, FPTrunc, S, Name, InsertBefore) { in FPTruncInst()
3176 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPExtInst() argument
3177 ) : CastInst(Ty, FPExt, S, Name, InsertBefore) { in FPExtInst()
3188 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in UIToFPInst() argument
3189 ) : CastInst(Ty, UIToFP, S, Name, InsertBefore) { in UIToFPInst()
3200 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in SIToFPInst() argument
3201 ) : CastInst(Ty, SIToFP, S, Name, InsertBefore) { in SIToFPInst()
3212 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPToUIInst() argument
3213 ) : CastInst(Ty, FPToUI, S, Name, InsertBefore) { in FPToUIInst()
3224 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPToSIInst() argument
3225 ) : CastInst(Ty, FPToSI, S, Name, InsertBefore) { in FPToSIInst()
3236 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in PtrToIntInst() argument
3237 ) : CastInst(Ty, PtrToInt, S, Name, InsertBefore) { in PtrToIntInst()
3248 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in IntToPtrInst() argument
3249 ) : CastInst(Ty, IntToPtr, S, Name, InsertBefore) { in IntToPtrInst()
3260 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in BitCastInst() argument
3261 ) : CastInst(Ty, BitCast, S, Name, InsertBefore) { in BitCastInst()
3272 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in AddrSpaceCastInst() argument
3273 ) : CastInst(Ty, AddrSpaceCast, S, Name, InsertBefore) { in AddrSpaceCastInst()
3288 Value *RHS, const Twine &Name, Instruction *InsertBefore, in CmpInst() argument
3293 InsertBefore) { in CmpInst()
3316 const Twine &Name, Instruction *InsertBefore) { in Create() argument
3318 if (InsertBefore) in Create()
3319 return new ICmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
3326 if (InsertBefore) in Create()
3327 return new FCmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
3637 Instruction *InsertBefore) in SwitchInst() argument
3639 nullptr, 0, InsertBefore) { in SwitchInst()
3744 Instruction *InsertBefore) in IndirectBrInst() argument
3746 Instruction::IndirectBr, nullptr, 0, InsertBefore) { in IndirectBrInst()