signed integer types still in LLVM 2.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

signed integer types still in LLVM 2.1

Seung Jae Lee
Hello.

I updated my LLVM with version 2.1 from 1.9.
But I am curious why I still have signed integer type.

I still get LLVM IR as follows:
......
......
bb8.outer: ; preds = %bb10, %entry
        %i.0.0.ph = phi uint [ 0, %entry ], [ %indvar.next26, %bb10 ] ; <uint> [#uses=2]
        %sum.0.pn.ph = phi uint [ 0, %entry ], [ %sum.1, %bb10 ] ; <uint> [#uses=1]
        br label %bb8

bb3: ; preds = %bb8
        %indvar.next = add uint %j.1, 1 ; <uint> [#uses=1]
        br label %bb8
.....
.....

When I compared this with that from LLVM 1.9, I found all the "cast" instructions eliminated in IR from 2.1, so I seem to be on 2.1 side.
But can't see i32 something like this in IR now.
(my llvm-gcc is based on gcc 4.0.1)

Am I missing something?

Thank you,
Seung


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: signed integer types still in LLVM 2.1

Chris Lattner
On Tue, 5 Feb 2008, Seung Jae Lee wrote:
> I updated my LLVM with version 2.1 from 1.9.
> But I am curious why I still have signed integer type.

Did you update your llvm-gcc?

-Chris

> I still get LLVM IR as follows:
> ......
> ......
> bb8.outer: ; preds = %bb10, %entry
> %i.0.0.ph = phi uint [ 0, %entry ], [ %indvar.next26, %bb10 ] ; <uint> [#uses=2]
> %sum.0.pn.ph = phi uint [ 0, %entry ], [ %sum.1, %bb10 ] ; <uint> [#uses=1]
> br label %bb8
>
> bb3: ; preds = %bb8
> %indvar.next = add uint %j.1, 1 ; <uint> [#uses=1]
> br label %bb8
> .....
> .....
>
> When I compared this with that from LLVM 1.9, I found all the "cast" instructions eliminated in IR from 2.1, so I seem to be on 2.1 side.
> But can't see i32 something like this in IR now.
> (my llvm-gcc is based on gcc 4.0.1)
>
> Am I missing something?
>
> Thank you,
> Seung
>
>
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>

-Chris

--
http://nondot.org/sabre/
http://llvm.org/
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: signed integer types still in LLVM 2.1

Seung Jae Lee
In reply to this post by Seung Jae Lee
I didn't 'cause my llvm-gcc just seems to be 4.0:

]$ llvm-gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../llvm-gcc4-1.9.source/configure --prefix=/mounts/zion/disks/0/localhome/tbrethou/llvm-gcc4/obj/../install --enable-llvm=/localhome/tbrethou/llvm --enable-languages=c,c++ --disable-threads
Thread model: single
gcc version 4.0.1 LLVM (Apple Computer, Inc. build 1.9)

Do I have to also update llvm-gcc whenever I update llvm?
Please forgive my ignorance and thanks for your kind favor in advance.

Thanks,
Seung

---- Original message ----

>Date: Tue, 5 Feb 2008 11:25:58 -0800 (PST)
>From: Chris Lattner <[hidden email]>  
>Subject: Re: [LLVMdev] signed integer types still in LLVM 2.1  
>To: LLVM Developers Mailing List <[hidden email]>
>
>On Tue, 5 Feb 2008, Seung Jae Lee wrote:
>> I updated my LLVM with version 2.1 from 1.9.
>> But I am curious why I still have signed integer type.
>
>Did you update your llvm-gcc?
>
>-Chris
>
>> I still get LLVM IR as follows:
>> ......
>> ......
>> bb8.outer: ; preds = %bb10, %entry
>> %i.0.0.ph = phi uint [ 0, %entry ], [ %indvar.next26, %bb10 ] ; <uint> [#uses=2]
>> %sum.0.pn.ph = phi uint [ 0, %entry ], [ %sum.1, %bb10 ] ; <uint> [#uses=1]
>> br label %bb8
>>
>> bb3: ; preds = %bb8
>> %indvar.next = add uint %j.1, 1 ; <uint> [#uses=1]
>> br label %bb8
>> .....
>> .....
>>
>> When I compared this with that from LLVM 1.9, I found all the "cast" instructions eliminated in IR from 2.1, so I seem to be on 2.1 side.
>> But can't see i32 something like this in IR now.
>> (my llvm-gcc is based on gcc 4.0.1)
>>
>> Am I missing something?
>>
>> Thank you,
>> Seung
>>
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> [hidden email]         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>
>-Chris
>
>--
>http://nondot.org/sabre/
>http://llvm.org/
>_______________________________________________
>LLVM Developers mailing list
>[hidden email]         http://llvm.cs.uiuc.edu
>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: signed integer types still in LLVM 2.1

Tanya Lattner-2

> I didn't 'cause my llvm-gcc just seems to be 4.0:
>
> ]$ llvm-gcc -v
> Using built-in specs.
> Target: i686-pc-linux-gnu
> Configured with: ../llvm-gcc4-1.9.source/configure --prefix=/mounts/zion/disks/0/localhome/tbrethou/llvm-gcc4/obj/../install --enable-llvm=/localhome/tbrethou/llvm --enable-languages=c,c++ --disable-threads
> Thread model: single
> gcc version 4.0.1 LLVM (Apple Computer, Inc. build 1.9)
>
> Do I have to also update llvm-gcc whenever I update llvm?
> Please forgive my ignorance and thanks for your kind favor in advance.

Yes. See the "build 1.9" that means you are using llvm-gcc4.0 release 1.9.
llvm-gcc and llvm versions must be the same.

-Tanya

>
> Thanks,
> Seung
>
> ---- Original message ----
>> Date: Tue, 5 Feb 2008 11:25:58 -0800 (PST)
>> From: Chris Lattner <[hidden email]>
>> Subject: Re: [LLVMdev] signed integer types still in LLVM 2.1
>> To: LLVM Developers Mailing List <[hidden email]>
>>
>> On Tue, 5 Feb 2008, Seung Jae Lee wrote:
>>> I updated my LLVM with version 2.1 from 1.9.
>>> But I am curious why I still have signed integer type.
>>
>> Did you update your llvm-gcc?
>>
>> -Chris
>>
>>> I still get LLVM IR as follows:
>>> ......
>>> ......
>>> bb8.outer: ; preds = %bb10, %entry
>>> %i.0.0.ph = phi uint [ 0, %entry ], [ %indvar.next26, %bb10 ] ; <uint> [#uses=2]
>>> %sum.0.pn.ph = phi uint [ 0, %entry ], [ %sum.1, %bb10 ] ; <uint> [#uses=1]
>>> br label %bb8
>>>
>>> bb3: ; preds = %bb8
>>> %indvar.next = add uint %j.1, 1 ; <uint> [#uses=1]
>>> br label %bb8
>>> .....
>>> .....
>>>
>>> When I compared this with that from LLVM 1.9, I found all the "cast" instructions eliminated in IR from 2.1, so I seem to be on 2.1 side.
>>> But can't see i32 something like this in IR now.
>>> (my llvm-gcc is based on gcc 4.0.1)
>>>
>>> Am I missing something?
>>>
>>> Thank you,
>>> Seung
>>>
>>>
>>> _______________________________________________
>>> LLVM Developers mailing list
>>> [hidden email]         http://llvm.cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>>
>>
>> -Chris
>>
>> --
>> http://nondot.org/sabre/
>> http://llvm.org/
>> _______________________________________________
>> LLVM Developers mailing list
>> [hidden email]         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev