search for: constantinterg

Displaying 3 results from an estimated 3 matches for "constantinterg".

Did you mean: constantintergal
2004 Jun 19
1
[LLVMdev] ConstantInt::getRawValue
...ink 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. - Volodya
2004 Jun 17
2
[LLVMdev] ConstantInt::getRawValue
Is there are reason why ConstantInt::getRawValue method can't be moved one step into class hierarchy, into ConstantIntegral::getRawValue The reason I'd like this is that to handle both ConstantInt and ConstantBool, I need the following: if (ConstantInt* CI = dyn_cast<ConstantInt>(V)) { BuildMI(*MBB, IPt, NM::MOVE, 1, Reg).addImm(CI->getRawValue()); } if
2004 Jun 17
0
[LLVMdev] ConstantInt::getRawValue
On Thu, 17 Jun 2004, Vladimir Prus wrote: > Is there are reason why ConstantInt::getRawValue method can't be moved one > step into class hierarchy, into ConstantIntegral::getRawValue > > The reason I'd like this is that to handle both ConstantInt and ConstantBool, > I need the following: > > if (ConstantInt* CI = dyn_cast<ConstantInt>(V)) { >