diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-12-05 02:09:48 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-12-12 22:16:57 -0500 |
commit | 12f9d16c7b000030ce332778fa4d51d455ae819f (patch) | |
tree | 6adbe9f3cc7e79e5d1616d9faf4650f5a2e3ba58 /all.h | |
parent | 2380b5786a515af7149f7648d9e9c22a663e3a9c (diff) | |
download | roux-12f9d16c7b000030ce332778fa4d51d455ae819f.tar.gz |
create cfg.c for cfg-related functions
Diffstat (limited to 'all.h')
-rw-r--r-- | all.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/all.h b/all.h index e303a87..6b1951d 100644 --- a/all.h +++ b/all.h @@ -481,8 +481,6 @@ void die_(char *, char *, ...) __attribute__((noreturn)); void *emalloc(size_t); void *alloc(size_t); void freeall(void); -Blk *blknew(void); -void blkdel(Blk *); void emit(int, int, Ref, Ref, Ref); void emiti(Ins); void idup(Ins **, Ins *, ulong); @@ -523,6 +521,16 @@ void printfn(Fn *, FILE *); void printref(Ref, Fn *, FILE *); void err(char *, ...) __attribute__((noreturn)); +/* cfg.c */ +Blk *blknew(void); +void blkdel(Blk *); +void fillpreds(Fn *); +void fillrpo(Fn *); +void filldom(Fn *); +int sdom(Blk *, Blk *); +int dom(Blk *, Blk *); +void fillfron(Fn *); + /* mem.c */ void memopt(Fn *); |