[LLVMdev] ConstantInt::getRawValue
Chris Lattner
sabre at nondot.org
Sat Jun 19 12:44:00 PDT 2004
On Sat, 19 Jun 2004, Vladimir Prus wrote:
> > Sure that sounds great. It increases the size of the ConstantBool class,
> > but since there are only two instances of it ever created, I think we can
> > live with this. :)
>
> I actually meant making getRawValue into a virtual function, so the size of
> ConstantBool won't change, but speed might change. I'm not at all sure that
> the virtual call overhead will be noticable, but if you prefer to move both
> getRawValue and Val into ConstantIntergal, that's fine with me, too -- I can
> make a change either way.
Yes, please move those up to ConstantBool.
-Chris
--
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/
More information about the llvm-dev
mailing list