diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/tilde/tb.h | 3 | ||||
| -rw-r--r-- | src/tilde/tb.lib | bin | 2991218 -> 2960798 bytes | |||
| -rw-r--r-- | src/tilde_proc.cpp | 4 |
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 Binary files differindex 479a40ead..c7f54e5c3 100644 --- a/src/tilde/tb.lib +++ b/src/tilde/tb.lib 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()); |