Revert "可以处理生成加法的IR"
This commit is contained in:
@@ -1,16 +1,4 @@
|
||||
// 极简类型系统:仅支持 void 与 i32。
|
||||
#include "ir/IR.h"
|
||||
// IR 类型系统:
|
||||
// - i32/f32/void、指针、数组、函数类型等
|
||||
// - 按 SysY 支持范围裁剪并逐步补齐
|
||||
|
||||
namespace ir {
|
||||
|
||||
std::shared_ptr<Type> Type::Void() {
|
||||
static auto ty = std::make_shared<Type>(Kind::Void);
|
||||
return ty;
|
||||
}
|
||||
|
||||
std::shared_ptr<Type> Type::Int32() {
|
||||
static auto ty = std::make_shared<Type>(Kind::Int32);
|
||||
return ty;
|
||||
}
|
||||
|
||||
} // namespace ir
|
||||
|
||||
Reference in New Issue
Block a user