aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/Target/Description/TargetDescriptionGenerator.h
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 13:10:47 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 13:10:47 +0800
commit444db30751380e8fe459bfeae4c5bb2a93c596eb (patch)
tree5c60a23678f836113e75fb2526d3ec7b28b42f55 /backend/lib/Target/Description/TargetDescriptionGenerator.h
parentfde3e045d4dcc5c404cb4216389e18b0e720b8e0 (diff)
downloadrcc-project-444db30751380e8fe459bfeae4c5bb2a93c596eb.tar.gz
rcc-project-444db30751380e8fe459bfeae4c5bb2a93c596eb.tar.xz
[TableGen] Split the target description generator
Diffstat (limited to 'backend/lib/Target/Description/TargetDescriptionGenerator.h')
-rw-r--r--backend/lib/Target/Description/TargetDescriptionGenerator.h37
1 files changed, 0 insertions, 37 deletions
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 <optional>
-#include <string>
-#include <string_view>
-#include <vector>
-
-namespace rcc::targetgen {
-
-struct GeneratedDescription final {
- std::string RegisterHeader;
- std::string InstructionHeader;
- std::string TargetTables;
-};
-
-struct DescriptionGenerationResult final {
- std::optional<GeneratedDescription> Output;
- std::vector<TextDiagnostic> 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