summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorWormHeamer2025-08-27 19:00:27 -0400
committerWormHeamer2025-08-27 19:00:27 -0400
commit5e38aebb97048d9c634e88f1be02f825a93720fe (patch)
tree5a02ecbf4bb49a0173f80a9d8bdea9b6fadc41d7 /ir.h
parent8c0a2fa3efdaf100b7119649863ecc173236153a (diff)
add scratch arena to Proc
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h18
1 files changed, 17 insertions, 1 deletions
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;