summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorWormHeamer2025-10-28 02:08:59 -0400
committerWormHeamer2025-10-28 02:08:59 -0400
commit89bc739611419ba52a6e6e692e9fd965ffa7d837 (patch)
tree394480b4d33d9ca5f67ecf6476d2cb6f985e32d4 /ir.h
parent2bbb581678fb4871a4211fc96d12fa69c110b693 (diff)
remove Node.refs
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ir.h b/ir.h
index d10005c..eb9b6b7 100644
--- a/ir.h
+++ b/ir.h
@@ -110,21 +110,21 @@ typedef struct {
} NodeList;
typedef struct Node {
- int id, refs;
union {
struct Node *prev_free;
struct {
- int walked;
- NodeType op;
- LexSpan src_pos;
NodeList in; /* note: index 0 used for control flow */
NodeList out;
+ int walked;
+ LexSpan src_pos;
union {
Type type;
Value val;
};
};
};
+ int id;
+ NodeType op;
} Node;
/* convenience macros (lisp-inspired lol) */