aboutsummaryrefslogtreecommitdiff
path: root/backend/unittests/CodeGen/RegisterAllocationTest.cpp
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 05:45:37 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 05:45:37 +0800
commit236082a0fe4dcd0362c5c74923a93e3db6a01291 (patch)
tree5d8a329ca526b087b6ce51895b5135997e8e03bd /backend/unittests/CodeGen/RegisterAllocationTest.cpp
parenta2f8d7c5e22b510965327383410bd576f7cf28e7 (diff)
downloadrcc-project-236082a0fe4dcd0362c5c74923a93e3db6a01291.tar.gz
rcc-project-236082a0fe4dcd0362c5c74923a93e3db6a01291.tar.xz
[CodeGen] Align pass manager ownership
Diffstat (limited to 'backend/unittests/CodeGen/RegisterAllocationTest.cpp')
-rw-r--r--backend/unittests/CodeGen/RegisterAllocationTest.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/backend/unittests/CodeGen/RegisterAllocationTest.cpp b/backend/unittests/CodeGen/RegisterAllocationTest.cpp
index 1a7c5c7..7dd0dd0 100644
--- a/backend/unittests/CodeGen/RegisterAllocationTest.cpp
+++ b/backend/unittests/CodeGen/RegisterAllocationTest.cpp
@@ -14,7 +14,7 @@
#include "rcc/CodeGen/MachineInstr.h"
#include "rcc/CodeGen/MachineMemOperand.h"
#include "rcc/CodeGen/MachineOperand.h"
-#include "rcc/CodeGen/MachinePass.h"
+#include "rcc/CodeGen/MachinePassManager.h"
#include "rcc/CodeGen/MachineRegisterInfo.h"
#include "rcc/CodeGen/RegAllocCommon.h"
#include "rcc/CodeGen/RegAllocFast.h"
@@ -496,7 +496,7 @@ enum class AllocatorKind : std::uint8_t {
const rcc::TargetRegisterAllocationInfo &Info,
AllocatorKind Kind,
rcc::RegisterAllocationOptions Options = {}) {
- rcc::MachineAnalysisManager Analyses;
+ rcc::MachineFunctionAnalysisManager Analyses;
auto Registered = rcc::registerStage11MachineAnalyses(Analyses);
if (!Registered)
return std::unexpected(Registered.error());
@@ -512,7 +512,7 @@ enum class AllocatorKind : std::uint8_t {
Pass = std::make_unique<rcc::PBQPAllocatorPass>(Info, Options);
break;
}
- rcc::MachinePassManager Pipeline;
+ rcc::MachineFunctionPassManager Pipeline;
auto Added = Pipeline.addPass(std::move(Pass));
if (!Added)
return std::unexpected(Added.error());
@@ -603,7 +603,7 @@ void testLiveRegMatrix(TestContext &Context, const rcc::TargetDescription &Targe
}
if (!rcc::rebuildMachineLiveness(*LaneFixture->Function, Target))
return;
- rcc::MachineAnalysisManager LaneAnalyses;
+ rcc::MachineFunctionAnalysisManager LaneAnalyses;
if (!rcc::registerStage11MachineAnalyses(LaneAnalyses))
return;
auto LaneIntervals =
@@ -632,7 +632,7 @@ void testLiveRegMatrix(TestContext &Context, const rcc::TargetDescription &Targe
}
if (!rcc::rebuildMachineLiveness(*FixedFixture->Function, Target))
return;
- rcc::MachineAnalysisManager FixedAnalyses;
+ rcc::MachineFunctionAnalysisManager FixedAnalyses;
if (!rcc::registerStage11MachineAnalyses(FixedAnalyses))
return;
auto FixedIntervals =
@@ -664,7 +664,7 @@ void testLiveRegMatrix(TestContext &Context, const rcc::TargetDescription &Targe
!rcc::rebuildMachineLiveness(*FixedLaneFixture->Function, Target)) {
return;
}
- rcc::MachineAnalysisManager FixedLaneAnalyses;
+ rcc::MachineFunctionAnalysisManager FixedLaneAnalyses;
if (!rcc::registerStage11MachineAnalyses(FixedLaneAnalyses))
return;
auto FixedLaneIntervals =
@@ -694,7 +694,7 @@ void testSharedUnitLaneMatrix(TestContext &Context, const rcc::TargetDescription
!rcc::rebuildMachineLiveness(*Fixture->Function, Target)) {
return;
}
- rcc::MachineAnalysisManager Analyses;
+ rcc::MachineFunctionAnalysisManager Analyses;
if (!rcc::registerStage11MachineAnalyses(Analyses))
return;
auto Intervals = Analyses.getResult<rcc::LiveIntervalsAnalysis>(*Fixture->Function, Target);