summaryrefslogtreecommitdiff
path: root/mi/mi.h
diff options
context:
space:
mode:
Diffstat (limited to 'mi/mi.h')
-rw-r--r--mi/mi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mi/mi.h b/mi/mi.h
index d1910f6..1a0ab06 100644
--- a/mi/mi.h
+++ b/mi/mi.h
@@ -47,3 +47,7 @@ void check(Cfg *cfg);
/* pattern matching */
void genmatch(Node *m, Node *val, Node ***out, size_t *nout);
void genonematch(Node *pat, Node *val, Node *iftrue, Node *iffalse, Node ***out, size_t *nout, Node ***cap, size_t *ncap);
+
+/* tree flattening */
+Node *flattenfn(Node *dcl);
+int isconstfn(Node *n);