• Home
  • Raw
  • Download

Lines Matching refs:InsertBefore

180                                const Twine &NameStr, Instruction *InsertBefore)  in LandingPadInst()  argument
181 : Instruction(RetTy, Instruction::LandingPad, nullptr, 0, InsertBefore) { in LandingPadInst()
206 Instruction *InsertBefore) { in Create() argument
207 return new LandingPadInst(RetTy, NumReservedClauses, NameStr, InsertBefore); in Create()
287 Instruction *InsertBefore) in CallInst() argument
292 1, InsertBefore) { in CallInst()
441 static Instruction *createMalloc(Instruction *InsertBefore, in createMalloc() argument
447 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createMalloc()
457 if (InsertBefore) in createMalloc()
459 "", InsertBefore); in createMalloc()
475 if (InsertBefore) in createMalloc()
477 "mallocsize", InsertBefore); in createMalloc()
486 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createMalloc()
496 if (InsertBefore) { in createMalloc()
498 InsertBefore); in createMalloc()
502 Result = new BitCastInst(MCall, AllocPtrType, Name, InsertBefore); in createMalloc()
528 Instruction *CallInst::CreateMalloc(Instruction *InsertBefore, in CreateMalloc() argument
533 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
536 Instruction *CallInst::CreateMalloc(Instruction *InsertBefore, in CreateMalloc() argument
542 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
573 Instruction *InsertBefore, in createFree() argument
575 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) && in createFree()
580 BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd; in createFree()
589 if (InsertBefore) { in createFree()
591 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore); in createFree()
592 Result = CallInst::Create(FreeFunc, PtrCast, Bundles, "", InsertBefore); in createFree()
606 Instruction *CallInst::CreateFree(Value *Source, Instruction *InsertBefore) { in CreateFree() argument
607 return createFree(Source, None, InsertBefore, nullptr); in CreateFree()
611 Instruction *InsertBefore) { in CreateFree() argument
612 return createFree(Source, Bundles, InsertBefore, nullptr); in CreateFree()
816 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, Instruction *InsertBefore) in ReturnInst() argument
819 InsertBefore) { in ReturnInst()
862 ResumeInst::ResumeInst(Value *Exn, Instruction *InsertBefore) in ResumeInst() argument
864 OperandTraits<ResumeInst>::op_begin(this), 1, InsertBefore) { in ResumeInst()
911 unsigned Values, Instruction *InsertBefore) in CleanupReturnInst() argument
915 Values, InsertBefore) { in CleanupReturnInst()
956 Instruction *InsertBefore) in CatchReturnInst() argument
959 InsertBefore) { in CatchReturnInst()
990 Instruction *InsertBefore) in CatchSwitchInst() argument
992 InsertBefore) { in CatchSwitchInst()
1098 const Twine &NameStr, Instruction *InsertBefore) in FuncletPadInst() argument
1101 InsertBefore) { in FuncletPadInst()
1119 Instruction *InsertBefore) in UnreachableInst() argument
1121 nullptr, 0, InsertBefore) { in UnreachableInst()
1150 BranchInst::BranchInst(BasicBlock *IfTrue, Instruction *InsertBefore) in BranchInst() argument
1153 1, InsertBefore) { in BranchInst()
1158 Instruction *InsertBefore) in BranchInst() argument
1161 3, InsertBefore) { in BranchInst()
1250 AllocaInst::AllocaInst(Type *Ty, const Twine &Name, Instruction *InsertBefore) in AllocaInst() argument
1251 : AllocaInst(Ty, /*ArraySize=*/nullptr, Name, InsertBefore) {} in AllocaInst()
1257 Instruction *InsertBefore) in AllocaInst() argument
1258 : AllocaInst(Ty, ArraySize, /*Align=*/0, Name, InsertBefore) {} in AllocaInst()
1265 const Twine &Name, Instruction *InsertBefore) in AllocaInst() argument
1267 getAISize(Ty->getContext(), ArraySize), InsertBefore), in AllocaInst()
1441 StoreInst::StoreInst(Value *val, Value *addr, Instruction *InsertBefore) in StoreInst() argument
1442 : StoreInst(val, addr, /*isVolatile=*/false, InsertBefore) {} in StoreInst()
1448 Instruction *InsertBefore) in StoreInst() argument
1449 : StoreInst(val, addr, isVolatile, /*Align=*/0, InsertBefore) {} in StoreInst()
1456 Instruction *InsertBefore) in StoreInst() argument
1458 CrossThread, InsertBefore) {} in StoreInst()
1468 Instruction *InsertBefore) in StoreInst() argument
1472 InsertBefore) { in StoreInst()
1547 Instruction *InsertBefore) in AtomicCmpXchgInst() argument
1552 OperandTraits<AtomicCmpXchgInst>::operands(this), InsertBefore) { in AtomicCmpXchgInst()
1596 Instruction *InsertBefore) in AtomicRMWInst() argument
1600 InsertBefore) { in AtomicRMWInst()
1621 Instruction *InsertBefore) in FenceInst() argument
1622 : Instruction(Type::getVoidTy(C), Fence, nullptr, 0, InsertBefore) { in FenceInst()
1838 Instruction *InsertBefore) in ShuffleVectorInst() argument
1844 InsertBefore) { in ShuffleVectorInst()
2041 Instruction *InsertBefore) in BinaryOperator() argument
2045 InsertBefore) { in BinaryOperator()
2143 Instruction *InsertBefore) { in Create() argument
2146 return new BinaryOperator(Op, S1, S2, S1->getType(), Name, InsertBefore); in Create()
2158 Instruction *InsertBefore) { in CreateNeg() argument
2162 Op->getType(), Name, InsertBefore); in CreateNeg()
2174 Instruction *InsertBefore) { in CreateNSWNeg() argument
2176 return BinaryOperator::CreateNSWSub(zero, Op, Name, InsertBefore); in CreateNSWNeg()
2186 Instruction *InsertBefore) { in CreateNUWNeg() argument
2188 return BinaryOperator::CreateNUWSub(zero, Op, Name, InsertBefore); in CreateNUWNeg()
2198 Instruction *InsertBefore) { in CreateFNeg() argument
2201 Op->getType(), Name, InsertBefore); in CreateFNeg()
2212 Instruction *InsertBefore) { in CreateNot() argument
2215 Op->getType(), Name, InsertBefore); in CreateNot()
2647 const Twine &Name, Instruction *InsertBefore) { in Create() argument
2651 case Trunc: return new TruncInst (S, Ty, Name, InsertBefore); in Create()
2652 case ZExt: return new ZExtInst (S, Ty, Name, InsertBefore); in Create()
2653 case SExt: return new SExtInst (S, Ty, Name, InsertBefore); in Create()
2654 case FPTrunc: return new FPTruncInst (S, Ty, Name, InsertBefore); in Create()
2655 case FPExt: return new FPExtInst (S, Ty, Name, InsertBefore); in Create()
2656 case UIToFP: return new UIToFPInst (S, Ty, Name, InsertBefore); in Create()
2657 case SIToFP: return new SIToFPInst (S, Ty, Name, InsertBefore); in Create()
2658 case FPToUI: return new FPToUIInst (S, Ty, Name, InsertBefore); in Create()
2659 case FPToSI: return new FPToSIInst (S, Ty, Name, InsertBefore); in Create()
2660 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertBefore); in Create()
2661 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertBefore); in Create()
2662 case BitCast: return new BitCastInst (S, Ty, Name, InsertBefore); in Create()
2663 case AddrSpaceCast: return new AddrSpaceCastInst (S, Ty, Name, InsertBefore); in Create()
2692 Instruction *InsertBefore) { in CreateZExtOrBitCast() argument
2694 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateZExtOrBitCast()
2695 return Create(Instruction::ZExt, S, Ty, Name, InsertBefore); in CreateZExtOrBitCast()
2708 Instruction *InsertBefore) { in CreateSExtOrBitCast() argument
2710 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateSExtOrBitCast()
2711 return Create(Instruction::SExt, S, Ty, Name, InsertBefore); in CreateSExtOrBitCast()
2724 Instruction *InsertBefore) { in CreateTruncOrBitCast() argument
2726 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateTruncOrBitCast()
2727 return Create(Instruction::Trunc, S, Ty, Name, InsertBefore); in CreateTruncOrBitCast()
2758 Instruction *InsertBefore) { in CreatePointerCast() argument
2768 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreatePointerCast()
2770 return CreatePointerBitCastOrAddrSpaceCast(S, Ty, Name, InsertBefore); in CreatePointerCast()
2789 Instruction *InsertBefore) { in CreatePointerBitCastOrAddrSpaceCast() argument
2794 return Create(Instruction::AddrSpaceCast, S, Ty, Name, InsertBefore); in CreatePointerBitCastOrAddrSpaceCast()
2796 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreatePointerBitCastOrAddrSpaceCast()
2801 Instruction *InsertBefore) { in CreateBitOrPointerCast() argument
2803 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
2805 return Create(Instruction::IntToPtr, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
2807 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
2812 Instruction *InsertBefore) { in CreateIntegerCast() argument
2821 return Create(opcode, C, Ty, Name, InsertBefore); in CreateIntegerCast()
2840 Instruction *InsertBefore) { in CreateFPCast() argument
2848 return Create(opcode, C, Ty, Name, InsertBefore); in CreateFPCast()
3200 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in TruncInst() argument
3201 ) : CastInst(Ty, Trunc, S, Name, InsertBefore) { in TruncInst()
3212 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in ZExtInst() argument
3213 ) : CastInst(Ty, ZExt, S, Name, InsertBefore) { in ZExtInst()
3223 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in SExtInst() argument
3224 ) : CastInst(Ty, SExt, S, Name, InsertBefore) { in SExtInst()
3235 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPTruncInst() argument
3236 ) : CastInst(Ty, FPTrunc, S, Name, InsertBefore) { in FPTruncInst()
3247 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPExtInst() argument
3248 ) : CastInst(Ty, FPExt, S, Name, InsertBefore) { in FPExtInst()
3259 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in UIToFPInst() argument
3260 ) : CastInst(Ty, UIToFP, S, Name, InsertBefore) { in UIToFPInst()
3271 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in SIToFPInst() argument
3272 ) : CastInst(Ty, SIToFP, S, Name, InsertBefore) { in SIToFPInst()
3283 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPToUIInst() argument
3284 ) : CastInst(Ty, FPToUI, S, Name, InsertBefore) { in FPToUIInst()
3295 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPToSIInst() argument
3296 ) : CastInst(Ty, FPToSI, S, Name, InsertBefore) { in FPToSIInst()
3307 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in PtrToIntInst() argument
3308 ) : CastInst(Ty, PtrToInt, S, Name, InsertBefore) { in PtrToIntInst()
3319 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in IntToPtrInst() argument
3320 ) : CastInst(Ty, IntToPtr, S, Name, InsertBefore) { in IntToPtrInst()
3331 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in BitCastInst() argument
3332 ) : CastInst(Ty, BitCast, S, Name, InsertBefore) { in BitCastInst()
3343 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in AddrSpaceCastInst() argument
3344 ) : CastInst(Ty, AddrSpaceCast, S, Name, InsertBefore) { in AddrSpaceCastInst()
3361 Value *RHS, const Twine &Name, Instruction *InsertBefore) in CmpInst() argument
3365 InsertBefore) { in CmpInst()
3386 const Twine &Name, Instruction *InsertBefore) { in Create() argument
3388 if (InsertBefore) in Create()
3389 return new ICmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
3396 if (InsertBefore) in Create()
3397 return new FCmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
3704 Instruction *InsertBefore) in SwitchInst() argument
3706 nullptr, 0, InsertBefore) { in SwitchInst()
3821 Instruction *InsertBefore) in IndirectBrInst() argument
3823 nullptr, 0, InsertBefore) { in IndirectBrInst()