[LLVMdev] API design (and Boost and tr1)

Chris Lattner sabre at nondot.org
Tue Jul 10 11:38:04 PDT 2007


On Thu, 5 Jul 2007, David Greene wrote:
> On Thursday 05 July 2007 11:54, Chris Lattner wrote:
>> Here's another crazy idea.  Instead of overloading the callinst ctor, why
>> not just add a static function to create the call (like binaryoperator and
>> friends):
>>
>>    C = CallInst::CreateWithArgRange(X, B, V.begin(), V.end());
>>
>> That way you can completely avoid the overloading issues.
>
> What's the relationship of this idea to LLVMBuilder?

It is orthogonal.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list