From 27c303ff00234e5ab9379878858f7ae3d0bdc2dc Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Wed, 26 Aug 2026 23:33:07 +0800 Subject: [GlobalISel] Run machine transformations once --- backend/include/rcc/CodeGen/GlobalISel/Combiner.h | 3 ++- backend/include/rcc/CodeGen/GlobalISel/InstructionSelect.h | 3 ++- backend/include/rcc/CodeGen/GlobalISel/Legalizer.h | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'backend/include/rcc/CodeGen') diff --git a/backend/include/rcc/CodeGen/GlobalISel/Combiner.h b/backend/include/rcc/CodeGen/GlobalISel/Combiner.h index efb6bbf..85b68d1 100644 --- a/backend/include/rcc/CodeGen/GlobalISel/Combiner.h +++ b/backend/include/rcc/CodeGen/GlobalISel/Combiner.h @@ -35,7 +35,8 @@ public: private: [[nodiscard]] Expected runImplementation(MachineFunction &Function, const TargetDescription &Target, - MachineActionReplay &Actions) const; + MachineFunctionAnalysisManager + &Analyses) const; const GIMatchTable *Table; const GIMatchTableExecutor *Executor; diff --git a/backend/include/rcc/CodeGen/GlobalISel/InstructionSelect.h b/backend/include/rcc/CodeGen/GlobalISel/InstructionSelect.h index f342cdc..174a943 100644 --- a/backend/include/rcc/CodeGen/GlobalISel/InstructionSelect.h +++ b/backend/include/rcc/CodeGen/GlobalISel/InstructionSelect.h @@ -21,7 +21,8 @@ public: private: [[nodiscard]] Expected runImplementation(MachineFunction &Function, const TargetDescription &Target, - MachineActionReplay &Actions); + MachineFunctionAnalysisManager + &Analyses); const InstructionSelector *Info; }; diff --git a/backend/include/rcc/CodeGen/GlobalISel/Legalizer.h b/backend/include/rcc/CodeGen/GlobalISel/Legalizer.h index e90d09c..e75d71e 100644 --- a/backend/include/rcc/CodeGen/GlobalISel/Legalizer.h +++ b/backend/include/rcc/CodeGen/GlobalISel/Legalizer.h @@ -36,7 +36,8 @@ public: private: [[nodiscard]] Expected runImplementation(MachineFunction &Function, const TargetDescription &Target, - MachineActionReplay &Actions); + MachineFunctionAnalysisManager + &Analyses); std::unique_ptr OwnedInfo; const LegalizerInfo *Info = nullptr; -- cgit v1.2.3