Displaying 2 results from an estimated 2 matches for "getalue".
Did you mean:
getvalue
2004 Jun 17
2
[LLVMdev] ConstantInt::getRawValue
...stantInt and ConstantBool,
I need the following:
if (ConstantInt* CI = dyn_cast<ConstantInt>(V)) {
BuildMI(*MBB, IPt, NM::MOVE, 1, Reg).addImm(CI->getRawValue());
} if (ConstantBool* CB = dyn_cast<ConstantBool>(V)) {
BuildMI(*MBB, IPt, NM::MOVE, 1, Reg).addImm(CI->getalue());
} ...
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 think it's a good idea, I can...
2004 Jun 17
0
[LLVMdev] ConstantInt::getRawValue
...gt; I need the following:
>
> if (ConstantInt* CI = dyn_cast<ConstantInt>(V)) {
> BuildMI(*MBB, IPt, NM::MOVE, 1, Reg).addImm(CI->getRawValue());
> } if (ConstantBool* CB = dyn_cast<ConstantBool>(V)) {
> BuildMI(*MBB, IPt, NM::MOVE, 1, Reg).addImm(CI->getalue());
> } ...
>
> 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...