aboutsummaryrefslogtreecommitdiff
path: root/ssa.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-05-03 02:26:26 +0800
committerTeddy <ted.sybil@gmail.com>2014-05-03 02:26:26 +0800
commit62d4b687702f62a4afad51437251583cc6ee544f (patch)
tree10662af0e0064898e74dd43edb47c5dc010bf58b /ssa.h
parent2978a60a24a8e307721b4ac44f2b78decc8d6b8f (diff)
long time no commit... major change
Diffstat (limited to 'ssa.h')
-rw-r--r--ssa.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ssa.h b/ssa.h
index a170c80..d596826 100644
--- a/ssa.h
+++ b/ssa.h
@@ -32,9 +32,11 @@ struct COpr {
int sub;
int dep;
+ int mod;
+ int reg; /* -1 for spilled */
+ CType_t type;
CInst_t def;
CRange_t range;
- int reg; /* -1 for spilled */
COpr_t par; /* union-find */
COpr_t cval;
};
@@ -134,8 +136,9 @@ typedef struct CInterv {
CRange_t range;
} CInterv;
-void ssa_generate();
+void ssa_generate(void);
COpr_t cinterv_repr(COpr_t opr);
+void cinst_print(FILE *stream, CInst_t inst);
extern int gbbase;
extern CBlock_t entry;
extern COList_t defs;