diff options
Diffstat (limited to 'src/ir.hff')
| -rw-r--r-- | src/ir.hff | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -18,6 +18,8 @@ struct IRValue { BImm bool, Null, Tmp int, + Local *Decl, + Global *Decl, } } @@ -28,7 +30,9 @@ enum union IRArg { } enum IRInstT { + nop, neg, + not, compl, fneg, add, @@ -46,15 +50,24 @@ enum IRInstT { fsub, fmul, fdiv, + eq, + neq, + lt, + lteq, copy, + load, + store, call, + b, + beqz, ret0, + ret, } struct IRInst { t IRInstT, next *IRInst, - cond *IRInst, + branch *IRInst, call_nargs int, args [0]IRArg, } |