From 0f8532d4e7315b86e160abf4ced461e7678b5587 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 7 Apr 2024 01:29:12 +0300 Subject: add features that make machine generation easier --- src/abi.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/abi.c') diff --git a/src/abi.c b/src/abi.c index fede365..a16ef2d 100644 --- a/src/abi.c +++ b/src/abi.c @@ -102,6 +102,10 @@ void abi0(struct fn *f) struct insn a = rewrite_retarg(n); insn_at(b->insns, i) = a; } + else if (n.type == CALL) { + set_insn_flags(&n, CALL_SETUP | CALL_TEARDOWN); + insn_at(b->insns, i) = n; + } } } } -- cgit v1.3