summary refs log tree commit diff
path: root/lisc/lisc.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-12-08 13:39:17 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-12-08 13:39:30 -0500
commit1dc00896840c9823c15089f379776f88a75e9663 (patch)
tree14ce7f106c517aa664471a3e9b4391e68413d901 /lisc/lisc.h
parent0791dd026e3c7e5c49282fe264a075dbcecb0607 (diff)
downloadroux-1dc00896840c9823c15089f379776f88a75e9663.tar.gz
wip on instruction selection
Diffstat (limited to 'lisc/lisc.h')
-rw-r--r--lisc/lisc.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h
index f03958d..ee8c889 100644
--- a/lisc/lisc.h
+++ b/lisc/lisc.h
@@ -181,18 +181,32 @@ enum Op {
 	OAnd,
 	OCmp,
 	OCmp1 = OCmp + NCmp-1,
+
 	OStored,
 	OStores,
 	OStorel,
 	OStorew,
 	OStoreh,
 	OStoreb,
-	OLoad,
-	OLoad1 = OLoad + NTy-1,
+
+	OLoadl,
+	OLoadsw,
+	OLoaduw,
+	OLoadsh,
+	OLoaduh,
+	OLoadsb,
+	OLoadub,
+	OLoadd,
+	OLoads,
+	OLoad = OLoadl,
+	OLoad1 = OLoads,
+
 	OExt,
 	OExt1 = OExt + NTy-1,
+
 	OAlloc,
 	OAlloc1 = OAlloc + NAlign-1,
+
 	OCopy,
 	NPubOp,
 
@@ -321,6 +335,7 @@ struct Con {
 		double f;
 	} bits;
 	char flt;
+	char emit;
 };
 
 typedef struct Addr Addr;