diff options
author | Teddy <ted.sybil@gmail.com> | 2014-05-06 19:51:28 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2014-05-06 19:51:28 +0800 |
commit | a366436782315f0bffb6b8642396d32a4bc90a2c (patch) | |
tree | 169b80539da5223bda27f63f785deb778e229911 /ssa.h | |
parent | 3888c5a2a7c1d026cd2698d64a5a07ce4797219c (diff) |
even more printf opt
Diffstat (limited to 'ssa.h')
-rw-r--r-- | ssa.h | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -158,15 +158,22 @@ CInst_t cexpmap_lookup(CExpMap_t cem, CInst_t exp); void cexpmap_clear(CExpMap_t cem); void cexpmap_destroy(CExpMap_t cem); +typedef struct CFuncIR CFuncIR; +typedef CFuncIR *CFuncIR_t; +struct CFuncIR { + int gbbase; + CBlock_t entry; + COList_t defs; + CType_t func; + CFuncIR_t next; +}; + void ssa_generate(void); COpr_t cinterv_repr(COpr_t opr); void cinst_print(FILE *stream, CInst_t inst); int overlap_with_beg(COpr_t i, int beg); -extern int gbbase; -extern CBlock_t entry; -extern COList_t defs; -extern CType_t func; +extern CFuncIR_t func_ir; extern const int avail_regs[]; extern const int MAX_AVAIL_REGS; |