diff options
| author | azidar | 2015-04-17 10:59:32 -0700 |
|---|---|---|
| committer | azidar | 2015-04-17 10:59:32 -0700 |
| commit | 01fa067fe52081463222110b957053734e357f79 (patch) | |
| tree | e54db5f543c4c9a84e6b120468c4008a4edac8d0 /src/main/stanza/ir-utils.stanza | |
| parent | 06ff7f7dddcb479d9d4d775a55cbb18d873b35b9 (diff) | |
Fixed bug in primop lowering during type inference. Added reduce instructions and renamed concat -> cat, equal -> eq, and added neq and neg
Diffstat (limited to 'src/main/stanza/ir-utils.stanza')
| -rw-r--r-- | src/main/stanza/ir-utils.stanza | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/main/stanza/ir-utils.stanza b/src/main/stanza/ir-utils.stanza index 310c7227..789b94a3 100644 --- a/src/main/stanza/ir-utils.stanza +++ b/src/main/stanza/ir-utils.stanza @@ -95,9 +95,12 @@ defmethod print (o:OutputStream, op:PrimOp) : GREATER-EQ-US-OP : "geq-us" GREATER-EQ-SU-OP : "geq-su" GREATER-EQ-SS-OP : "geq-ss" - EQUAL-OP : "equal" - EQUAL-UU-OP : "equal-uu" - EQUAL-SS-OP : "equal-ss" + EQUAL-OP : "eq" + EQUAL-UU-OP : "eq-uu" + EQUAL-SS-OP : "eq-ss" + NEQUAL-OP : "neq" + NEQUAL-UU-OP : "neq-uu" + NEQUAL-SS-OP : "neq-ss" MUX-OP : "mux" MUX-UU-OP : "mux-uu" MUX-SS-OP : "mux-ss" @@ -119,13 +122,19 @@ defmethod print (o:OutputStream, op:PrimOp) : CONVERT-OP : "convert" CONVERT-U-OP : "convert-u" CONVERT-S-OP : "convert-s" + NEG-OP : "neg" + NEG-U-OP : "neg-u" + NEG-S-OP : "neg-s" BIT-NOT-OP : "bit-not" BIT-AND-OP : "bit-and" BIT-OR-OP : "bit-or" BIT-XOR-OP : "bit-xor" - CONCAT-OP : "concat" + CONCAT-OP : "cat" BIT-SELECT-OP : "bit" BITS-SELECT-OP : "bits" + BIT-AND-REDUCE-OP : "bit-and-reduce" + BIT-OR-REDUCE-OP : "bit-or-reduce" + BIT-XOR-REDUCE-OP : "bit-xor-reduce" defmethod print (o:OutputStream, e:Expression) : match(e) : |
