From 68059b52c389143e766c5499c76c6c90c6b82846 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 3 Apr 2024 23:32:57 +0300 Subject: add callsite register saving --- src/nodes.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/nodes.c') diff --git a/src/nodes.c b/src/nodes.c index 05f96fe..d5a22da 100644 --- a/src/nodes.c +++ b/src/nodes.c @@ -144,6 +144,8 @@ void destroy_block(struct blk *b) { vec_destroy(&b->insns); vec_destroy(&b->params); + vec_destroy(&b->args1); + vec_destroy(&b->args2); free(b); } @@ -188,6 +190,9 @@ void dump_insn(struct insn i) dump_val(i.in[1]); } + if (i.flags) + printf("*"); + printf("\n"); } -- cgit v1.3