aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-20 11:06:38 +0200
committerlemon <lsof@mailbox.org>2022-08-20 11:06:38 +0200
commit46e1f128fd310bd29a2b4335b36c60d6cc0aa3a7 (patch)
treefeb93a69cf93773d0542435ae09c76de04e509c8 /src/ir.cff
parentdf41a4512932f1312e4725d0409757a683b091ed (diff)
initial work on IR
Diffstat (limited to 'src/ir.cff')
-rw-r--r--src/ir.cff10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ir.cff b/src/ir.cff
new file mode 100644
index 0000000..8b28746
--- /dev/null
+++ b/src/ir.cff
@@ -0,0 +1,10 @@
+import "ir.hff";
+
+extern fn mkirctx(alloc *Allocator) *IRCtx {
+ let ctx *IRCtx = anew(alloc, IRCtx);
+ ctx.alloc = alloc;
+ return ctx;
+}
+
+extern fn ir_free(IR *IRCtx) void {
+}