how to convert into SSA form

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

how to convert into SSA form

lizhuo
Dear All,
        Could someone tell me how to convert LLVM bytecode into minimal SSA form ?
or just depend on GCC frontend ?

        thanks

                                                                aqex

       



_______________________________________________
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: how to convert into SSA form

Reid Spencer
llvm-as file.bc | opt -mem2reg | llvm-dis > file.ll

On Wed, 2006-01-04 at 09:12 +0800, lizhuo wrote:
> meone tell me how to convert LLVM bytecode into minimal SSA form ?
> or just depend on GCC frontend ?

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: how to convert into SSA form

Chris Lattner
On Wed, 11 Jan 2006, Reid Spencer wrote:

> llvm-as file.bc | opt -mem2reg | llvm-dis > file.ll

llvm-as < file.bc | opt -mem2reg | llvm-dis > file.ll

Note the extra "<".

-Chris

> On Wed, 2006-01-04 at 09:12 +0800, lizhuo wrote:
>> meone tell me how to convert LLVM bytecode into minimal SSA form ?
>> or just depend on GCC frontend ?
>

-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: how to convert into SSA form

Misha Brukman-2
On Wed, Jan 11, 2006 at 02:04:36PM -0600, Chris Lattner wrote:
> On Wed, 11 Jan 2006, Reid Spencer wrote:
> >llvm-as file.bc | opt -mem2reg | llvm-dis > file.ll
>
> llvm-as < file.bc | opt -mem2reg | llvm-dis > file.ll
>
> Note the extra "<".

Strictly speaking, llvm-as converts .ll to .bc so that would be:

llvm-as < input.ll | opt -mem2reg | llvm-dis > output.ll
or
opt -mem2reg < file.bc | llvm-dis > file.ll

--
Misha Brukman :: http://misha.brukman.net

_______________________________________________
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: how to convert into SSA form

Reid Spencer
Heh .. guess I fired that off just a little too fast :)

Reid.

On Wed, 2006-01-11 at 21:47 -0600, Misha Brukman wrote:

> On Wed, Jan 11, 2006 at 02:04:36PM -0600, Chris Lattner wrote:
> > On Wed, 11 Jan 2006, Reid Spencer wrote:
> > >llvm-as file.bc | opt -mem2reg | llvm-dis > file.ll
> >
> > llvm-as < file.bc | opt -mem2reg | llvm-dis > file.ll
> >
> > Note the extra "<".
>
> Strictly speaking, llvm-as converts .ll to .bc so that would be:
>
> llvm-as < input.ll | opt -mem2reg | llvm-dis > output.ll
> or
> opt -mem2reg < file.bc | llvm-dis > file.ll
>

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

signature.asc (196 bytes) Download Attachment