diff options
| author | WormHeamer | 2025-08-27 19:00:27 -0400 |
|---|---|---|
| committer | WormHeamer | 2025-08-27 19:00:27 -0400 |
| commit | 5e38aebb97048d9c634e88f1be02f825a93720fe (patch) | |
| tree | 5a02ecbf4bb49a0173f80a9d8bdea9b6fadc41d7 /ir.h | |
| parent | 8c0a2fa3efdaf100b7119649863ecc173236153a (diff) | |
add scratch arena to Proc
Diffstat (limited to 'ir.h')
| -rw-r--r-- | ir.h | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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; |
