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,15 +1,4 @@
#include "ir/IR.h"
// IR Function
// - 保存参数列表、基本块列表
// - 记录函数属性/元信息(按需要扩展)
namespace ir {
Function::Function(std::string name)
: Value(Type::Int32(), std::move(name)),
entry_(std::make_unique<BasicBlock>("entry")) {}
void Function::EnsureEntry() {
if (!entry_) {
entry_ = std::make_unique<BasicBlock>("entry");
}
}
} // namespace ir