summaryrefslogtreecommitdiff
path: root/mi/mi.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-02-13 14:44:00 -0800
committerOri Bernstein <ori@eigenstate.org>2016-02-20 21:54:11 -0800
commit7096d0e99d9deb053a7763f49b2b1b7b1df20a6a (patch)
tree049ac0cb30b67389d8a1c9f7e123d5c8bdbd6dc0 /mi/mi.h
parenteba5edcf79813be921d8116ece30c10ca65c9fb3 (diff)
downloadmc-7096d0e99d9deb053a7763f49b2b1b7b1df20a6a.tar.gz
Start refactoring
Split flattening and lowering.
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);