diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-12 20:39:04 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-12 20:39:04 +0800 |
| commit | 8721893d3ba605f5374d9c0c7987af6110355638 (patch) | |
| tree | e734a1358a80fbb4dbdc62f1575475da51fabcb8 /backend/include/rcc/CodeGen/MachineBranchRelaxation.h | |
| parent | 2ef71f86a2b3e23967e8af08ba1eaaa950f0e1b5 (diff) | |
| download | rcc-project-8721893d3ba605f5374d9c0c7987af6110355638.tar.gz rcc-project-8721893d3ba605f5374d9c0c7987af6110355638.tar.xz | |
[CodeGen] Add TargetInstrInfo ownership
Diffstat (limited to 'backend/include/rcc/CodeGen/MachineBranchRelaxation.h')
| -rw-r--r-- | backend/include/rcc/CodeGen/MachineBranchRelaxation.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/include/rcc/CodeGen/MachineBranchRelaxation.h b/backend/include/rcc/CodeGen/MachineBranchRelaxation.h index c88c1d5..03c7fa7 100644 --- a/backend/include/rcc/CodeGen/MachineBranchRelaxation.h +++ b/backend/include/rcc/CodeGen/MachineBranchRelaxation.h @@ -9,7 +9,7 @@ namespace rcc { -class TargetBranchInfo; +class TargetInstrInfo; struct MachineBranchRelaxationOptions final { std::size_t ConvergenceWatchdog = 1000000; @@ -17,7 +17,7 @@ struct MachineBranchRelaxationOptions final { class MachineBranchRelaxationPass final : public MachineFunctionPass { public: - explicit MachineBranchRelaxationPass(const TargetBranchInfo &Info, + explicit MachineBranchRelaxationPass(const TargetInstrInfo &Info, MachineBranchRelaxationOptions Options = {}) noexcept : Info(&Info), Options(Options) {} @@ -31,7 +31,7 @@ private: const TargetDescription &Target, MachineActionReplay &Actions) const; - const TargetBranchInfo *Info; + const TargetInstrInfo *Info; MachineBranchRelaxationOptions Options; }; |
