From 175fdbf4b30eae5e5344cd7fca7e953ca0b2463e Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Thu, 13 Aug 2026 13:29:50 +0800 Subject: [Tooling] Remove the duplicate output kind --- backend/include/rcc/Tooling/BackendDriver.h | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'backend/include/rcc/Tooling/BackendDriver.h') diff --git a/backend/include/rcc/Tooling/BackendDriver.h b/backend/include/rcc/Tooling/BackendDriver.h index 6b04de9..8117a0c 100644 --- a/backend/include/rcc/Tooling/BackendDriver.h +++ b/backend/include/rcc/Tooling/BackendDriver.h @@ -19,20 +19,8 @@ class TargetDescription; namespace tooling { -enum class BackendOutputKind : std::uint8_t { - PreLegalizerMIR, - LegalizedMIR, - RegisterBankMIR, - SelectedMIR, - PostSSAMIR, - PostRegisterAllocationMIR, - FinalMIR, - Assembly, - RelocatableObject, -}; - struct BackendRunResult final { - BackendOutputKind Kind = BackendOutputKind::FinalMIR; + ArtifactKind Kind = ArtifactKind::FinalMIR; std::vector Output; PipelineRunResult Pipeline; std::vector Actions; @@ -42,13 +30,9 @@ struct BackendRunResult final { [[nodiscard]] Expected runBackend(CanonicalMIR Input, const TargetDescription &Target, const BackendInvocation &Invocation, - BackendOutputKind Output, PipelineControls Controls = {}, + ArtifactKind Output, PipelineControls Controls = {}, MachinePassInstrumentation *Instrumentation = nullptr); -[[nodiscard]] std::string_view spelling(BackendOutputKind Output) noexcept; -[[nodiscard]] ArtifactKind manifestArtifactKind(BackendOutputKind Output) noexcept; -[[nodiscard]] Expected cacheArtifactKind(BackendOutputKind Output); - } // namespace tooling } // namespace rcc -- cgit v1.2.3