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,10 +1,4 @@
#include "ir/IR.h"
// IR Module
// - 保存全局变量与函数列表
// - 维护与目标相关的模块级信息(如需要)与符号表
namespace ir {
Function* Module::CreateFunction(const std::string& name) {
functions_.push_back(std::make_unique<Function>(name));
return functions_.back().get();
}
} // namespace ir