how to convert into SSA form

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

  thanks

                aqex

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

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

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

Note the extra "<".

-Chris

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

Heh .. guess I fired that off just a little too fast :slight_smile:

Reid.