summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-12-27 14:13:00 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-12-27 14:13:00 -0500
commit417255cff105a2f4f86424690acd3b10aa3d38e8 (patch)
treeaf5b4111ad4056b2d901a89185c77e6170fb6dc8 /lisc
parentd0ccaeb8318d675d438e7e3d3d6d4a9a63cd13dc (diff)
downloadroux-417255cff105a2f4f86424690acd3b10aa3d38e8.tar.gz
get rid of the Ty enum
Diffstat (limited to 'lisc')
-rw-r--r--lisc/lisc.h26
1 files changed, 11 insertions, 15 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h
index d8e1bf4..9de6c3c 100644
--- a/lisc/lisc.h
+++ b/lisc/lisc.h
@@ -154,17 +154,6 @@ static inline int isreg(Ref r)
 enum Cmp { CMPS(X) NCmp };
 #undef X
 
-enum Ty {
-	Tl,
-	Tsw,
-	Tuw,
-	Tsh,
-	Tuh,
-	Tsb
-	Tub,
-	NTy
-};
-
 enum Class {
 	Kw,
 	Kl,
@@ -194,7 +183,8 @@ enum Op {
 	OStorew,
 	OStoreh,
 	OStoreb,
-
+	OStore = OStored,
+	OStore1 = OStoreb,
 	OLoadl,
 	OLoadsw,
 	OLoaduw,
@@ -206,9 +196,15 @@ enum Op {
 	OLoads,
 	OLoad = OLoadl,
 	OLoad1 = OLoads,
-
-	OExt,
-	OExt1 = OExt + NTy-1,
+	OExtl,
+	OExtsw,
+	OExtuw,
+	OExtsh,
+	OExtuh,
+	OExtsb,
+	OExtub,
+	OExt = OExtl,
+	OExt1 = OExtub,
 
 	OAlloc,
 	OAlloc1 = OAlloc + NAlign-1,