From b85a348ab7bdd878fd975121fc2501625eceec95 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Fri, 14 Aug 2026 22:37:46 +0800 Subject: [GlobalISel] Legalize G_ABS --- backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h') diff --git a/backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h b/backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h index 9162526..2981f8e 100644 --- a/backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h +++ b/backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h @@ -24,6 +24,7 @@ class MachineFunction; class MachineInstr; class TargetDescription; class LegalizerHelper; +enum class GenericOpcode : std::uint32_t; enum class LegalizationAction : std::uint8_t { Legal, @@ -181,6 +182,8 @@ public: return true; } + [[nodiscard]] virtual GenericOpcode getExtOpcodeForWideningConstant(LowLevelType SmallType) const; + // This hook performs read-only target checks before a lowering mutation is committed. [[nodiscard]] virtual Expected validateLowering(const MachineInstr &, const MachineFunction &, -- cgit v1.2.3