From f0cfb240d80cb9f4444fb996350c1f88bc69a142 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Fri, 28 Aug 2026 23:53:31 +0800 Subject: [CMake] Remove unused clang-tidy file registration --- backend/lib/CodeGen/CMakeLists.txt | 1 - backend/lib/CodeGen/GlobalISel/CMakeLists.txt | 15 --------------- backend/lib/CodeGen/MachineBlockPlacement.cpp | 7 ++++--- backend/lib/CodeGen/MachineBranchRelaxation.cpp | 3 +-- backend/lib/CodeGen/MachinePseudoExpansion.cpp | 7 +++---- backend/lib/CodeGen/MachineSchedulerInternal.h | 3 +-- backend/lib/CodeGen/RegAllocBase.h | 3 +-- backend/lib/CodeGen/RegAllocPBQP.cpp | 3 +-- 8 files changed, 11 insertions(+), 31 deletions(-) (limited to 'backend/lib/CodeGen') diff --git a/backend/lib/CodeGen/CMakeLists.txt b/backend/lib/CodeGen/CMakeLists.txt index 8185d34..ccbf131 100644 --- a/backend/lib/CodeGen/CMakeLists.txt +++ b/backend/lib/CodeGen/CMakeLists.txt @@ -248,4 +248,3 @@ rcc_backend_register_format_files( ${RCCBackendCodeGenHeaders} ${RCCBackendCodeGenPrivateHeaders} ) -rcc_backend_register_tidy_files(${RCCBackendCodeGenSourcePaths}) diff --git a/backend/lib/CodeGen/GlobalISel/CMakeLists.txt b/backend/lib/CodeGen/GlobalISel/CMakeLists.txt index 4a96d3a..cd336cb 100644 --- a/backend/lib/CodeGen/GlobalISel/CMakeLists.txt +++ b/backend/lib/CodeGen/GlobalISel/CMakeLists.txt @@ -53,18 +53,3 @@ rcc_backend_register_format_files( "${CMAKE_CURRENT_SOURCE_DIR}/Utils.cpp" ${RCCBackendGlobalISelHeaders} ) - -rcc_backend_register_tidy_files( - "${CMAKE_CURRENT_SOURCE_DIR}/CSEInfo.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/CSEMIRBuilder.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/Combiner.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/GIMatchTableExecutor.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/GISelChangeObserver.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/GISelValueTracking.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/InstructionSelect.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/Legalizer.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/LegalizerHelper.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/LegalizerInfo.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/RegBankSelect.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/Utils.cpp" -) diff --git a/backend/lib/CodeGen/MachineBlockPlacement.cpp b/backend/lib/CodeGen/MachineBlockPlacement.cpp index 76e44d0..1b09f7d 100644 --- a/backend/lib/CodeGen/MachineBlockPlacement.cpp +++ b/backend/lib/CodeGen/MachineBlockPlacement.cpp @@ -101,9 +101,10 @@ MachineBlockPlacementPass::run(MachineFunction &Function, const TargetDescriptio return runImplementation(Function, Target, Analyses); } -Expected MachineBlockPlacementPass::runImplementation( - MachineFunction &Function, const TargetDescription &Target, - MachineFunctionAnalysisManager &Analyses) const { +Expected +MachineBlockPlacementPass::runImplementation(MachineFunction &Function, + const TargetDescription &Target, + MachineFunctionAnalysisManager &Analyses) const { auto Probabilities = Analyses.getResult(Function, Target); if (!Probabilities) return std::unexpected(Probabilities.error()); diff --git a/backend/lib/CodeGen/MachineBranchRelaxation.cpp b/backend/lib/CodeGen/MachineBranchRelaxation.cpp index 2abc1a1..f6c7df1 100644 --- a/backend/lib/CodeGen/MachineBranchRelaxation.cpp +++ b/backend/lib/CodeGen/MachineBranchRelaxation.cpp @@ -135,8 +135,7 @@ MachineBranchRelaxationPass::runImplementation(MachineFunction &Function, return std::unexpected(Offset.error()); if (Info->isBranchOffsetInRange(*Instruction, *Offset)) continue; - auto Accepted = - Analyses.requestAction("relax-branch", Function, Instruction->stableID()); + auto Accepted = Analyses.requestAction("relax-branch", Function, Instruction->stableID()); if (!Accepted) return std::unexpected(Accepted.error()); if (!*Accepted) { diff --git a/backend/lib/CodeGen/MachinePseudoExpansion.cpp b/backend/lib/CodeGen/MachinePseudoExpansion.cpp index 21bcf29..1115cd3 100644 --- a/backend/lib/CodeGen/MachinePseudoExpansion.cpp +++ b/backend/lib/CodeGen/MachinePseudoExpansion.cpp @@ -239,8 +239,7 @@ prepareImplementation(MachineFunction &Function, const TargetDescription &Target [[nodiscard]] Expected expandImplementation(MachineFunction &Function, const TargetDescription &Target, const TargetPseudoExpansionInfo &Info, MachinePseudoExpansionPhase Phase, - const TargetInstrInfo *BranchInfo, - MachineFunctionAnalysisManager &Analyses) { + const TargetInstrInfo *BranchInfo, MachineFunctionAnalysisManager &Analyses) { const ResourceSnapshot Before = snapshotResources(Function); std::optional SizesBefore; if (Phase == MachinePseudoExpansionPhase::TargetLate) { @@ -376,8 +375,8 @@ const MachinePassContract &ExpandPostRAPseudosPass::contract() const noexcept { Expected ExpandPostRAPseudosPass::run(MachineFunction &Function, const TargetDescription &Target, MachineFunctionAnalysisManager &Analyses) { - return expandImplementation(Function, Target, *Info, MachinePseudoExpansionPhase::PostRA, - nullptr, Analyses); + return expandImplementation(Function, Target, *Info, MachinePseudoExpansionPhase::PostRA, nullptr, + Analyses); } const MachinePassContract &TargetLatePseudoExpansionPass::contract() const noexcept { diff --git a/backend/lib/CodeGen/MachineSchedulerInternal.h b/backend/lib/CodeGen/MachineSchedulerInternal.h index 999937c..a2815ad 100644 --- a/backend/lib/CodeGen/MachineSchedulerInternal.h +++ b/backend/lib/CodeGen/MachineSchedulerInternal.h @@ -29,8 +29,7 @@ runMachineScheduler(MachineFunction &Function, const TargetDescription &Target, const TargetSchedulingModel &Model, ScheduleDAGMode Mode, const LiveVariablesAnalysis::Result &Liveness, const MachineBlockFrequencyAnalysis::Result &Frequencies, - MachineSchedulerOptions Options, - MachineFunctionAnalysisManager &Analyses); + MachineSchedulerOptions Options, MachineFunctionAnalysisManager &Analyses); } // namespace rcc diff --git a/backend/lib/CodeGen/RegAllocBase.h b/backend/lib/CodeGen/RegAllocBase.h index fd1c739..10759f1 100644 --- a/backend/lib/CodeGen/RegAllocBase.h +++ b/backend/lib/CodeGen/RegAllocBase.h @@ -28,8 +28,7 @@ public: protected: RegAllocBase(MachineFunction &Function, const TargetDescription &Target, const TargetRegisterAllocationInfo &TargetInfo, - MachineFunctionAnalysisManager &Analyses, - RegisterAllocationOptions Options) noexcept + MachineFunctionAnalysisManager &Analyses, RegisterAllocationOptions Options) noexcept : Function(Function), Target(Target), TargetInfo(TargetInfo), Analyses(Analyses), Options(Options) {} diff --git a/backend/lib/CodeGen/RegAllocPBQP.cpp b/backend/lib/CodeGen/RegAllocPBQP.cpp index 9081c37..59f07da 100644 --- a/backend/lib/CodeGen/RegAllocPBQP.cpp +++ b/backend/lib/CodeGen/RegAllocPBQP.cpp @@ -177,8 +177,7 @@ private: const auto CopyPosition = CopyPairs.find({LeftKey, RightKey}); bool CopyRelated = Options.EnableCopyCoalescing && CopyPosition != CopyPairs.end(); if (CopyRelated) { - auto Accepted = - Analyses.requestAction("coalesce-copy", Function, CopyPosition->second); + auto Accepted = Analyses.requestAction("coalesce-copy", Function, CopyPosition->second); if (!Accepted) return std::unexpected(Accepted.error()); CopyRelated = *Accepted; -- cgit v1.2.3