nooc

nooc programming language compiler
git clone git://git.nihaljere.xyz/nooc
Log | Files | Refs | LICENSE

commit cabd9d33fbe32641e970fbd913d489b6aa686f36
parent c4e93c7406d515fb247f142d69dcf0b308b8f040
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Thu, 27 Jan 2022 16:23:45 -0600

dumpir: print allocation range for a temporary

Diffstat:
Mutil.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/util.c b/util.c @@ -219,7 +219,12 @@ dumpir(struct iproc *instrs) putc('\n', stderr); for (size_t i = 0; i < instrs->temps.len; i++) { - fprintf(stderr, "%lu: %lu to %lu\n", i, instrs->temps.data[i].start, instrs->temps.data[i].end); + fprintf(stderr, "%lu: using %d from %lu to %lu\n", i, instrs->temps.data[i].reg, instrs->temps.data[i].start, instrs->temps.data[i].end); + } + + putc('\n', stderr); + for (size_t i = 0; i < instrs->labels.len; i++) { + fprintf(stderr, "%lu: %lu\n", i, instrs->labels.data[i]); } }