diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-14 22:37:46 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-14 22:37:46 +0800 |
| commit | b85a348ab7bdd878fd975121fc2501625eceec95 (patch) | |
| tree | 737a6e0f3d0af64d2e3295b8507048b52a7be5c9 /backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h | |
| parent | 558485504773804d56f0552517dbe42722742741 (diff) | |
| download | rcc-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.h | 3 |
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 &, |
