[LLVMdev] how to convert into SSA form

Misha Brukman brukman at cs.uiuc.edu
Wed Jan 11 19:47:31 PST 2006


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




More information about the llvm-dev mailing list