From 444db30751380e8fe459bfeae4c5bb2a93c596eb Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Thu, 13 Aug 2026 13:10:47 +0800 Subject: [TableGen] Split the target description generator --- .../Description/TargetDescriptionGenerator.h | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 backend/lib/Target/Description/TargetDescriptionGenerator.h (limited to 'backend/lib/Target/Description/TargetDescriptionGenerator.h') diff --git a/backend/lib/Target/Description/TargetDescriptionGenerator.h b/backend/lib/Target/Description/TargetDescriptionGenerator.h deleted file mode 100644 index 9a03aa0..0000000 --- a/backend/lib/Target/Description/TargetDescriptionGenerator.h +++ /dev/null @@ -1,37 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0-or-later - -// The private header has no stable include-root-relative guard name. -// NOLINTNEXTLINE(llvm-header-guard) -#ifndef RCC_TARGET_DESCRIPTION_TARGETDESCRIPTIONGENERATOR_H -#define RCC_TARGET_DESCRIPTION_TARGETDESCRIPTIONGENERATOR_H - -#include "rcc/Support/TextDiagnostic.h" - -#include -#include -#include -#include - -namespace rcc::targetgen { - -struct GeneratedDescription final { - std::string RegisterHeader; - std::string InstructionHeader; - std::string TargetTables; -}; - -struct DescriptionGenerationResult final { - std::optional Output; - std::vector Diagnostics; - - [[nodiscard]] bool succeeded() const noexcept { - return Output.has_value() && Diagnostics.empty(); - } -}; - -[[nodiscard]] DescriptionGenerationResult generateDescription(const std::string &SourceName, - std::string SourceText); - -} // namespace rcc::targetgen - -#endif // RCC_TARGET_DESCRIPTION_TARGETDESCRIPTIONGENERATOR_H -- cgit v1.2.3