From a47055fe6af27de9d1ce505938e0cebbca5532ff Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Wed, 26 Aug 2026 23:43:44 +0800 Subject: [CodeGen] Remove transactional register allocation --- backend/include/rcc/CodeGen/Spiller.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'backend/include/rcc') diff --git a/backend/include/rcc/CodeGen/Spiller.h b/backend/include/rcc/CodeGen/Spiller.h index f63158d..b44b8f2 100644 --- a/backend/include/rcc/CodeGen/Spiller.h +++ b/backend/include/rcc/CodeGen/Spiller.h @@ -4,6 +4,7 @@ #define RCC_CODEGEN_SPILLER_H #include "rcc/CodeGen/LiveRangeEdit.h" +#include "rcc/CodeGen/MachineFunctionAnalysisManager.h" #include "rcc/CodeGen/TargetRegisterAllocationInfo.h" #include @@ -11,16 +12,15 @@ namespace rcc { -class MachineActionReplay; - class Spiller final { public: Spiller(MachineFunction &Function, const TargetDescription &Target, const TargetRegisterAllocationInfo &TargetInfo, VirtRegMap &Mapping, - bool EnableRematerialization = true, MachineActionReplay *Actions = nullptr) + bool EnableRematerialization = true, + MachineFunctionAnalysisManager *ActionAnalyses = nullptr) : Function(&Function), Target(&Target), TargetInfo(&TargetInfo), Mapping(&Mapping), Edit(Function, Target, Mapping), EnableRematerialization(EnableRematerialization), - Actions(Actions) {} + ActionAnalyses(ActionAnalyses) {} [[nodiscard]] Expected> spill(Register VirtualReg); @@ -37,7 +37,7 @@ private: VirtRegMap *Mapping; LiveRangeEdit Edit; bool EnableRematerialization; - MachineActionReplay *Actions; + MachineFunctionAnalysisManager *ActionAnalyses; }; } // namespace rcc -- cgit v1.2.3