[LLVMdev] LLVM SSA

ivtm martinaide1 at yahoo.com
Fri Sep 25 19:15:44 PDT 2009


Hi,

I am wondering if there are options that can be given to LLVM can be used to
generate code that is not in SSA, but in plain 3-address form ?  (for
example, if there is an existing pass that does the register allocation and
dead variable elimination)

For example, if I have:

int x = 0;

void main()
{
   x++;
   x++;
}

I guess, if that is not the case, then, one needs to write their own pass.

I have written a small pass on the existing IR, but my goal now is to get it
to use as few variables as possible.

thanks,
Martin.
-- 
View this message in context: http://www.nabble.com/LLVM-SSA-tp25621668p25621668.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.




More information about the llvm-dev mailing list