Update tilde

This commit is contained in:
gingerBill
2024-06-13 23:05:35 +01:00
parent e66d71e9cf
commit 7bf12cae95
3 changed files with 6 additions and 1 deletions

View File

@@ -1511,12 +1511,15 @@ TB_API int tb_builder_split_mem(TB_GraphBuilder* g, int in_mem, int split_count,
// this will merge the memory effects back into out_mem, split_vars being the result of a tb_builder_split_mem(...)
TB_API void tb_builder_merge_mem(TB_GraphBuilder* g, int out_mem, int split_count, int split_vars, TB_Node* split);
TB_API void tb_builder_loc(TB_GraphBuilder* g, int mem_var, TB_SourceFile* file, int line, int column);
// function call
TB_API TB_Node** tb_builder_call(TB_GraphBuilder* g, TB_FunctionPrototype* proto, int mem_var, TB_Node* target, int arg_count, TB_Node** args);
TB_API TB_Node* tb_builder_syscall(TB_GraphBuilder* g, TB_DataType dt, int mem_var, TB_Node* target, int arg_count, TB_Node** args);
// locals (variables but as stack vars)
TB_API TB_Node* tb_builder_local(TB_GraphBuilder* g, TB_CharUnits size, TB_CharUnits align);
TB_API void tb_builder_local_dbg(TB_GraphBuilder* g, TB_Node* n, ptrdiff_t len, const char* name, TB_DebugType* type);
// variables:
// just gives you the ability to construct mutable names, from

Binary file not shown.

View File

@@ -1,5 +1,5 @@
#ifndef TILDE_DO_CODEGEN
#define TILDE_DO_CODEGEN 0
#define TILDE_DO_CODEGEN 1
#endif
gb_internal TB_FunctionPrototype *cg_procedure_type_as_prototype(cgModule *m, Type *type) {
@@ -388,9 +388,11 @@ gb_internal WORKER_TASK_PROC(cg_procedure_compile_worker_proc) {
}
#if TILDE_DO_CODEGEN
// gb_printf_err("[START] %.*s\n", LIT(p->name));
bool emit_asm = false;
TB_FunctionOutput *output = tb_codegen(p->func, cg_worklist(), cg_arena(), &feature_set, emit_asm);
gb_unused(output);
// gb_printf_err("[END] %.*s\n", LIT(p->name));
#endif
// tb_print(p->func, cg_arena());