diff options
| author | WormHeamer | 2025-10-28 18:42:28 -0400 |
|---|---|---|
| committer | WormHeamer | 2025-10-28 18:42:28 -0400 |
| commit | 8b407058485dbad82d670c6cbcacbe1d993fb4aa (patch) | |
| tree | 7505a078a572ee8c96f0712a9aa3e1efd3494715 /ir.h | |
| parent | ae9a859b306e88e0324c30d3bc9f67aa6c24bd3f (diff) | |
Diffstat (limited to 'ir.h')
| -rw-r--r-- | ir.h | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -110,21 +110,20 @@ typedef struct { } NodeList; typedef struct Node { + u32 id; + NodeType op; union { struct Node *prev_free; struct { - NodeList in; /* note: index 0 used for control flow */ - NodeList out; - int walked; - LexSpan src_pos; - union { - Type type; - Value val; - }; + /* index 0 of in is control */ + NodeList in, out; }; }; - int id; - NodeType op; + LexSpan src_pos; + union { + Type type; + Value val; + }; } Node; /* convenience macros (lisp-inspired lol) */ |
