aboutsummaryrefslogtreecommitdiff
path: root/ssa.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-04-28 02:17:04 +0800
committerTeddy <ted.sybil@gmail.com>2014-04-28 02:17:04 +0800
commit33d2a7be3d2ccd826dc3063d4d4703e37b8b3dd2 (patch)
treefe2ba503cf0a133362b7d7c8b556ef9bf54f80c1 /ssa.h
parentb5323e5e0c54d1db8b22b8ed12588bc34921b8b2 (diff)
...
Diffstat (limited to 'ssa.h')
-rw-r--r--ssa.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ssa.h b/ssa.h
index d2cba0b..bc28414 100644
--- a/ssa.h
+++ b/ssa.h
@@ -24,7 +24,13 @@ struct CInst {
GOTO, /* unconditional jump */
ARR, /* displacement */
WARR,
- MUL, DIV, MOD, ADD, SUB, SHL, SHR, AND, XOR, OR, LOR, LAND, NEG, NOR, SEQ, EQ, NE, LT, GT, LE, GE
+ PUSH, /* push to stack top */
+ CALL, /* call function */
+ RET, /* return */
+ MUL, DIV, MOD, ADD, SUB,
+ SHL, SHR, AND, XOR, OR,
+ LOR, LAND, NEG, NOR, SEQ,
+ EQ, NE, LT, GT, LE, GE
} op;
COpr dest, src1, src2;
CInst_t next, prev;