feat(cbuild): 更新项目配置以支持HIR中间表示

- 统一包名格式化,添加空格对齐
- 将依赖项从ir和lir重命名为hir,移除lir注释
- 为ast2ir模块添加正确的包名称"scc_ast2ir"
- 更新依赖引用路径指向新的HIR库结构
- 移除注释掉的ir2mcode和sccf2target依赖项

refactor(ast2ir): 迁移到HIR中间表示替换IR表示

- 更新头文件包含,使用hir_builder.h替代ir_builder.h
- 修改上下文结构体,将scc_ir_builder_t替换为scc_hir_builder_t
- 更新函数签名,将参数类型从scc_ir_*转换为scc_hir_*
- 调整返回值类型,将scc_ir_value_ref_t和scc_ir_type_ref_t
  分别替换为scc_hir_value_ref_t和scc_hir_type_ref_t
- 重新排列头文件包含顺序以满足依赖关系
This commit is contained in:
zzy
2026-04-21 14:05:21 +08:00
parent e5bbffe170
commit 0fbfb36262
49 changed files with 2555 additions and 3989 deletions

View File

@@ -0,0 +1,17 @@
#ifndef __SCC_HIR_PROG_H__
#define __SCC_HIR_PROG_H__
#include "hir_def.h"
#include "hir_module.h"
typedef struct scc_hir_cprog {
scc_hir_module_t module;
scc_hir_value_ref_vec_t global_vals; /* 全局变量 */
scc_hir_func_ref_vec_t func_defs; /* 所有函数定义 */
scc_hir_func_ref_vec_t func_decls; /* 所有函数包括定义的声明 */
} scc_hir_cprog_t;
void scc_hir_cprog_init(scc_hir_cprog_t *in);
void scc_hir_cprog_drop(scc_hir_cprog_t *in);
#endif /* __SCC_HIR_PROG_H__ */