diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-26 23:43:44 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-26 23:43:44 +0800 |
| commit | a47055fe6af27de9d1ce505938e0cebbca5532ff (patch) | |
| tree | 2de32b198f57408e52e7a226a548e54e418b512c /backend/include/rcc/CodeGen | |
| parent | 35f4e0a3aa03dfae06b5c9f226e38e609de2eef5 (diff) | |
| download | rcc-project-a47055fe6af27de9d1ce505938e0cebbca5532ff.tar.gz rcc-project-a47055fe6af27de9d1ce505938e0cebbca5532ff.tar.xz | |
[CodeGen] Remove transactional register allocation
Diffstat (limited to 'backend/include/rcc/CodeGen')
| -rw-r--r-- | backend/include/rcc/CodeGen/Spiller.h | 10 |
1 files changed, 5 insertions, 5 deletions
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 <optional> @@ -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<std::vector<Register>> spill(Register VirtualReg); @@ -37,7 +37,7 @@ private: VirtRegMap *Mapping; LiveRangeEdit Edit; bool EnableRematerialization; - MachineActionReplay *Actions; + MachineFunctionAnalysisManager *ActionAnalyses; }; } // namespace rcc |
