From 8a4bb6e3b0bffa0ed79b51347b12ee4293b622a7 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sat, 22 Aug 2026 18:49:08 +0800 Subject: [CodeGen] Generate RISC-V macro fusion rules --- backend/utils/TableGen/TableGenBackends.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backend/utils/TableGen/TableGenBackends.h') diff --git a/backend/utils/TableGen/TableGenBackends.h b/backend/utils/TableGen/TableGenBackends.h index 5ac280e..6315a6c 100644 --- a/backend/utils/TableGen/TableGenBackends.h +++ b/backend/utils/TableGen/TableGenBackends.h @@ -19,6 +19,7 @@ struct GeneratedDescription final { std::string TargetTables; std::string GlobalISel; std::string GlobalISelCombiner; + std::string MacroFusion; }; struct DescriptionGenerationResult final { @@ -47,6 +48,8 @@ struct DescriptionGenerationResult final { std::string_view SourceName); [[nodiscard]] std::string emitGlobalISelCombiner(const NormalizedTargetModel &Model, std::string_view SourceName); +[[nodiscard]] std::string emitMacroFusion(const NormalizedTargetModel &Model, + std::string_view SourceName); [[nodiscard]] DescriptionGenerationResult generateDescription(const std::string &SourceName, std::string SourceText); -- cgit v1.2.3