From bebaa1737200e4944be71bcab4137a3774c2d07e Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sun, 16 Aug 2026 20:13:50 +0800 Subject: [RISCV][GlobalISel] Generate shift selections --- backend/include/rcc/CodeGen/GlobalISel/GISelValueTracking.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend/include/rcc/CodeGen/GlobalISel/GISelValueTracking.h') diff --git a/backend/include/rcc/CodeGen/GlobalISel/GISelValueTracking.h b/backend/include/rcc/CodeGen/GlobalISel/GISelValueTracking.h index aa02fe3..e51f8c1 100644 --- a/backend/include/rcc/CodeGen/GlobalISel/GISelValueTracking.h +++ b/backend/include/rcc/CodeGen/GlobalISel/GISelValueTracking.h @@ -18,7 +18,7 @@ class TargetDescription; class GISelValueTracking final : public GISelChangeObserver { public: - GISelValueTracking(MachineFunction &Function, const TargetDescription &Target, + GISelValueTracking(const MachineFunction &Function, const TargetDescription &Target, unsigned MaxDepth = 6) noexcept; [[nodiscard]] const MachineFunction &getMachineFunction() const noexcept { @@ -42,8 +42,8 @@ private: [[nodiscard]] Expected makeUnknown(std::uint32_t BitWidth) const; [[nodiscard]] Expected getKnownBits(Register Reg, unsigned Depth = 0) const; - MachineFunction &Function; - MachineRegisterInfo &MRI; + const MachineFunction &Function; + const MachineRegisterInfo &MRI; const TargetDescription &Target; unsigned MaxDepth; }; -- cgit v1.2.3