aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'backend/lib/CodeGen')
-rw-r--r--backend/lib/CodeGen/CMakeLists.txt1
-rw-r--r--backend/lib/CodeGen/GlobalISel/CMakeLists.txt15
-rw-r--r--backend/lib/CodeGen/MachineBlockPlacement.cpp7
-rw-r--r--backend/lib/CodeGen/MachineBranchRelaxation.cpp3
-rw-r--r--backend/lib/CodeGen/MachinePseudoExpansion.cpp7
-rw-r--r--backend/lib/CodeGen/MachineSchedulerInternal.h3
-rw-r--r--backend/lib/CodeGen/RegAllocBase.h3
-rw-r--r--backend/lib/CodeGen/RegAllocPBQP.cpp3
8 files changed, 11 insertions, 31 deletions
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<MachinePassResult> MachineBlockPlacementPass::runImplementation(
- MachineFunction &Function, const TargetDescription &Target,
- MachineFunctionAnalysisManager &Analyses) const {
+Expected<MachinePassResult>
+MachineBlockPlacementPass::runImplementation(MachineFunction &Function,
+ const TargetDescription &Target,
+ MachineFunctionAnalysisManager &Analyses) const {
auto Probabilities = Analyses.getResult<MachineBranchProbabilityAnalysis>(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<MachinePassResult>
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<BlockSizeSnapshot> SizesBefore;
if (Phase == MachinePseudoExpansionPhase::TargetLate) {
@@ -376,8 +375,8 @@ const MachinePassContract &ExpandPostRAPseudosPass::contract() const noexcept {
Expected<MachinePassResult> 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;