LLVM
8.0.1
|
#include "llvm/ADT/APFloat.h"
Static Public Member Functions | |
static APFloat | getZero (const fltSemantics &Sem, bool Negative=false) |
Factory for Positive and Negative Zero. More... | |
static APFloat | getInf (const fltSemantics &Sem, bool Negative=false) |
Factory for Positive and Negative Infinity. More... | |
static APFloat | getNaN (const fltSemantics &Sem, bool Negative=false, uint64_t payload=0) |
Factory for NaN values. More... | |
static APFloat | getQNaN (const fltSemantics &Sem, bool Negative=false, const APInt *payload=nullptr) |
Factory for QNaN values. More... | |
static APFloat | getSNaN (const fltSemantics &Sem, bool Negative=false, const APInt *payload=nullptr) |
Factory for SNaN values. More... | |
static APFloat | getLargest (const fltSemantics &Sem, bool Negative=false) |
Returns the largest finite number in the given semantics. More... | |
static APFloat | getSmallest (const fltSemantics &Sem, bool Negative=false) |
Returns the smallest (by magnitude) finite number in the given semantics. More... | |
static APFloat | getSmallestNormalized (const fltSemantics &Sem, bool Negative=false) |
Returns the smallest (by magnitude) normalized finite number in the given semantics. More... | |
static APFloat | getAllOnesValue (unsigned BitWidth, bool isIEEE=false) |
Returns a float which is bitcasted from an all one value int. More... | |
static APFloat | copySign (APFloat Value, const APFloat &Sign) |
A static helper to produce a copy of an APFloat value with its sign copied from some other APFloat. More... | |
Static Public Member Functions inherited from llvm::APFloatBase | |
static unsigned int | semanticsPrecision (const fltSemantics &) |
static ExponentType | semanticsMinExponent (const fltSemantics &) |
static ExponentType | semanticsMaxExponent (const fltSemantics &) |
static unsigned int | semanticsSizeInBits (const fltSemantics &) |
static unsigned | getSizeInBits (const fltSemantics &Sem) |
Returns the size of the floating point number (in bits) in the given semantics. More... | |
static const fltSemantics & | IEEEhalf () LLVM_READNONE |
static const fltSemantics & | IEEEsingle () LLVM_READNONE |
static const fltSemantics & | IEEEdouble () LLVM_READNONE |
static const fltSemantics & | IEEEquad () LLVM_READNONE |
static const fltSemantics & | PPCDoubleDouble () LLVM_READNONE |
static const fltSemantics & | x87DoubleExtended () LLVM_READNONE |
static const fltSemantics & | Bogus () LLVM_READNONE |
A Pseudo fltsemantic used to construct APFloats that cannot conflict with anything real. More... | |
Public Attributes | |
friend | IEEEFloat |
friend | DoubleAPFloat |
Friends | |
hash_code | hash_value (const APFloat &Arg) |
See friend declarations above. More... | |
int | ilogb (const APFloat &Arg) |
APFloat | scalbn (APFloat X, int Exp, roundingMode RM) |
APFloat | frexp (const APFloat &X, int &Exp, roundingMode RM) |
Additional Inherited Members | |
Public Types inherited from llvm::APFloatBase | |
enum | cmpResult { cmpLessThan, cmpEqual, cmpGreaterThan, cmpUnordered } |
IEEE-754R 5.11: Floating Point Comparison Relations. More... | |
enum | roundingMode { rmNearestTiesToEven, rmTowardPositive, rmTowardNegative, rmTowardZero, rmNearestTiesToAway } |
IEEE-754R 4.3: Rounding-direction attributes. More... | |
enum | opStatus { opOK = 0x00, opInvalidOp = 0x01, opDivByZero = 0x02, opOverflow = 0x04, opUnderflow = 0x08, opInexact = 0x10 } |
IEEE-754R 7: Default exception handling. More... | |
enum | fltCategory { fcInfinity, fcNaN, fcNormal, fcZero } |
Category of internally-represented number. More... | |
enum | uninitializedTag { uninitialized } |
Convenience enum used to construct an uninitialized APFloat. More... | |
enum | IlogbErrorKinds { IEK_Zero = INT_MIN + 1, IEK_NaN = INT_MIN, IEK_Inf = INT_MAX } |
Enumeration of ilogb error results. More... | |
typedef APInt::WordType | integerPart |
typedef signed short | ExponentType |
A signed type to represent a floating point numbers unbiased exponent. More... | |
Static Public Attributes inherited from llvm::APFloatBase | |
static const unsigned | integerPartWidth = APInt::APINT_BITS_PER_WORD |
|
inline |
Definition at line 836 of file APFloat.h.
References llvm::lltok::APFloat.
llvm::APFloat::APFloat | ( | const fltSemantics & | Semantics, |
StringRef | S | ||
) |
Definition at line 4439 of file APFloat.cpp.
References convertFromString(), and llvm::APFloatBase::rmNearestTiesToEven.
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
Definition at line 844 of file APFloat.h.
References llvm::lltok::APFloat.
|
default |
|
default |
|
inline |
Definition at line 941 of file APFloat.h.
References assert(), getSemantics(), and llvm_unreachable.
Referenced by llvm::ConstantFoldBinaryInstruction(), llvm::ExecutionEngine::getConstantValue(), llvm::SelectionDAG::getNode(), getSqrtCall(), llvm::detail::DoubleAPFloat::multiply(), operator+(), and llvm::detail::DoubleAPFloat::operator=().
|
inline |
Definition at line 1094 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS.
Referenced by llvm::DwarfUnit::addConstantFPValue(), llvm::SparcTargetLowering::bitcastConstantFPToInt(), buildEXP(), llvm::canConstantFoldCallTo(), CC_MipsO32_FP64(), changeFCMPPredToAArch64CC(), llvm::FunctionComparator::cmpAPFloats(), ConvertDoubleToBytes(), llvm::detail::DoubleAPFloat::convertFromAPInt(), llvm::detail::DoubleAPFloat::convertFromSignExtendedInteger(), llvm::detail::DoubleAPFloat::convertFromString(), llvm::detail::DoubleAPFloat::convertFromZeroExtendedInteger(), llvm::detail::DoubleAPFloat::divide(), emitDebugLocValue(), emitGlobalConstantFP(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::detail::DoubleAPFloat::fusedMultiplyAdd(), llvm::ExecutionEngine::getConstantValue(), llvm::detail::DoubleAPFloat::getExactInverse(), llvm::AArch64_AM::getFP16Imm(), llvm::ARM_AM::getFP16Imm(), llvm::AArch64_AM::getFP32Imm(), llvm::ARM_AM::getFP32Imm(), llvm::AArch64_AM::getFP64Imm(), llvm::ARM_AM::getFP64Imm(), GetFPLibCall(), getImplicitScaleFactor(), llvm::SelectionDAG::getNode(), getOpenCLAlignment(), GetPromotionOpcode(), getSpecialRegForName(), getSplatConstantFP(), llvm::HexagonLowerToMC(), llvm::SITargetLowering::isCanonicalized(), llvm::ARMLegalizerInfo::legalizeCustom(), llvm::HexagonTargetLowering::LowerBITCAST(), llvm::detail::DoubleAPFloat::mod(), llvm::detail::DoubleAPFloat::next(), nextReg(), parseHexOcta(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::NVPTXFloatMCExpr::printImpl(), Profile(), llvm::detail::DoubleAPFloat::remainder(), llvm::detail::DoubleAPFloat::roundToIntegral(), llvm::HexagonDAGToDAGISel::SelectConstantFP(), ShrinkLoadReplaceStoreWithStore(), toString(), and WriteConstantInternal().
Definition at line 1112 of file APFloat.h.
References getSemantics(), and llvm_unreachable.
Referenced by llvm::DenseMapAPFloatKeyInfo::isEqual(), llvm::X86TargetLowering::isFPImmLegal(), isInv2Pi(), and toString().
|
inline |
Definition at line 1050 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS, and changeSign().
Referenced by buildMultiplyTree(), changeSign(), EmitAddTreeOfValues(), FoldIntToFPToInt(), GetNegatedExpression(), llvm::SelectionDAG::getNode(), getSpecialRegForName(), INITIALIZE_PASS(), matchSVEPredicateVectorRegName(), llvm::detail::DoubleAPFloat::multiply(), llvm::neg(), llvm::detail::DoubleAPFloat::operator=(), parseHexOcta(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 1051 of file APFloat.h.
Referenced by llvm::abs(), llvm::SelectionDAG::getNode(), LowerFCOPYSIGN(), and llvm::InstCombiner::visitFCmpInst().
Definition at line 1102 of file APFloat.h.
References assert(), getSemantics(), and llvm_unreachable.
Referenced by llvm::ConstantFoldCompareInstruction(), EmitAddTreeOfValues(), fmed3AMDGCN(), getMad64_32(), llvm::MDNode::getMostGenericFPMath(), getSplatConstantFP(), getSqrtCall(), llvm::isMathLibCallNoop(), mapBinOpcode(), matchFastFloatClamp(), llvm::maximum(), llvm::maxnum(), llvm::minimum(), llvm::minnum(), llvm::InstCombiner::visitFCmpInst(), and llvm::InstCombiner::visitICmpInst().
APFloat::opStatus llvm::APFloat::convert | ( | const fltSemantics & | ToSemantics, |
roundingMode | RM, | ||
bool * | losesInfo | ||
) |
Definition at line 4444 of file APFloat.cpp.
References assert(), llvm::detail::IEEEFloat::convert(), getSemantics(), llvm_unreachable, llvm::APFloatBase::opOK, and llvm::MipsISD::Ret.
Referenced by llvm::canConstantFoldCallTo(), llvm::ConstantFoldCastInstruction(), emitDebugValueComment(), fitsInFPType(), FunctionNumber(), llvm::ConstantFP::get(), llvm::getAPFloatFromSize(), llvm::SelectionDAG::getConstantFP(), llvm::SelectionDAG::getNode(), getOpenCLAlignment(), getPow(), getSqrtCall(), llvm::ConstantFP::isExactlyValue(), isExactlyValue(), llvm::ConstantFP::isValueValidForType(), LLVMConstRealGetDouble(), llvm::ARMAsmPrinter::lowerOperand(), lowerUINT_TO_FP_vec(), llvm::NVPTXFloatMCExpr::printImpl(), valueHasFloatPrecision(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitFCmpInst(), llvm::LegalizerHelper::widenScalar(), WriteConstantInternal(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 1077 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS.
Referenced by llvm::ConstantFoldCastInstruction(), llvm::detail::DoubleAPFloat::convertFromAPInt(), llvm::ExecutionEngine::getConstantValue(), llvm::SelectionDAG::getNode(), and llvm::InstCombiner::visitICmpInst().
|
inline |
Definition at line 1081 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS.
Referenced by llvm::detail::DoubleAPFloat::convertFromSignExtendedInteger().
APFloat::opStatus llvm::APFloat::convertFromString | ( | StringRef | Str, |
roundingMode | RM | ||
) |
Definition at line 4427 of file APFloat.cpp.
References APFLOAT_DISPATCH_ON_SEMANTICS, and llvm::detail::DoubleAPFloat::convertFromString().
Referenced by APFloat(), llvm::detail::DoubleAPFloat::convertFromString(), llvm::StringRef::getAsDouble(), matchSVEPredicateVectorRegName(), and parseHexOcta().
|
inline |
Definition at line 1087 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS.
Referenced by llvm::detail::DoubleAPFloat::convertFromZeroExtendedInteger().
|
inline |
Definition at line 1097 of file APFloat.h.
Referenced by llvm::canConstantFoldCallTo(), ConvertDoubleToBytes(), emitDebugValueComment(), llvm::StringRef::getAsDouble(), getSqrtCall(), LLVMConstRealGetDouble(), llvm::log2(), llvm::WebAssemblyMCInstLower::Lower(), llvm::ARMAsmPrinter::lowerOperand(), and WriteConstantInternal().
|
inline |
Definition at line 1098 of file APFloat.h.
References llvm::operator==().
Referenced by llvm::canConstantFoldCallTo(), ConvertDoubleToBytes(), emitDebugValueComment(), llvm::FPMathOperator::getFPAccuracy(), LLVMConstRealGetDouble(), llvm::log2(), llvm::WebAssemblyMCInstLower::Lower(), llvm::R600TargetLowering::PerformDAGCombine(), and WriteConstantInternal().
|
inline |
Definition at line 1137 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS.
Referenced by toString().
|
inline |
Definition at line 1069 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS.
Referenced by llvm::canConstantFoldCallTo(), llvm::ConstantFoldCastInstruction(), convertToInteger(), ConvertToSInt(), llvm::BuildVectorSDNode::getConstantFPSplatPow2ToLog2Int(), llvm::ExecutionEngine::getConstantValue(), llvm::SelectionDAG::getNode(), getPow(), llvm::FastISel::getRegForValue(), tryBitfieldInsertOpFromOr(), and llvm::InstCombiner::visitICmpInst().
APFloat::opStatus llvm::APFloat::convertToInteger | ( | APSInt & | Result, |
roundingMode | RM, | ||
bool * | IsExact | ||
) | const |
Definition at line 4509 of file APFloat.cpp.
References convertToInteger(), llvm::APInt::getBitWidth(), llvm::APInt::getNumWords(), llvm::APSInt::isSigned(), and llvm::sys::fs::status().
Definition at line 1055 of file APFloat.h.
References isNegative().
Referenced by llvm::canConstantFoldCallTo(), copySign(), and llvm::SelectionDAG::getNode().
A static helper to produce a copy of an APFloat value with its sign copied from some other APFloat.
Definition at line 1062 of file APFloat.h.
References copySign(), and llvm::NVPTX::PTXCvtMode::RM.
|
inline |
Definition at line 968 of file APFloat.h.
References assert(), getSemantics(), and llvm_unreachable.
Referenced by llvm::ConstantFoldBinaryInstruction(), llvm::detail::DoubleAPFloat::divide(), llvm::ExecutionEngine::getConstantValue(), llvm::SelectionDAG::getNode(), operator/(), and llvm::InstCombiner::visitCallInst().
LLVM_DUMP_METHOD void llvm::APFloat::dump | ( | ) | const |
Definition at line 4498 of file APFloat.cpp.
References llvm::dbgs(), and print().
|
inline |
Definition at line 995 of file APFloat.h.
References assert(), getSemantics(), and llvm_unreachable.
Referenced by llvm::canConstantFoldCallTo(), llvm::detail::DoubleAPFloat::fusedMultiplyAdd(), llvm::SelectionDAG::getNode(), and llvm::detail::DoubleAPFloat::multiply().
Returns a float which is bitcasted from an all one value int.
BitWidth | - Select float type |
isIEEE | - If 128 bit number, select between PPC and IEEE |
Definition at line 4469 of file APFloat.cpp.
References assert(), llvm::APInt::getAllOnesValue(), and llvm_unreachable.
Referenced by llvm::Constant::getAllOnesValue().
|
inline |
Definition at line 1176 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS, Arg, and llvm::hash_value().
Referenced by llvm::detail::DoubleAPFloat::getExactInverse().
|
inlinestatic |
Factory for Positive and Negative Infinity.
Negative | True iff the number should be negative. |
Definition at line 864 of file APFloat.h.
References llvm::APFloatBase::uninitialized.
Referenced by llvm::ConstantFP::getInfinity(), and parseHexOcta().
|
inlinestatic |
Returns the largest finite number in the given semantics.
Negative | - True iff the number should be negative |
Definition at line 904 of file APFloat.h.
References llvm::APFloatBase::uninitialized.
Referenced by llvm::fuzzerop::makeConstantsWithType(), parseTexFail(), and llvm::InstCombiner::visitICmpInst().
|
inlinestatic |
Factory for NaN values.
Negative | - True iff the NaN generated should be negative. |
payload | - The unspecified fill bits for creating the NaN, 0 by default. The value is truncated as necessary. |
Definition at line 875 of file APFloat.h.
Referenced by llvm::ConstantFP::getNaN(), llvm::SelectionDAG::getNode(), and parseHexOcta().
|
inlinestatic |
Factory for QNaN values.
Definition at line 886 of file APFloat.h.
References llvm::APFloatBase::uninitialized.
Referenced by llvm::ConstantFP::getQNaN(), llvm::SITargetLowering::isCanonicalized(), toString(), and vectorEltWillFoldAway().
|
inline |
Definition at line 1155 of file APFloat.h.
Referenced by add(), bitwiseIsEqual(), llvm::FunctionComparator::cmpAPFloats(), compare(), convert(), divide(), llvm::frexp(), FunctionNumber(), fusedMultiplyAdd(), llvm::ConstantFP::get(), llvm::ConstantFP::getInfinity(), getMad64_32(), getParentPad(), getPow(), getSqrtCall(), llvm::hash_value(), llvm::SITargetLowering::isCanonicalized(), isContractable(), llvm::ConstantFP::isExactlyValue(), llvm::isMathLibCallNoop(), llvm::ConstantFP::isValueValidForType(), mod(), multiply(), llvm::AMDGPUTargetLowering::performRcpCombine(), remainder(), llvm::scalbn(), subtract(), toString(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitICmpInst(), and WriteConstantInternal().
|
inlinestatic |
Returns the smallest (by magnitude) finite number in the given semantics.
Might be denormalized, which implies a relative loss of precision.
Negative | - True iff the number should be negative |
Definition at line 914 of file APFloat.h.
References llvm::APFloatBase::uninitialized.
Referenced by llvm::fuzzerop::makeConstantsWithType().
|
inlinestatic |
Returns the smallest (by magnitude) normalized finite number in the given semantics.
Negative | - True iff the number should be negative |
Definition at line 924 of file APFloat.h.
References llvm::APFloatBase::uninitialized.
Referenced by INITIALIZE_PASS(), replaceShuffleOfInsert(), and llvm::InstCombiner::visitFCmpInst().
|
inlinestatic |
Factory for SNaN values.
Definition at line 894 of file APFloat.h.
References llvm::APFloatBase::uninitialized.
Referenced by llvm::ConstantFP::getSNaN().
|
inlinestatic |
Factory for Positive and Negative Zero.
Negative | True iff the number should be negative. |
Definition at line 855 of file APFloat.h.
References llvm::APFloatBase::uninitialized.
Referenced by llvm::ExecutionEngine::getConstantValue(), getMad64_32(), llvm::ConstantFP::getNegativeZero(), llvm::Constant::getNullValue(), llvm::fuzzerop::makeConstantsWithType(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 1148 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS, and isDenormal().
Referenced by llvm::SITargetLowering::isCanonicalized(), isDenormal(), and llvm::InstCombiner::visitCallInst().
|
inline |
We don't rely on operator== working on double values, as it returns true for things that are clearly not equal, like -0.0 and 0.0.
As such, this method can be used to do an exact bit-for-bit comparison of two floating point values.
We leave the version with the double argument here because it's just so convenient to write "2.0" and the like. Without this function we'd have to duplicate its logic everywhere it's called.
Definition at line 1130 of file APFloat.h.
References convert(), and llvm::APFloatBase::rmNearestTiesToEven.
Referenced by CanCombineFCOPYSIGN_EXTEND_ROUND(), changeFCMPPredToAArch64CC(), getSqrtCall(), and llvm::ConstantFPSDNode::isExactlyValue().
|
inline |
Definition at line 1152 of file APFloat.h.
Referenced by mapBinOpcode(), matchFastFloatClamp(), llvm::detail::DoubleAPFloat::multiply(), and llvm::detail::DoubleAPFloat::operator=().
|
inline |
Definition at line 1157 of file APFloat.h.
References isZero().
Referenced by getParentPad(), and llvm::detail::DoubleAPFloat::multiply().
|
inline |
Definition at line 1144 of file APFloat.h.
References llvm::APFloatBase::fcInfinity.
Referenced by getMad64_32(), llvm::ConstantFP::isInfinity(), llvm::isMathLibCallNoop(), llvm::detail::DoubleAPFloat::operator=(), simplifyBinaryIntrinsic(), SimplifyFCmpInst(), llvm::InstCombiner::visitCallInst(), and WriteConstantInternal().
|
inline |
Definition at line 1162 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS, and isInteger().
Referenced by getPow(), getSqrtCall(), and isInteger().
|
inline |
Definition at line 1161 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS, and isLargest().
Referenced by isLargest().
|
inline |
Definition at line 1145 of file APFloat.h.
References llvm::APFloatBase::fcNaN.
Referenced by llvm::SITargetLowering::isCanonicalized(), llvm::isMathLibCallNoop(), llvm::ConstantFP::isNaN(), llvm::PatternMatch::is_nan::isValue(), llvm::maximum(), llvm::maxnum(), llvm::minimum(), llvm::minnum(), SimplifyFCmpInst(), toString(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitICmpInst(), and WriteConstantInternal().
|
inline |
Definition at line 1147 of file APFloat.h.
Referenced by CanCombineFCOPYSIGN_EXTEND_ROUND(), copySign(), foldFCmpReciprocalAndZero(), getMad64_32(), getParentPad(), getSqrtCall(), llvm::isMathLibCallNoop(), llvm::ConstantFP::isNegative(), mapBinOpcode(), llvm::maximum(), llvm::minimum(), simplifyBinaryIntrinsic(), SimplifyFCmpInst(), llvm::InstCombiner::visitCallInst(), and llvm::InstCombiner::visitICmpInst().
|
inline |
Definition at line 1159 of file APFloat.h.
References isZero().
Referenced by llvm::MipsTargetLowering::getTypeForExtReturn(), llvm::SystemZTargetLowering::isFPImmLegal(), and llvm::PatternMatch::is_neg_zero_fp::isValue().
|
inline |
Definition at line 1156 of file APFloat.h.
References isZero().
Referenced by simplifySelectWithFCmp().
|
inline |
Definition at line 1151 of file APFloat.h.
Referenced by factorizeFAddFSub(), and llvm::InstCombiner::visitCallInst().
|
inline |
Definition at line 1158 of file APFloat.h.
References isZero().
Referenced by llvm::AArch64TargetLowering::isFPImmLegal(), llvm::PPCTargetLowering::isFPImmLegal(), llvm::PatternMatch::is_pos_zero_fp::isValue(), and matchSVEPredicateVectorRegName().
|
inline |
Definition at line 1149 of file APFloat.h.
Referenced by llvm::SITargetLowering::isCanonicalized(), and llvm::InstCombiner::visitCallInst().
|
inline |
Definition at line 1160 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS, and isSmallest().
Referenced by isSmallest().
|
inline |
Definition at line 1143 of file APFloat.h.
References llvm::APFloatBase::fcZero.
Referenced by foldFCmpReciprocalAndZero(), llvm::MipsTargetLowering::getTypeForExtReturn(), llvm::SystemZTargetLowering::isFPImmLegal(), llvm::isMathLibCallNoop(), llvm::PatternMatch::is_any_zero_fp::isValue(), llvm::ConstantFP::isZero(), mapBinOpcode(), llvm::maximum(), llvm::minimum(), SimplifyFCmpInst(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitFCmpInst(), and llvm::InstCombiner::visitICmpInst().
Definition at line 986 of file APFloat.h.
References assert(), getSemantics(), and llvm_unreachable.
Referenced by llvm::ConstantFoldBinaryInstruction(), llvm::ExecutionEngine::getConstantValue(), llvm::SelectionDAG::getNode(), and llvm::detail::DoubleAPFloat::mod().
|
inline |
Definition at line 959 of file APFloat.h.
References assert(), getSemantics(), and llvm_unreachable.
Referenced by llvm::ConstantFoldBinaryInstruction(), llvm::ExecutionEngine::getConstantValue(), llvm::SelectionDAG::getNode(), llvm::detail::DoubleAPFloat::multiply(), and operator*().
|
inline |
Definition at line 850 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS, and needsCleanup().
Referenced by needsCleanup().
Definition at line 1014 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS.
Referenced by llvm::detail::DoubleAPFloat::next().
Multiply two APFloats, rounding ties to the nearest even.
No error checking.
Definition at line 1036 of file APFloat.h.
References multiply(), and llvm::APFloatBase::rmNearestTiesToEven.
Add two APFloats, rounding ties to the nearest even.
No error checking.
Definition at line 1020 of file APFloat.h.
References add(), and llvm::APFloatBase::rmNearestTiesToEven.
Subtract two APFloats, rounding ties to the nearest even.
No error checking.
Definition at line 1028 of file APFloat.h.
References llvm::APFloatBase::rmNearestTiesToEven, and subtract().
Divide the first APFloat by the second, rounding ties to the nearest even.
No error checking.
Definition at line 1044 of file APFloat.h.
References divide(), and llvm::APFloatBase::rmNearestTiesToEven.
void llvm::APFloat::print | ( | raw_ostream & | OS | ) | const |
void llvm::APFloat::Profile | ( | FoldingSetNodeID & | NID | ) | const |
Used to insert APFloat objects, or objects that contain APFloat objects, into FoldingSets.
Definition at line 4501 of file APFloat.cpp.
References llvm::FoldingSetNodeID::Add(), and bitcastToAPInt().
Definition at line 977 of file APFloat.h.
References assert(), getSemantics(), and llvm_unreachable.
Referenced by llvm::detail::DoubleAPFloat::remainder().
|
inline |
Definition at line 1008 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS.
Referenced by llvm::canConstantFoldCallTo(), llvm::SelectionDAG::getNode(), mapBinOpcode(), llvm::detail::DoubleAPFloat::roundToIntegral(), and llvm::InstCombiner::visitICmpInst().
|
inline |
Definition at line 950 of file APFloat.h.
References assert(), getSemantics(), and llvm_unreachable.
Referenced by llvm::ConstantFoldBinaryInstruction(), llvm::ExecutionEngine::getConstantValue(), llvm::SelectionDAG::getNode(), llvm::detail::DoubleAPFloat::multiply(), operator-(), and llvm::detail::DoubleAPFloat::operator=().
|
inline |
Definition at line 1167 of file APFloat.h.
References APFLOAT_DISPATCH_ON_SEMANTICS, llvm::dump(), print(), and llvm::toString().
Referenced by emitGlobalConstantFP(), llvm::AArch64TargetLowering::isFPImmLegal(), print(), printConstant(), toStringAPFloat(), and WriteConstantInternal().
|
friend |
See friend declarations above.
These additional declarations are required in order to compile LLVM with IBM xlC compiler.
Definition at line 4431 of file APFloat.cpp.
|
friend |
friend llvm::APFloat::DoubleAPFloat |
friend llvm::APFloat::IEEEFloat |