可以处理生成加法的IR
This commit is contained in:
14
src/irgen/IRGen.h
Normal file
14
src/irgen/IRGen.h
Normal 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);
|
||||
Reference in New Issue
Block a user