[LLVMdev] IRBuilder<>::CreateCall, CreateCall2, CreateCall3, ...

Chris Lattner clattner at apple.com
Fri Jun 25 21:00:50 PDT 2010


On Jun 25, 2010, at 6:24 PM, FĂ©lix Cloutier wrote:

> Hey guys,
> 
> Whys are there like 5 variants of CreateCall in IRBuilder<> with numbers appended to them? The only difference I can see is the number of arguments. Aren't C++ function overloads be suited for this?

An overload could work, but this sort of API makes it more obvious which one you're trying to call and avoids overload ambiguity errors for the range case.

-Chris



More information about the llvm-dev mailing list