summary refs log tree commit diff
path: root/lisc/parse.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-23 11:28:45 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-30 13:20:42 -0400
commitb33febc25cce5c836bad952da472f6a54e777ed8 (patch)
tree342f67f6109a6513991297ab61fdaa4b26b12d1b /lisc/parse.c
parent82d79017ffff082f2237453ebf8d9f640fa10710 (diff)
downloadroux-b33febc25cce5c836bad952da472f6a54e777ed8.tar.gz
prepare for using memory refs
Diffstat (limited to 'lisc/parse.c')
-rw-r--r--lisc/parse.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lisc/parse.c b/lisc/parse.c
index c09f6e3..d0ac325 100644
--- a/lisc/parse.c
+++ b/lisc/parse.c
@@ -32,11 +32,6 @@ OpDesc opdesc[NOp] = {
 	[OAlloc+1] = { "alloc8",  1 },
 	[OAlloc+2] = { "alloc16", 1 },
 
-#define X(n) [OXScale##n] = { "ofid" #n, 0 }
-	X(01), X(02), X(04), X(08),
-	X(11), X(12), X(14), X(18),
-#undef X
-
 #define X(t) \
 	[OLoad+T##t] = { "load" #t, 0 }, \
 	[OExt+T##t]  = { "ext"  #t, 1 },
@@ -624,8 +619,10 @@ parsefn()
 		err("last block misses jump");
 	fn->tmp = tmp;
 	fn->con = con;
+	fn->mem = vnew(0, sizeof fn->mem[0]);
 	fn->ntmp = ntmp;
 	fn->ncon = ncon;
+	fn->nmem = 0;
 	fn->nblk = nblk;
 	fn->rpo = 0;
 	return fn;