From 47d0d5140b4616ae4dd7c6d2c3c089ccbfc3b009 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Mon, 24 Aug 2026 16:48:50 +0800 Subject: [CodeGen] Match LLVM machine combiner semantics --- backend/include/rcc/CodeGen/MachineCombiner.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'backend/include/rcc/CodeGen/MachineCombiner.h') diff --git a/backend/include/rcc/CodeGen/MachineCombiner.h b/backend/include/rcc/CodeGen/MachineCombiner.h index 3850b91..42ca301 100644 --- a/backend/include/rcc/CodeGen/MachineCombiner.h +++ b/backend/include/rcc/CodeGen/MachineCombiner.h @@ -17,9 +17,9 @@ struct MachineCombinerOptions final { class MachineCombinerPass final : public MachineFunctionPass { public: - MachineCombinerPass(const TargetMachineCombinerInfo &Info, MachineCombinerStage Stage, + MachineCombinerPass(const TargetMachineCombinerInfo &Info, MachineCombinerOptions Options = {}) noexcept - : Info(&Info), Stage(Stage), Options(Options) {} + : Info(&Info), Options(Options) {} [[nodiscard]] const MachinePassContract &contract() const noexcept override; [[nodiscard]] Expected run(MachineFunction &Function, @@ -32,7 +32,6 @@ private: MachineActionReplay &Actions) const; const TargetMachineCombinerInfo *Info; - MachineCombinerStage Stage; MachineCombinerOptions Options; }; -- cgit v1.2.3