diff options
| -rw-r--r-- | dominate.c | 2 | ||||
| -rw-r--r-- | dominate.h | 4 | ||||
| -rw-r--r-- | ssa.c | 1 | ||||
| -rw-r--r-- | ssa.h | 2 |
4 files changed, 8 insertions, 1 deletions
@@ -23,7 +23,7 @@ struct piggy { struct basic_block_list *lists[0]; }; -struct piggy *bank_init(unsigned levels) +static struct piggy *bank_init(unsigned levels) { struct piggy *bank; bank = calloc(1, sizeof(*bank) + levels * sizeof(bank->lists[0])); @@ -6,4 +6,8 @@ struct basic_block_list; void idf_compute(struct entrypoint *ep, struct basic_block_list **idf, struct basic_block_list *alpha); + +// For debugging only +void idf_dump(struct entrypoint *ep); + #endif @@ -5,6 +5,7 @@ // #include <assert.h> +#include "ssa.h" #include "lib.h" #include "sset.h" #include "dominate.h" @@ -1,6 +1,8 @@ #ifndef SSA_H #define SSA_H +struct entrypoint; + void ssa_convert(struct entrypoint *ep); #endif |
