#include "irgen/IRGen.h" #include #include #include "SysYParser.h" #include "ir/IR.h" std::unique_ptr GenerateIR(SysYParser::CompUnitContext& tree, const SemanticContext& sema) { auto module = std::make_unique(); IRGenImpl gen(*module, sema); gen.Gen(tree); return module; }