summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
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;