llvm.org GIT mirror llvm / 7010013
Add CreateCall3/CreateCall4 at Eric's request. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50515 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
479479 Value *Args[] = { Arg1, Arg2 };
480480 return Insert(CallInst::Create(Callee, Args, Args+2, Name));
481481 }
482 CallInst *CreateCall3(Value *Callee, Value *Arg1, Value *Arg2, Value *Arg3,
483 const char *Name = "") {
484 Value *Args[] = { Arg1, Arg2, Arg3 };
485 return Insert(CallInst::Create(Callee, Args, Args+3, Name));
486 }
487 CallInst *CreateCall4(Value *Callee, Value *Arg1, Value *Arg2, Value *Arg3,
488 Value *Arg4, const char *Name = "") {
489 Value *Args[] = { Arg1, Arg2, Arg3, Arg4 };
490 return Insert(CallInst::Create(Callee, Args, Args+4, Name));
491 }
482492
483493 template
484494 CallInst *CreateCall(Value *Callee, InputIterator ArgBegin,