[LLVMdev] how to convert into SSA form

Misha Brukman
Thu, 12 Jan 2006 03:47:31 -0000

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