add rpo information to functions

This commit is contained in:
Quentin Carbonneaux 2015-07-10 13:55:47 -04:00
parent 11db0b61d9
commit 851e79f959
3 changed files with 53 additions and 0 deletions

View file

@ -89,6 +89,7 @@ struct Blk {
Blk *link;
char name[NString];
int rpo;
Blk **preds;
int npreds;
};
@ -108,6 +109,8 @@ struct Fn {
Blk *start;
Sym *sym;
int ntemp;
int nblk;
Blk **rpo;
};
@ -117,3 +120,4 @@ Fn *parsefn(FILE *);
/* ssa.c */
void fillpreds(Fn *);
void fillrpo(Fn *);