IR tree representation of binary operation

Posted by drozzy on Stack Overflow See other posts from Stack Overflow or by drozzy
Published on 2010-03-30T21:44:25Z Indexed on 2010/03/30 22:13 UTC
Read the original article Hit count: 473

Filed under:
|

I have a simple operation like so:

k + 1

What would be a IR tree representation of it?
So far I came up with:

BINOP(+, MEM(NAME(k)), CONST(1))

but I am not sure if I need the MEM for NAME or not. Any help welcome.

© Stack Overflow or respective owner

Related posts about compiler-theory

Related posts about compiler