summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorWormHeamer2025-08-10 04:46:09 -0400
committerWormHeamer2025-08-10 04:46:09 -0400
commitc9980711ce42de9cf58db35f41ce1ac42bfea0c7 (patch)
treecaa99c741b012f5fc683f131c6c2281fec4e2f61 /ir.h
parentd4c768a481b923d407201c25d3d750040b6ccd44 (diff)
fix peephole bug (communative(phi(a,b), phi(a,b)) =/= communative(a,b))
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index 0ae71c8..8923607 100644
--- a/ir.h
+++ b/ir.h
@@ -203,6 +203,9 @@ Node *node_new_lit(Proc *p, Value v);
Node *node_new_lit_bool(Proc *p, int b);
Node *node_new_lit_i64(Proc *p, int64_t i);
+int node_uninit(Node *n);
+int node_maybe_uninit(Node *n);
+
#define node_new(...) node_newv(__VA_ARGS__, NULL)
void proc_init(Proc *proc, Str name);