reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/ADT/APInt.h
 2186 APInt RoundingSDiv(const APInt &A, const APInt &B, APInt::Rounding RM);

References

lib/IR/ConstantRange.cpp
  212     Lower = APIntOps::RoundingSDiv(MaxValue, V, APInt::Rounding::UP);
  213     Upper = APIntOps::RoundingSDiv(MinValue, V, APInt::Rounding::DOWN);
  215     Lower = APIntOps::RoundingSDiv(MinValue, V, APInt::Rounding::UP);
  216     Upper = APIntOps::RoundingSDiv(MaxValue, V, APInt::Rounding::DOWN);
unittests/ADT/APIntTest.cpp
 2551       EXPECT_EQ(0, APIntOps::RoundingSDiv(Zero, A, APInt::Rounding::UP));
 2552       EXPECT_EQ(0, APIntOps::RoundingSDiv(Zero, A, APInt::Rounding::DOWN));
 2553       EXPECT_EQ(0, APIntOps::RoundingSDiv(Zero, A, APInt::Rounding::TOWARD_ZERO));
 2562         APInt Quo = APIntOps::RoundingSDiv(A, B, APInt::Rounding::UP);
 2570         APInt Quo = APIntOps::RoundingSDiv(A, B, APInt::Rounding::DOWN);
 2579         EXPECT_EQ(Quo, APIntOps::RoundingSDiv(A, B, APInt::Rounding::TOWARD_ZERO));