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/lib/CodeGen/GlobalISel/LegalizerInfo.cpp | |
| parent | 558485504773804d56f0552517dbe42722742741 (diff) | |
| download | rcc-project-b85a348ab7bdd878fd975121fc2501625eceec95.tar.gz rcc-project-b85a348ab7bdd878fd975121fc2501625eceec95.tar.xz | |
[GlobalISel] Legalize G_ABS
Diffstat (limited to 'backend/lib/CodeGen/GlobalISel/LegalizerInfo.cpp')
| -rw-r--r-- | backend/lib/CodeGen/GlobalISel/LegalizerInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/lib/CodeGen/GlobalISel/LegalizerInfo.cpp b/backend/lib/CodeGen/GlobalISel/LegalizerInfo.cpp index 7d9e6ff..c4cf946 100644 --- a/backend/lib/CodeGen/GlobalISel/LegalizerInfo.cpp +++ b/backend/lib/CodeGen/GlobalISel/LegalizerInfo.cpp @@ -474,4 +474,8 @@ Expected<bool> LegalizerInfo::isUnsupported(const LegalizationQuery &Query) cons return Decision->Action == LegalizationAction::Unsupported; } +GenericOpcode LegalizerInfo::getExtOpcodeForWideningConstant(LowLevelType SmallType) const { + return SmallType.minimumBitWidth() % 8U == 0 ? GenericOpcode::G_SEXT : GenericOpcode::G_ZEXT; +} + } // namespace rcc |
