search for: createshr

Displaying 5 results from an estimated 5 matches for "createshr".

Did you mean: createshl
2011 Sep 22
3
[LLVMdev] Need help in converting int to double
Hi, 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 javascript engine using LLVM as a back-end". Now i'm writing code for shift left(SHL) operator. I had my own Value Structure .. it's like this Struct Value { void *val ; char type; } The "char type" holds
2011 Sep 22
2
[LLVMdev] Need help in converting int to double
...;> wrote: >> Hi Sarath, >> >> If you can only hold doubles (not integers), and you originally converted >> the doubles to integers to do an integer shift, why can you not just convert >> the result back to a double using CreateFPToSI ? >> >> CreateFPToSI(CreateShr(CreateSIToFP(arg0), CreateSIToFP(arg1))) >> >> Cheers, >> >> James >> >> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On >> Behalf Of sarath chandra >> Sent: 22 September 2011 10:37 >> To: llvmdev at cs.uiuc.edu &...
2011 Sep 22
0
[LLVMdev] FW: Need help in converting int to double
...22, 2011 at 3:12 PM, James Molloy <James.Molloy at arm.com> wrote: Hi Sarath, If you can only hold doubles (not integers), and you originally converted the doubles to integers to do an integer shift, why can you not just convert the result back to a double using CreateFPToSI ? CreateFPToSI(CreateShr(CreateSIToFP(arg0), CreateSIToFP(arg1))) Cheers, James From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of sarath chandra Sent: 22 September 2011 10:37 To: llvmdev at cs.uiuc.edu Subject: [LLVMdev] Need help in converting int to double Hi, I'm pur...
2011 Sep 22
0
[LLVMdev] Need help in converting int to double
...;James.Molloy at arm.com<mailto:James.Molloy at arm.com>> wrote: Hi Sarath, If you can only hold doubles (not integers), and you originally converted the doubles to integers to do an integer shift, why can you not just convert the result back to a double using CreateFPToSI ? CreateFPToSI(CreateShr(CreateSIToFP(arg0), CreateSIToFP(arg1))) Cheers, James From: llvmdev-bounces at cs.uiuc.edu<mailto:llvmdev-bounces at cs.uiuc.edu> [mailto:llvmdev-bounces at cs.uiuc.edu<mailto:llvmdev-bounces at cs.uiuc.edu>] On Behalf Of sarath chandra Sent: 22 September 2011 10:37 To: llvmdev at c...
2011 Sep 22
1
[LLVMdev] Need help in converting int to double
...;James.Molloy at arm.com> > wrote: > Hi Sarath, > > If you can only hold doubles (not integers), and you originally converted > the doubles to integers to do an integer shift, why can you not just convert > the result back to a double using CreateFPToSI ? > > CreateFPToSI(CreateShr(CreateSIToFP(arg0), CreateSIToFP(arg1))) > > Cheers, > > James > > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On > Behalf Of sarath chandra > Sent: 22 September 2011 10:37 > To: llvmdev at cs.uiuc.edu > Subject: [LLVMdev] Need help in...