diff options
| author | 2022-08-22 17:47:02 +0200 | |
|---|---|---|
| committer | 2022-08-22 17:47:02 +0200 | |
| commit | d74ed7fb65bf7ac245d2548ac13f3f3fdabadd16 (patch) | |
| tree | 7d98ba2472073d5414d51651742911993b5fbf81 /src/cffc.hff | |
| parent | e0686f7953bbc74ff03a7a6b22c0b82995ab494e (diff) | |
llvm hello worlding
Diffstat (limited to 'src/cffc.hff')
| -rw-r--r-- | src/cffc.hff | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cffc.hff b/src/cffc.hff index 2504fba..f78c61c 100644 --- a/src/cffc.hff +++ b/src/cffc.hff @@ -286,6 +286,7 @@ struct Decl { name *const u8, loc Loc, externp bool, + toplevel bool, u enum union { Let Var, Static Var, @@ -436,6 +437,7 @@ fn isnumtype(ty *const Type) bool { return ty->is(:Int) or ty->is(:Flo) or (ty->is(:Enum) and ty.u.Enum.lax); } extern fn typeof2(a *const Type, b *const Type) *const Type; +extern fn types_to_llvm() void; // env.cff extern fn mkenv(parent *Env, alloc *Allocator) *Env; @@ -459,4 +461,7 @@ extern static g_asmbackend Backend; // llvm.cff extern fn llvm_genfn(externp bool, name *const u8, f *Fn) void; -extern fn llvm_init() void; +extern fn llvm_addfn(*Decl) void; +extern fn llvm_addtype(*const Type) void; +extern fn llvm_init(*FILE) void; +extern fn llvm_fini() void; |