[LLVMdev] Need help in converting int to double
sarathcse19 at gmail.com
Thu Sep 22 02:36:43 PDT 2011
I'm pursuing M.Tech course. As a part of the project work i'm using
LLVM as back-end. My project area is "Enhancing the performance of V8
Now i'm writing code for shift left(SHL) operator. I had my own Value
Structure .. it's like this
void *val ;
The "char type" holds DoubleType,DoubleConst,StringType,StringConst...
when i'm executing the IrBuilder.CreateShl(LHS,RHS) instruction it is
returning an integer value as output.. i'm unable to store the value in my
structure....(because my structure can hold Doubles,Strings).
Is there any way to store the integer output in my structure( i used
CreateSIToFP() to change int to double)........
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev