- 添加 { name = "lir", path = "./libs/lir" } 依赖项
- 注释掉 ir2mcode 和 sccf2target 模块以暂时禁用
refactor(ast2ir): 修复类型转换问题并简化哈希表初始化
- 修复 compute_type_layout 函数中的类型转换警告
- 在表达式处理末尾添加 UNREACHABLE() 断言
- 移除 begin_func 中的 param_names 参数
- 使用 scc_hashtable_usize_init 替代自定义比较函数
refactor(ir): 简化函数构建器接口并修复返回值处理
- 移除 scc_ir_builder_begin_func 中的 param_names 参数
- 修改 scc_ir_builder_ret_void 以正确处理 void 返回值
- 初始化返回值节点而不是直接设置为 0
refactor(ir): 简化模块初始化中的哈希表配置
- 移除自定义 hash_key 和 cmp_key 函数
- 使用 scc_hashtable_usize_init 统一初始化哈希表
feat(lir): 添加低层中间表示库基础结构
- 创建 lir 库的包配置文件
- 定义 LIR 的基本数据结构、指令类型和操作枚举
- 实现 LIR 构建器和模块管理功能
- 添加 LIR 转换器头文件和转储功能
13 lines
297 B
C
13 lines
297 B
C
#ifndef __SCC_IR2LIR_H__
|
|
#define __SCC_IR2LIR_H__
|
|
|
|
#include "scc_lir.h"
|
|
#include "scc_lir_builder.h"
|
|
#include "scc_lir_module.h"
|
|
#include <scc_ir.h>
|
|
|
|
scc_lir_module_t *scc_ir2lir(scc_lir_builder_t *builder,
|
|
const scc_ir_cprog_t *cprog);
|
|
|
|
#endif /* __SCC_IR2LIR_H__ */
|