diff options
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; |
