aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-06-13 23:05:35 +0100
committergingerBill <bill@gingerbill.org>2024-06-13 23:05:35 +0100
commit7bf12cae9525190d57cdcda2de0a9c4d2e0de0a7 (patch)
tree0a88bce985c92eacd38be4049a2f01f77114b5bb /src
parente66d71e9cf1389b0cb04d07452d99115357b350f (diff)
Update tildeupdate-tilde
Diffstat (limited to 'src')
-rw-r--r--src/tilde/tb.h3
-rw-r--r--src/tilde/tb.libbin2991218 -> 2960798 bytes
-rw-r--r--src/tilde_proc.cpp4
3 files changed, 6 insertions, 1 deletions
diff --git a/src/tilde/tb.h b/src/tilde/tb.h
index e637f7c75..86f2b145c 100644
--- a/src/tilde/tb.h
+++ b/src/tilde/tb.h
@@ -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
diff --git a/src/tilde/tb.lib b/src/tilde/tb.lib
index 479a40ead..c7f54e5c3 100644
--- a/src/tilde/tb.lib
+++ b/src/tilde/tb.lib
Binary files differ
diff --git a/src/tilde_proc.cpp b/src/tilde_proc.cpp
index 542ed794e..e0a2c5d71 100644
--- a/src/tilde_proc.cpp
+++ b/src/tilde_proc.cpp
@@ -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());