From 46e1f128fd310bd29a2b4335b36c60d6cc0aa3a7 Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 20 Aug 2022 11:06:38 +0200 Subject: initial work on IR --- src/ir.cff | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/ir.cff (limited to 'src/ir.cff') 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 { +} -- cgit v1.2.3