• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/llvm/lib/Support/

Lines Matching refs:Overflow

1956 APInt APInt::sadd_ov(const APInt &RHS, bool &Overflow) const {
1958 Overflow = isNonNegative() == RHS.isNonNegative() &&
1963 APInt APInt::uadd_ov(const APInt &RHS, bool &Overflow) const {
1965 Overflow = Res.ult(RHS);
1969 APInt APInt::ssub_ov(const APInt &RHS, bool &Overflow) const {
1971 Overflow = isNonNegative() != RHS.isNonNegative() &&
1976 APInt APInt::usub_ov(const APInt &RHS, bool &Overflow) const {
1978 Overflow = Res.ugt(*this);
1982 APInt APInt::sdiv_ov(const APInt &RHS, bool &Overflow) const {
1984 Overflow = isMinSignedValue() && RHS.isAllOnesValue();
1988 APInt APInt::smul_ov(const APInt &RHS, bool &Overflow) const {
1992 Overflow = Res.sdiv(RHS) != *this || Res.sdiv(*this) != RHS;
1994 Overflow = false;
1998 APInt APInt::umul_ov(const APInt &RHS, bool &Overflow) const {
2000 Overflow = true;
2005 Overflow = Res.isNegative();
2010 Overflow = true;
2015 APInt APInt::sshl_ov(const APInt &ShAmt, bool &Overflow) const {
2016 Overflow = ShAmt.uge(getBitWidth());
2017 if (Overflow)
2021 Overflow = ShAmt.uge(countLeadingZeros());
2023 Overflow = ShAmt.uge(countLeadingOnes());
2028 APInt APInt::ushl_ov(const APInt &ShAmt, bool &Overflow) const {
2029 Overflow = ShAmt.uge(getBitWidth());
2030 if (Overflow)
2033 Overflow = ShAmt.ugt(countLeadingZeros());
2039 bool Overflow;
2040 APInt Res = sadd_ov(RHS, Overflow);
2041 if (!Overflow)
2049 bool Overflow;
2050 APInt Res = uadd_ov(RHS, Overflow);
2051 if (!Overflow)
2058 bool Overflow;
2059 APInt Res = ssub_ov(RHS, Overflow);
2060 if (!Overflow)
2068 bool Overflow;
2069 APInt Res = usub_ov(RHS, Overflow);
2070 if (!Overflow)
2077 bool Overflow;
2078 APInt Res = smul_ov(RHS, Overflow);
2079 if (!Overflow)
2090 bool Overflow;
2091 APInt Res = umul_ov(RHS, Overflow);
2092 if (!Overflow)
2099 bool Overflow;
2100 APInt Res = sshl_ov(RHS, Overflow);
2101 if (!Overflow)
2109 bool Overflow;
2110 APInt Res = ushl_ov(RHS, Overflow);
2111 if (!Overflow)