From 5e38aebb97048d9c634e88f1be02f825a93720fe Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Wed, 27 Aug 2025 19:00:27 -0400 Subject: add scratch arena to Proc --- ir.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'ir.h') diff --git a/ir.h b/ir.h index 8923607..0e30a06 100644 --- a/ir.h +++ b/ir.h @@ -169,8 +169,24 @@ typedef struct { typedef DYNARR(ScopeName) ScopeNameList; +/* + * TODO: move to having + typedef struct { + Arena *arena; + Node *start, *stop, *ctrl, *keepalive; + Node *free_list; + } Graph; + typedef struct { + Arena arena; + Str name; + Graph graph; + Scope scope; + } Proc; + * so that scope handling can be separated from the rest of IR + */ + typedef struct { - Arena arena; + Arena perm, scratch; Str name; Node *start, *stop, *ctrl, *keepalive; Node *free_list; -- cgit v1.2.3