diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-24 16:48:50 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-24 16:48:50 +0800 |
| commit | 47d0d5140b4616ae4dd7c6d2c3c089ccbfc3b009 (patch) | |
| tree | 363cb222cb041dc2aee5e2cce4df5adb0fd64d3e /backend/include/rcc/CodeGen/MachineCombiner.h | |
| parent | 540c73a2f450af3d0aec6e039fab054471efdbb1 (diff) | |
| download | rcc-project-47d0d5140b4616ae4dd7c6d2c3c089ccbfc3b009.tar.gz rcc-project-47d0d5140b4616ae4dd7c6d2c3c089ccbfc3b009.tar.xz | |
[CodeGen] Match LLVM machine combiner semantics
Diffstat (limited to 'backend/include/rcc/CodeGen/MachineCombiner.h')
| -rw-r--r-- | backend/include/rcc/CodeGen/MachineCombiner.h | 5 |
1 files changed, 2 insertions, 3 deletions
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<MachinePassResult> run(MachineFunction &Function, @@ -32,7 +32,6 @@ private: MachineActionReplay &Actions) const; const TargetMachineCombinerInfo *Info; - MachineCombinerStage Stage; MachineCombinerOptions Options; }; |
