|
LLVM
7.0.0
|
Functions | |
| const APInt & | smin (const APInt &A, const APInt &B) |
| Determine the smaller of two APInts considered to be signed. More... | |
| const APInt & | smax (const APInt &A, const APInt &B) |
| Determine the larger of two APInts considered to be signed. More... | |
| const APInt & | umin (const APInt &A, const APInt &B) |
| Determine the smaller of two APInts considered to be signed. More... | |
| const APInt & | umax (const APInt &A, const APInt &B) |
| Determine the larger of two APInts considered to be unsigned. More... | |
| APInt | GreatestCommonDivisor (APInt A, APInt B) |
| Compute GCD of two unsigned APInt values. More... | |
| double | RoundAPIntToDouble (const APInt &APIVal) |
| Converts the given APInt to a double value. More... | |
| double | RoundSignedAPIntToDouble (const APInt &APIVal) |
| Converts the given APInt to a double value. More... | |
| float | RoundAPIntToFloat (const APInt &APIVal) |
| Converts the given APInt to a float vlalue. More... | |
| float | RoundSignedAPIntToFloat (const APInt &APIVal) |
| Converts the given APInt to a float value. More... | |
| APInt | RoundDoubleToAPInt (double Double, unsigned width) |
| Converts the given double value into a APInt. More... | |
| APInt | RoundFloatToAPInt (float Float, unsigned width) |
| Converts a float value into a APInt. More... | |
| APInt | RoundingUDiv (const APInt &A, const APInt &B, APInt::Rounding RM) |
| Return A unsign-divided by B, rounded by the given rounding mode. More... | |
| APInt | RoundingSDiv (const APInt &A, const APInt &B, APInt::Rounding RM) |
| Return A sign-divided by B, rounded by the given rounding mode. More... | |
Compute GCD of two unsigned APInt values.
This function returns the greatest common divisor of the two APInt values using Stein's algorithm.
Definition at line 670 of file APInt.cpp.
References B, llvm::APInt::countTrailingZeros(), llvm::APInt::lshrInPlace(), and llvm::APInt::ugt().
Referenced by gcd(), getConstantPart(), and umax().
Converts the given APInt to a double value.
Treats the APInt as an unsigned value for conversion purposes.
Definition at line 2128 of file APInt.h.
References llvm::APInt::roundToDouble().
Referenced by RoundAPIntToFloat(), and llvm::Interpreter::visitAShr().
Converts the given APInt to a float vlalue.
Definition at line 2140 of file APInt.h.
References RoundAPIntToDouble().
Referenced by llvm::Interpreter::visitAShr().
Converts the given double value into a APInt.
This function convert a double value to an APInt value.
Definition at line 713 of file APInt.cpp.
References llvm::APInt::APInt(), D, I, and T.
Referenced by llvm::ExecutionEngine::getConstantValue(), RoundFloatToAPInt(), RoundSignedAPIntToFloat(), and llvm::Interpreter::visitAShr().
Converts a float value into a APInt.
Converts a float value into an APInt value.
Definition at line 2159 of file APInt.h.
References Arg, llvm::hash_value(), llvm::NVPTX::PTXCvtMode::RM, RoundDoubleToAPInt(), RoundingSDiv(), and RoundingUDiv().
Referenced by llvm::ExecutionEngine::getConstantValue(), and llvm::Interpreter::visitAShr().
Return A sign-divided by B, rounded by the given rounding mode.
Definition at line 2681 of file APInt.cpp.
References llvm::APInt::DOWN, llvm::APInt::isNegative(), llvm_unreachable, llvm::APInt::sdiv(), llvm::APInt::sdivrem(), llvm::APInt::TOWARD_ZERO, and llvm::APInt::UP.
Referenced by llvm::ConstantRange::makeGuaranteedNoWrapRegion(), and RoundFloatToAPInt().
Return A unsign-divided by B, rounded by the given rounding mode.
Definition at line 2663 of file APInt.cpp.
References llvm::APInt::DOWN, llvm_unreachable, llvm::APInt::TOWARD_ZERO, llvm::APInt::udiv(), llvm::APInt::udivrem(), and llvm::APInt::UP.
Referenced by llvm::ConstantRange::makeGuaranteedNoWrapRegion(), and RoundFloatToAPInt().
Converts the given APInt to a double value.
Treats the APInt as a signed value for conversion purposes.
Definition at line 2135 of file APInt.h.
References llvm::APInt::signedRoundToDouble().
Referenced by llvm::Interpreter::visitAShr().
Converts the given APInt to a float value.
Treast the APInt as a signed value for conversion purposes.
Definition at line 2147 of file APInt.h.
References RoundDoubleToAPInt(), and llvm::APInt::signedRoundToDouble().
Referenced by llvm::Interpreter::visitAShr().
Determine the larger of two APInts considered to be signed.
Definition at line 2103 of file APInt.h.
References B, and llvm::APInt::sgt().
Referenced by llvm::ScalarEvolution::getSMaxExpr(), llvm::ConstantRange::operator!=(), and llvm::ConstantRange::smax().
Determine the smaller of two APInts considered to be signed.
Definition at line 2098 of file APInt.h.
References B, and llvm::APInt::slt().
Referenced by llvm::ConstantRange::operator!=(), and llvm::ConstantRange::smin().
Determine the larger of two APInts considered to be unsigned.
Definition at line 2113 of file APInt.h.
References B, GreatestCommonDivisor(), and llvm::APInt::ugt().
Referenced by llvm::ConstantRange::binaryOr(), llvm::ScalarEvolution::getUMaxExpr(), llvm::ConstantRange::operator!=(), and llvm::ConstantRange::umax().
Determine the smaller of two APInts considered to be signed.
Definition at line 2108 of file APInt.h.
References B, and llvm::APInt::ult().
Referenced by llvm::ConstantRange::binaryAnd(), MergeAliasResults(), llvm::ConstantRange::operator!=(), and llvm::ConstantRange::umin().
1.8.13