summaryrefslogtreecommitdiff
path: root/peephole.h
diff options
context:
space:
mode:
authorWormHeamer2025-08-10 01:27:32 -0400
committerWormHeamer2025-08-10 01:27:32 -0400
commit85e28cfad0260ebf206a1249f153942ccea9673d (patch)
treefa14d5572e48652b4e1c7cc6231cd83f48ac08fe /peephole.h
parentdeab9a5e7917f9fecbf36cf97ca9cac7910df990 (diff)
separate peephole optimization out
Diffstat (limited to 'peephole.h')
-rw-r--r--peephole.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/peephole.h b/peephole.h
new file mode 100644
index 0000000..e9a2cab
--- /dev/null
+++ b/peephole.h
@@ -0,0 +1,9 @@
+#ifndef PEEPHOLE_H
+#define PEEPHOLE_H
+
+#include "ir.h"
+
+Value node_compute(Node *n, Lexer *l);
+Node *node_peephole(Node *n, Proc *p, Lexer *l);
+
+#endif