From a88e64c9dcb60c6a5a2fcb7d598cce3aa4816b52 Mon Sep 17 00:00:00 2001 From: alex-s168 Date: Tue, 5 Nov 2024 22:26:55 +0100 Subject: [PATCH] oops --- build.c | 7 +++++++ ir/ir.c | 2 +- ir/passes.c | 2 +- ir/passes.h | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/build.c b/build.c index cc1780c..ff6266e 100644 --- a/build.c +++ b/build.c @@ -45,6 +45,10 @@ enum CompileResult target_gen() { struct CompileData ir_files[] = { DIR("build"), + + DIR("build/common"), + SP(CT_C, "common/common.c"), + DIR("build/ir"), SP(CT_C, "ir/fastalloc.c"), SP(CT_C, "ir/dump.c"), @@ -123,6 +127,9 @@ struct CompileData parser_files[] = { struct CompileData always_files[] = { DEP("build/common/target_etca.cdef.o"), DEP("build/common/target_x86.cdef.o"), + DEP("build/common/targets.cdef.o"), + // add target (cdef file) + DEP("build/ir/ops.cdef.o"), NOLD_DEP("ir/ir.h"), }; diff --git a/ir/ir.c b/ir/ir.c index 665251f..7790331 100644 --- a/ir/ir.c +++ b/ir/ir.c @@ -334,7 +334,7 @@ int vx_CU_compile(vx_CU * cu, if (optionalOptimizedLlIr != NULL) vx_IrBlock_dump(block, optionalOptimizedLlIr, 0); - llir_prep_lower(cu, block); + vx_llir_prep_lower(cu, block); vx_IrBlock_dump(block, stdout, 0); }); diff --git a/ir/passes.c b/ir/passes.c index fcbf1c6..0f94e32 100644 --- a/ir/passes.c +++ b/ir/passes.c @@ -55,7 +55,7 @@ void vx_opt(vx_CU* cu, vx_IrBlock *block) { opt_pre(cu, block); } -static void opt_preLower(vx_CU* cu, vx_IrBlock *block) +void vx_opt_preLower(vx_CU* cu, vx_IrBlock *block) { RecCallInOut(opt_pre, cu, block); RecCallInOut(vx_opt_join_compute, cu, block); diff --git a/ir/passes.h b/ir/passes.h index 900febc..91a2a02 100644 --- a/ir/passes.h +++ b/ir/passes.h @@ -40,7 +40,7 @@ void vx_IrBlock_ll_share_slots(vx_CU* cu,vx_IrBlock *block); void vx_IrBlock_ll_cmov_expand(vx_CU* cu,vx_IrBlock *block); // called by the codegen after it knows if it needs epilog void vx_IrBlock_ll_finalize(vx_CU* cu, vx_IrBlock *block, bool needEpilog); -void llir_prep_lower(vx_CU* cu, vx_IrBlock *block); +void vx_llir_prep_lower(vx_CU* cu, vx_IrBlock *block); void vx_CIrBlock_normalize(vx_CU*, vx_IrBlock *); vx_OptIrVar vx_CIrBlock_mksa_states(vx_CU*, vx_IrBlock *);