Home | History | Annotate | Download | only in IR

Lines Matching full:insertbefore

182                                Instruction *InsertBefore)
183 : Instruction(RetTy, Instruction::LandingPad, 0, 0, InsertBefore) {
212 Instruction *InsertBefore) {
214 InsertBefore);
303 Instruction *InsertBefore)
308 1, InsertBefore) {
371 static Instruction *createMalloc(Instruction *InsertBefore,
376 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) &&
377 "createMalloc needs either InsertBefore or InsertAtEnd");
386 if (InsertBefore)
388 "", InsertBefore);
404 if (InsertBefore)
406 "mallocsize", InsertBefore);
415 BasicBlock* BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd;
425 if (InsertBefore) {
426 MCall = CallInst::Create(MallocFunc, AllocSize, "malloccall", InsertBefore);
430 InsertBefore);
456 Instruction *CallInst::CreateMalloc(Instruction *InsertBefore,
461 return createMalloc(InsertBefore, NULL, IntPtrTy, AllocTy, AllocSize,
481 static Instruction* createFree(Value* Source, Instruction *InsertBefore,
483 assert(((!InsertBefore && InsertAtEnd) || (InsertBefore && !InsertAtEnd)) &&
484 "createFree needs either InsertBefore or InsertAtEnd");
488 BasicBlock* BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd;
497 if (InsertBefore) {
499 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore);
500 Result = CallInst::Create(FreeFunc, PtrCast, "", InsertBefore);
514 Instruction * CallInst::CreateFree(Value* Source, Instruction *InsertBefore) {
515 return createFree(Source, InsertBefore, NULL);
625 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, Instruction *InsertBefore)
628 InsertBefore) {
671 ResumeInst::ResumeInst(Value *Exn, Instruction *InsertBefore)
673 OperandTraits<ResumeInst>::op_begin(this), 1, InsertBefore) {
700 Instruction *InsertBefore)
702 0, 0, InsertBefore) {
731 BranchInst::BranchInst(BasicBlock *IfTrue, Instruction *InsertBefore)
734 1, InsertBefore) {
739 Instruction *InsertBefore)
742 3, InsertBefore) {
835 const Twine &Name, Instruction *InsertBefore)
837 getAISize(Ty->getContext(), ArraySize), InsertBefore) {
853 Instruction *InsertBefore)
855 getAISize(Ty->getContext(), 0), InsertBefore) {
871 InsertBefore)
873 getAISize(Ty->getContext(), ArraySize), InsertBefore) {
1090 StoreInst::StoreInst(Value *val, Value *addr, Instruction *InsertBefore)
1094 InsertBefore) {
1117 Instruction *InsertBefore)
1121 InsertBefore) {
1131 unsigned Align, Instruction *InsertBefore)
1135 InsertBefore) {
1147 Instruction *InsertBefore)
1151 InsertBefore) {
1243 Instruction *InsertBefore)
1247 InsertBefore) {
1289 Instruction *InsertBefore)
1293 InsertBefore) {
1314 Instruction *InsertBefore)
1315 : Instruction(Type::getVoidTy(C), Fence, 0, 0, InsertBefore) {
1530 Instruction *InsertBefore)
1536 InsertBefore) {
1734 Instruction *InsertBefore)
1738 InsertBefore) {
1836 Instruction *InsertBefore) {
1839 return new BinaryOperator(Op, S1, S2, S1->getType(), Name, InsertBefore);
1851 Instruction *InsertBefore) {
1855 Op->getType(), Name, InsertBefore);
1867 Instruction *InsertBefore) {
1869 return BinaryOperator::CreateNSWSub(zero, Op, Name, InsertBefore);
1879 Instruction *InsertBefore) {
1881 return BinaryOperator::CreateNUWSub(zero, Op, Name, InsertBefore);
1891 Instruction *InsertBefore) {
1894 Op->getType(), Name, InsertBefore);
1905 Instruction *InsertBefore) {
1908 Op->getType(), Name, InsertBefore);
2289 const Twine &Name, Instruction *InsertBefore) {
2293 case Trunc: return new TruncInst (S, Ty, Name, InsertBefore);
2294 case ZExt: return new ZExtInst (S, Ty, Name, InsertBefore);
2295 case SExt: return new SExtInst (S, Ty, Name, InsertBefore);
2296 case FPTrunc: return new FPTruncInst (S, Ty, Name, InsertBefore);
2297 case FPExt: return new FPExtInst (S, Ty, Name, InsertBefore);
2298 case UIToFP: return new UIToFPInst (S, Ty, Name, InsertBefore);
2299 case SIToFP: return new SIToFPInst (S, Ty, Name, InsertBefore);
2300 case FPToUI: return new FPToUIInst (S, Ty, Name, InsertBefore);
2301 case FPToSI: return new FPToSIInst (S, Ty, Name, InsertBefore);
2302 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertBefore);
2303 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertBefore);
2304 case BitCast: return new BitCastInst (S, Ty, Name, InsertBefore);
2332 Instruction *InsertBefore) {
2334 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore);
2335 return Create(Instruction::ZExt, S, Ty, Name, InsertBefore);
2348 Instruction *InsertBefore) {
2350 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore);
2351 return Create(Instruction::SExt, S, Ty, Name, InsertBefore);
2364 Instruction *InsertBefore) {
2366 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore);
2367 return Create(Instruction::Trunc, S, Ty, Name, InsertBefore);
2393 Instruction *InsertBefore) {
2399 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore);
2400 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore);
2405 Instruction *InsertBefore) {
2414 return Create(opcode, C, Ty, Name, InsertBefore);
2433 Instruction *InsertBefore) {
2441 return Create(opcode, C, Ty, Name, InsertBefore);
2709 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2710 ) : CastInst(Ty, Trunc, S, Name, InsertBefore) {
2721 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2722 ) : CastInst(Ty, ZExt, S, Name, InsertBefore) {
2732 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2733 ) : CastInst(Ty, SExt, S, Name, InsertBefore) {
2744 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2745 ) : CastInst(Ty, FPTrunc, S, Name, InsertBefore) {
2756 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2757 ) : CastInst(Ty, FPExt, S, Name, InsertBefore) {
2768 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2769 ) : CastInst(Ty, UIToFP, S, Name, InsertBefore) {
2780 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2781 ) : CastInst(Ty, SIToFP, S, Name, InsertBefore) {
2792 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2793 ) : CastInst(Ty, FPToUI, S, Name, InsertBefore) {
2804 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2805 ) : CastInst(Ty, FPToSI, S, Name, InsertBefore) {
2816 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2817 ) : CastInst(Ty, PtrToInt, S, Name, InsertBefore) {
2828 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2829 ) : CastInst(Ty, IntToPtr, S, Name, InsertBefore) {
2840 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore
2841 ) : CastInst(Ty, BitCast, S, Name, InsertBefore) {
2859 Instruction *InsertBefore)
2863 InsertBefore) {
2886 const Twine &Name, Instruction *InsertBefore) {
2888 if (InsertBefore)
2889 return new ICmpInst(InsertBefore, CmpInst::Predicate(predicate),
2896 if (InsertBefore)
2897 return new FCmpInst(InsertBefore, CmpInst::Predicate(predicate),
3157 Instruction *InsertBefore)
3159 0, 0, InsertBefore) {
3312 Instruction *InsertBefore)
3314 0, 0, InsertBefore) {