search for: getrawvalu

Displaying 4 results from an estimated 4 matches for "getrawvalu".

Did you mean: getrawvalue
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...
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)) { > Buil...
2004 Jun 19
1
[LLVMdev] ConstantInt::getRawValue
Chris Lattner wrote: > > If getRawValue is moved to ConstantIntegral, I'd simply write > > > > if (ConstantIntegral* CI = dyn_cast<ConstantInt>(V)) { > > BuildMI(*MBB, IPt, NM::MOVE, 1, Reg).addImm(CI->getRawValue()); > > } ... > > > > which is a bit nicer. Of course, if you thin...
2006 Oct 20
0
[LLVMdev] SignlessTypes: Removal of Constant[SU]Int
...le changes. In most cases just removing the "S" or "U" from the class name should be all you need. For example: ConstantSInt::get(Type::IntTy, 0) -> ConstantInt::get(Type::IntTy, 0) Changes To Make: 1. ConstantUInt -> ConstantInt 2. ConstantSInt -> ConstantInt 3. The getRawValue method is gone. Use getZExtValue() instead. 4. The getValue method is gone. Use either getZExtValue (zero extended) or getSExtValue (sign extended) depending on the context. These changes pass both dejagnu and llvm-test test suites at the time of being committed. Reid.