summary refs log tree commit diff
path: root/spill.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-20 09:47:38 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-20 09:56:29 -0400
commit657c3fa66b5700a1fde89fbd8c92cd9dc56eea3b (patch)
tree3a26376d76d86df68f31abeadcc91b040a9bd921 /spill.c
parentb7debc4e7f5d50a89214421a704864a30a291cdc (diff)
downloadroux-657c3fa66b5700a1fde89fbd8c92cd9dc56eea3b.tar.gz
match jumps/ops with il text
Diffstat (limited to 'spill.c')
-rw-r--r--spill.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/spill.c b/spill.c
index 77c4fbe..e4dae28 100644
--- a/spill.c
+++ b/spill.c
@@ -234,20 +234,20 @@ reloads(BSet *u, BSet *v)
 
 	for (t=Tmp0; bsiter(u, &t); t++)
 		if (!bshas(v, t))
-			emit(OLoad, tmp[t].cls, TMP(t), slot(t), R);
+			emit(Oload, tmp[t].cls, TMP(t), slot(t), R);
 }
 
 static void
 store(Ref r, int s)
 {
 	if (s != -1)
-		emit(OStorew + tmp[r.val].cls, 0, R, r, SLOT(s));
+		emit(Ostorew + tmp[r.val].cls, 0, R, r, SLOT(s));
 }
 
 static int
 regcpy(Ins *i)
 {
-	return i->op == OCopy && isreg(i->arg[0]);
+	return i->op == Ocopy && isreg(i->arg[0]);
 }
 
 static Ins *
@@ -281,7 +281,7 @@ dopm(Blk *b, Ins *i, BSet *v)
 		bsset(v, i->arg[0].val);
 	} while (i != b->ins && regcpy(i-1));
 	bscopy(u, v);
-	if (i != b->ins && (i-1)->op == OCall) {
+	if (i != b->ins && (i-1)->op == Ocall) {
 		v->t[0] &= ~retregs((i-1)->arg[1], 0);
 		limit2(v, NISave, NFSave, 0);
 		for (r=0, n=0; n<NRSave; n++)
@@ -308,7 +308,7 @@ dopm(Blk *b, Ins *i, BSet *v)
  * borders
  *
  * Be careful with:
- * - OCopy instructions to ensure register
+ * - Ocopy instructions to ensure register
  *   constraints
  */
 void