aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/CodeGen
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-15 21:22:38 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-15 21:22:38 +0800
commit76ffebbcd0bc5ef8c124d5ec73ebcab4d9a351a9 (patch)
tree313fea05c77e3387d8f10596c30a406896412959 /backend/include/rcc/CodeGen
parentbaee0bdcf07806bbf0cdfd50ca68f8d0e33c1c9a (diff)
downloadrcc-project-76ffebbcd0bc5ef8c124d5ec73ebcab4d9a351a9.tar.gz
rcc-project-76ffebbcd0bc5ef8c124d5ec73ebcab4d9a351a9.tar.xz
[GlobalISel] Legalize saturating arithmetic
Diffstat (limited to 'backend/include/rcc/CodeGen')
-rw-r--r--backend/include/rcc/CodeGen/GlobalISel/LegalizerHelper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/include/rcc/CodeGen/GlobalISel/LegalizerHelper.h b/backend/include/rcc/CodeGen/GlobalISel/LegalizerHelper.h
index 830a427..c6b0f62 100644
--- a/backend/include/rcc/CodeGen/GlobalISel/LegalizerHelper.h
+++ b/backend/include/rcc/CodeGen/GlobalISel/LegalizerHelper.h
@@ -135,6 +135,9 @@ private:
[[nodiscard]] Expected<void> widenScalarMulo(MachineInstr &Instruction, std::size_t TypeIndex,
LowLevelType WideType);
[[nodiscard]] Expected<void> lowerSignedAddSubOverflow(MachineInstr &Instruction);
+ [[nodiscard]] Expected<void> lowerSaturatingAddSubToMinMax(MachineInstr &Instruction);
+ [[nodiscard]] Expected<void> lowerSaturatingAddSubToOverflow(MachineInstr &Instruction);
+ [[nodiscard]] Expected<void> lowerSaturatingShiftLeft(MachineInstr &Instruction);
[[nodiscard]] Expected<void> lowerMulo(MachineInstr &Instruction);
MachineFunction &Function;