aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-14 22:37:46 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-14 22:37:46 +0800
commitb85a348ab7bdd878fd975121fc2501625eceec95 (patch)
tree737a6e0f3d0af64d2e3295b8507048b52a7be5c9 /backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h
parent558485504773804d56f0552517dbe42722742741 (diff)
downloadrcc-project-b85a348ab7bdd878fd975121fc2501625eceec95.tar.gz
rcc-project-b85a348ab7bdd878fd975121fc2501625eceec95.tar.xz
[GlobalISel] Legalize G_ABS
Diffstat (limited to 'backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h')
-rw-r--r--backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h3
1 files changed, 3 insertions, 0 deletions
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<void> validateLowering(const MachineInstr &,
const MachineFunction &,