Revert "可以处理生成加法的IR"

This commit is contained in:
jing
2025-12-29 15:49:30 +08:00
parent e941cced9b
commit 8903bf73f9
42 changed files with 158 additions and 919 deletions

View File

@@ -1,9 +1,4 @@
#include "ir/IR.h"
// SSA 值体系抽象:
// - 常量、参数、指令结果等统一为 Value
// - 提供类型信息与使用/被使用关系(按需要实现)
namespace ir {
ConstantInt::ConstantInt(int v) : Value(Type::Int32(), ""), value_(v) {
set_name(std::to_string(v));
}
} // namespace ir