可以处理生成加法的IR

This commit is contained in:
jing
2025-12-28 18:44:48 +08:00
parent 77bee889d7
commit e941cced9b
42 changed files with 919 additions and 158 deletions

14
src/irgen/IRGen.h Normal file
View File

@@ -0,0 +1,14 @@
// 将 AST 翻译为极简 IR。
#pragma once
#include <memory>
namespace ast {
struct CompUnit;
}
namespace ir {
class Module;
}
std::unique_ptr<ir::Module> GenerateIR(const ast::CompUnit& ast);