[llvm] [ADT][APInt] add sfloordiv_ov APInt's member function (PR #84720)
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 13 13:06:15 PDT 2024
================
@@ -2022,6 +2022,13 @@ APInt APInt::ushl_ov(unsigned ShAmt, bool &Overflow) const {
return *this << ShAmt;
}
+APInt APInt::sfloordiv_ov(const APInt &RHS, bool &Overflow) const {
+ auto quotient = sdiv_ov(RHS, Overflow);
----------------
kuhar wrote:
nit: APInt instead of auto
https://github.com/llvm/llvm-project/pull/84720
More information about the llvm-commits
mailing list