From 4f7b41c3c711d6c6fa4e422f3eec8961c91eea7a Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sun, 16 Aug 2026 15:39:45 +0800 Subject: tablegen: Generate GlobalISel match tables --- 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 7835efb..a5f283e 100644 --- a/backend/utils/TableGen/TableGenBackends.h +++ b/backend/utils/TableGen/TableGenBackends.h @@ -17,6 +17,7 @@ struct GeneratedDescription final { std::string RegisterHeader; std::string InstructionHeader; std::string TargetTables; + std::string GlobalISel; }; struct DescriptionGenerationResult final { @@ -41,6 +42,8 @@ struct DescriptionGenerationResult final { [[nodiscard]] std::string emitAssemblyWriter(const NormalizedTargetModel &Model); [[nodiscard]] std::string emitSubtarget(const NormalizedTargetModel &Model); [[nodiscard]] std::string emitSearchableTables(const NormalizedTargetModel &Model); +[[nodiscard]] std::string emitGlobalISel(const NormalizedTargetModel &Model, + std::string_view SourceName); [[nodiscard]] DescriptionGenerationResult generateDescription(const std::string &SourceName, std::string SourceText); -- cgit v1.2.3