diff options
author | Ori Bernstein <ori@eigenstate.org> | 2016-08-20 23:52:38 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2016-08-20 23:52:38 -0700 |
commit | bcaade73359400424fb9ff18697e81444b365245 (patch) | |
tree | 7319cbade65e30cee4ad051962b878e6e32fd235 /6 | |
parent | 983f8702b46c7791c488ed8d635b0ce595ef0e5e (diff) | |
download | mc-bcaade73359400424fb9ff18697e81444b365245.tar.gz |
Print the function name when debug dumping RA
Diffstat (limited to '6')
-rw-r--r-- | 6/asm.h | 2 | ||||
-rw-r--r-- | 6/gengas.c | 1 | ||||
-rw-r--r-- | 6/genp9.c | 1 | ||||
-rw-r--r-- | 6/ra.c | 1 |
4 files changed, 5 insertions, 0 deletions
@@ -163,6 +163,8 @@ struct Asmbb { /* instruction selection state */ struct Isel { + char *name; + Cfg *cfg; /* cfg built with nodes */ Asmbb **bb; /* 1:1 mappings with the Node bbs in the CFG */ @@ -349,6 +349,7 @@ static void genfunc(FILE *fd, Func *fn, Htab *globls, Htab *strtab) Isel is = {0,}; is.reglocs = mkht(varhash, vareq); + is.name = fn->name; is.stkoff = fn->stkoff; is.envoff = fn->envoff; is.globls = globls; @@ -368,6 +368,7 @@ static void genfunc(FILE *fd, Func *fn, Htab *globls, Htab *strtab) Isel is = {0,}; is.reglocs = mkht(varhash, vareq); + is.name = fn->name; is.stkoff = fn->stkoff; is.envoff = fn->envoff; is.globls = globls; @@ -1431,6 +1431,7 @@ void dumpasm(Isel *s, FILE *fd) char *sep; Asmbb *bb; + fprintf(fd, "function %s\n", s->name); fprintf(fd, "WORKLISTS -- \n"); wlprint(stdout, "spill", s->wlspill, s->nwlspill); wlprint(stdout, "simp", s->wlsimp, s->nwlsimp); |