This commit is contained in:
jing
2025-12-29 20:11:51 +08:00
parent c153604c2e
commit e1c1f2a40d
14 changed files with 402 additions and 27 deletions

View File

@@ -1,4 +1,13 @@
// IR 类型系统:
// - i32/f32/void、指针、数组、函数类型等
// - 按 SysY 支持范围裁剪并逐步补齐
// 极简类型系统:仅支持 void 与 i32。
// 还应该包含 i32/f32/void、指针、数组、函数类型等
// - 按 SysY 支持范围裁剪并逐步补齐
#include "ir/IR.h"
namespace ir {
std::shared_ptr<Type> Type::Void() { return DefaultContext().Void(); }
std::shared_ptr<Type> Type::Int32() { return DefaultContext().Int32(); }
} // namespace ir