aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen/RegAllocBase.h
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-10 20:36:50 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-10 20:36:50 +0800
commitadcf8c9b1bd1b47e00bf859693112cea1f7e8c9f (patch)
tree59067aa71befab31678946dbf5e19f57131dd6f2 /backend/lib/CodeGen/RegAllocBase.h
parent3a57627e59ba18b6f9f9aae7bb60c390c0d3575a (diff)
downloadrcc-project-adcf8c9b1bd1b47e00bf859693112cea1f7e8c9f.tar.gz
rcc-project-adcf8c9b1bd1b47e00bf859693112cea1f7e8c9f.tar.xz
[Tooling] Complete backend tooling and validation
Diffstat (limited to 'backend/lib/CodeGen/RegAllocBase.h')
-rw-r--r--backend/lib/CodeGen/RegAllocBase.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/lib/CodeGen/RegAllocBase.h b/backend/lib/CodeGen/RegAllocBase.h
index 5af5ed0..a1682b2 100644
--- a/backend/lib/CodeGen/RegAllocBase.h
+++ b/backend/lib/CodeGen/RegAllocBase.h
@@ -28,9 +28,9 @@ public:
protected:
RegAllocBase(MachineFunction &Function, const TargetDescription &Target,
const TargetRegisterAllocationInfo &TargetInfo, MachineAnalysisManager &Analyses,
- RegisterAllocationOptions Options) noexcept
+ RegisterAllocationOptions Options, MachineActionReplay *Actions = nullptr) noexcept
: Function(Function), Target(Target), TargetInfo(TargetInfo), Analyses(Analyses),
- Options(Options) {}
+ Options(Options), Actions(Actions) {}
[[nodiscard]] virtual Expected<AllocationRoundResult>
allocateRound(const LiveIntervalsAnalysis::Result &Intervals, VirtRegMap &Mapping) = 0;
@@ -40,6 +40,7 @@ protected:
const TargetRegisterAllocationInfo &TargetInfo;
MachineAnalysisManager &Analyses;
RegisterAllocationOptions Options;
+ MachineActionReplay *Actions = nullptr;
};
[[nodiscard]] std::vector<const LiveInterval *>