Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-s168 committed Nov 5, 2024
1 parent cc12971 commit a88e64c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions build.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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"),
};
Expand Down
2 changes: 1 addition & 1 deletion ir/ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
2 changes: 1 addition & 1 deletion ir/passes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ir/passes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand Down

0 comments on commit a88e64c

Please sign in to comment.