summaryrefslogtreecommitdiff
path: root/parse/ops.def
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-01-25 14:35:28 -0800
committerOri Bernstein <ori@eigenstate.org>2015-01-25 14:35:28 -0800
commit063b2a4e134589a8a1d635708eb0eb39d5a76bfb (patch)
tree75bb6fc8c0393f624fe76c5edd5377fc867378ba /parse/ops.def
parentbd0724eccecfb0ea9651cf8d5b5f8d6bfaca6e4c (diff)
downloadmc-063b2a4e134589a8a1d635708eb0eb39d5a76bfb.tar.gz
Clear structs.
When creating stack structs, clear them. TODO: only clear uninitialized values.
Diffstat (limited to 'parse/ops.def')
-rw-r--r--parse/ops.def29
1 files changed, 15 insertions, 14 deletions
diff --git a/parse/ops.def b/parse/ops.def
index fed7bd4..56b9bc5 100644
--- a/parse/ops.def
+++ b/parse/ops.def
@@ -56,24 +56,25 @@ O(Ostruct, 1, OTmisc, NULL)
O(Oarr, 1, OTmisc, NULL)
/* all below this point are backend-only */
-O(Ocjmp, 1, OTmisc, NULL) /* conditional jump */
-O(Ojtab, 1, OTmisc, NULL) /* jump table */
-O(Oset, 1, OTbin, "=") /* store to var */
-O(Osllen, 1, OTpre, "SLLEN") /* size of slice */
-O(Oslbase, 1, OTpre, "SLBASE") /* base of sice */
-O(Outag, 1, OTpre, "UTAG") /* tag of union */
-O(Oudata, 1, OTpre, "UDATA") /* pointer to contents of union */
-O(Oblit, 1, OTbin, "BLIT") /* blit memory */
+O(Ocjmp, 1, OTmisc, NULL) /* conditional jump */
+O(Ojtab, 1, OTmisc, NULL) /* jump table */
+O(Oset, 1, OTbin, "=") /* store to var */
+O(Osllen, 1, OTpre, "SLLEN") /* size of slice */
+O(Oslbase, 1, OTpre, "SLBASE") /* base of sice */
+O(Outag, 1, OTpre, "UTAG") /* tag of union */
+O(Oudata, 1, OTpre, "UDATA") /* pointer to contents of union */
+O(Oblit, 1, OTbin, "BLIT") /* blit memory */
+O(Oclear, 1, OTpre, "CLEAR") /* zero */
/* integer conversions */
-O(Otrunc, 1, OTmisc, NULL) /* truncating cast */
-O(Ozwiden, 1, OTmisc, NULL) /* zero-extending widening cast */
-O(Oswiden, 1, OTmisc, NULL) /* sign-extending widening cast */
+O(Otrunc, 1, OTmisc, NULL) /* truncating cast */
+O(Ozwiden, 1, OTmisc, NULL) /* zero-extending widening cast */
+O(Oswiden, 1, OTmisc, NULL) /* sign-extending widening cast */
/* float conversions */
-O(Oflt2int, 1, OTmisc, NULL) /* float to int conversion */
-O(Oint2flt, 1, OTmisc, NULL) /* int to float conversion */
-O(Oflt2flt, 1, OTmisc, NULL) /* flt32<->flt64 conversion */
+O(Oflt2int, 1, OTmisc, NULL) /* float to int conversion */
+O(Oint2flt, 1, OTmisc, NULL) /* int to float conversion */
+O(Oflt2flt, 1, OTmisc, NULL) /* flt32<->flt64 conversion */
/* floating arithmetic */
O(Ofadd, 1, OTmisc, NULL)