aboutsummaryrefslogtreecommitdiff
path: root/backend/utils/TableGen/TableGenBackends.h
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-22 18:49:08 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-22 18:49:08 +0800
commit8a4bb6e3b0bffa0ed79b51347b12ee4293b622a7 (patch)
tree51278f18d8954e7abb5820cb9d529e3d5e5f322b /backend/utils/TableGen/TableGenBackends.h
parent9ca9fb23124e8c5d714e9668210855a23dd2a72f (diff)
downloadrcc-project-8a4bb6e3b0bffa0ed79b51347b12ee4293b622a7.tar.gz
rcc-project-8a4bb6e3b0bffa0ed79b51347b12ee4293b622a7.tar.xz
[CodeGen] Generate RISC-V macro fusion rules
Diffstat (limited to 'backend/utils/TableGen/TableGenBackends.h')
-rw-r--r--backend/utils/TableGen/TableGenBackends.h3
1 files changed, 3 insertions, 0 deletions
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);