Displaying 3 results from an estimated 3 matches for "indexvalu".
Did you mean:
indexvalue
2013 Sep 06
2
[LLVMdev] How to get the exact integer from a Value
Hi,all
I have a Value* type named indexValue, and the type is i32.
I think "indexValue" must hold a number which type is int.
Now I want to use the exact number which pointed by indexValue , so I do
like this:
ConstantInt* CI = llvm::cast<llvm::ConstantInt>(indexValue); //This is
wrong, so is dyn_cast.
uint64_t index = index...
2013 Sep 06
0
[LLVMdev] How to get the exact integer from a Value
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of weixuegong
> Subject: [LLVMdev] How to get the exact integer from a Value
> I have a Value* type named indexValue, and the type is i32.
> I think "indexValue" must hold a number which type is int.
Correct, but it might not be a constant.
> ConstantInt* CI = llvm::cast<llvm::ConstantInt>(indexValue); //This is wrong, so is dyn_cast.
> uint64_t index = indexValue->getZExtValue();...
2013 Sep 06
1
[LLVMdev] How to get the exact integer from a Value
...will appreciate if you could give me some suggestion on this.
Thank you.
>> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
>> On Behalf Of weixuegong
>> Subject: [LLVMdev] How to get the exact integer from a Value
>> I have a Value* type named indexValue, and the type is i32.
>> I think "indexValue" must hold a number which type is int.
> Correct, but it might not be a constant.
>
>> ConstantInt* CI = llvm::cast<llvm::ConstantInt>(indexValue); //This is wrong, so is dyn_cast.
>> uint64_t index = indexValue-&...