aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/ADT/APInt.h
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-15 01:03:21 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-15 01:03:21 +0800
commit0ff8758f879231610bf92bee2123061fd7cfe01d (patch)
tree288ccc605fab8abcbcbc2d61cf365a285211016e /backend/include/rcc/ADT/APInt.h
parentf6fdfb8d484b4e52cdb24a94a31b0f00d41a5eb7 (diff)
downloadrcc-project-0ff8758f879231610bf92bee2123061fd7cfe01d.tar.gz
rcc-project-0ff8758f879231610bf92bee2123061fd7cfe01d.tar.xz
[GlobalISel] Legalize constants and implicit definitions
Diffstat (limited to 'backend/include/rcc/ADT/APInt.h')
-rw-r--r--backend/include/rcc/ADT/APInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/include/rcc/ADT/APInt.h b/backend/include/rcc/ADT/APInt.h
index 8b869be..dc48d16 100644
--- a/backend/include/rcc/ADT/APInt.h
+++ b/backend/include/rcc/ADT/APInt.h
@@ -54,6 +54,7 @@ public:
[[nodiscard]] Expected<APInt> trunc(std::uint32_t NewBitWidth) const;
[[nodiscard]] Expected<APInt> zext(std::uint32_t NewBitWidth) const;
[[nodiscard]] Expected<APInt> sext(std::uint32_t NewBitWidth) const;
+ [[nodiscard]] Expected<APInt> logicalShiftRight(std::size_t Amount) const;
[[nodiscard]] int compare(const APInt &Other) const noexcept;
[[nodiscard]] int compareToShifted(const APInt &Other, std::size_t OtherShift) const noexcept;