summary refs log tree commit diff
path: root/lisc/lisc.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-13 15:22:58 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-13 15:22:58 -0500
commit0aa9e83211e8568bc7d6e996da93184e9aff025d (patch)
tree63fcda789d7b077e5c052d2f9f97305bb750c194 /lisc/lisc.h
parent8dcf6dceab9c85e751d737a8a39356fcff16b18f (diff)
downloadroux-0aa9e83211e8568bc7d6e996da93184e9aff025d.tar.gz
add initial version of copy elimination
Diffstat (limited to 'lisc/lisc.h')
-rw-r--r--lisc/lisc.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h
index 3643e48..fcce670 100644
--- a/lisc/lisc.h
+++ b/lisc/lisc.h
@@ -257,8 +257,8 @@ struct Use {
 	} type;
 	int bid;
 	union {
-		int ins;
-		Ref phi;
+		Ins *ins;
+		Phi *phi;
 	} u;
 };
 
@@ -371,6 +371,7 @@ void addcon(Con *, Con *);
 extern OpDesc opdesc[NOp];
 void parse(FILE *, void (Dat *), void (Fn *));
 void printfn(Fn *, FILE *);
+void printref(Ref, Fn *, FILE *);
 
 /* ssa.c */
 void filluse(Fn *);
@@ -378,10 +379,14 @@ void fillpreds(Fn *);
 void fillrpo(Fn *);
 void ssa(Fn *);
 
+/* copy.c */
+void copy(Fn *);
+
 /* live.c */
 Bits liveon(Blk *, Blk *);
 void filllive(Fn *);
 
+
 /* isel.c */
 extern int rsave[NRSave];
 extern int rclob[NRClob];