Displaying 8 results from an estimated 8 matches for "createfptosi".
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
2010 Sep 28
2
[LLVMdev] x86 rounding mode question
Hi,
Is there a recommended way to round to the nearest whole (x86 RC field of
FPU control = 00) ?
It appears an intentional truncation instruction is generated (if ms
disassembly is correct):
IRBuilder<>::CreateFPToSI
%1 = fptosi double %0 to i64
00370025 fisttp qword ptr [esp]
Thanks,
Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100928/42385881/attachment.html>
2011 Sep 22
2
[LLVMdev] Need help in converting int to double
...mes 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...
2011 Sep 22
0
[LLVMdev] FW: Need help in converting int to double
...value structure)
On Thu, Sep 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 dou...
2011 Sep 22
0
[LLVMdev] Need help in converting int to double
...at 3:12 PM, James Molloy <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 2...
2011 Sep 22
1
[LLVMdev] 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
&g...
2007 Dec 17
0
[LLVMdev] Elsa and LLVM and LLVM submissions
...ar *Name
> = "") {
> + return CreateCast(Instruction::SExt, V, DestTy, Name);
> + }
> + Value *CreateFPToUI(Value *V, const Type *DestTy, const char
> *Name = ""){
> + return CreateCast(Instruction::FPToUI, V, DestTy, Name);
> + }
> + Value *CreateFPToSI(Value *V, const Type *DestTy, const char
> *Name = ""){
> + return CreateCast(Instruction::FPToSI, V, DestTy, Name);
> + }
> + Value *CreateUIToFP(Value *V, const Type *DestTy, const char
> *Name = ""){
> + return CreateCast(Instruction::UIToFP, V,...
2007 Dec 17
2
[LLVMdev] Elsa and LLVM and LLVM submissions
Devang Patel wrote:
> On Dec 15, 2007, at 12:15 PM, Richard Pennington wrote:
>
>> I got the current version of LLVM via svn yesterday and modified my
>> code to
>> use the LLVMFoldingBuilder. Very nice!
>>
>> My question is this: I noticed that the folding builder doesn't fold
>> some
>> operations, e.g. casts. Is there some reason why? If