LLVM  5.0.0
Classes | Namespaces | Macros | Enumerations | Functions
APFloat.h File Reference

This file declares a class to represent arbitrary precision floating point values and provide a variety of arithmetic operations on them. More...

#include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/ErrorHandling.h"
#include <memory>
Include dependency graph for APFloat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::SmallVectorImpl< T >
 This class consists of common code factored out of the SmallVector class to reduce code duplication based on the SmallVector 'N' template parameter. More...
 
struct  llvm::APFloatBase
 A self-contained host- and target-independent arbitrary-precision floating-point software implementation. More...
 
class  llvm::detail::IEEEFloat
 
class  llvm::detail::DoubleAPFloat
 
class  llvm::APFloat
 

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 
 llvm::detail
 Implementation details of the pass manager interfaces.
 

Macros

#define APFLOAT_DISPATCH_ON_SEMANTICS(METHOD_CALL)
 

Enumerations

enum  llvm::lostFraction { llvm::lfExactlyZero, llvm::lfLessThanHalf, llvm::lfExactlyHalf, llvm::lfMoreThanHalf }
 Enum that represents what fraction of the LSB truncated bits of an fp number represent. More...
 

Functions

hash_code llvm::detail::hash_value (const IEEEFloat &Arg)
 
int llvm::detail::ilogb (const IEEEFloat &Arg)
 
IEEEFloat llvm::detail::scalbn (IEEEFloat X, int Exp, IEEEFloat::roundingMode)
 
IEEEFloat llvm::detail::frexp (const IEEEFloat &Val, int &Exp, IEEEFloat::roundingMode RM)
 
hash_code llvm::detail::hash_value (const DoubleAPFloat &Arg)
 
hash_code llvm::hash_value (const APFloat &Arg)
 See friend declarations above. More...
 
APFloat llvm::scalbn (APFloat X, int Exp, APFloat::roundingMode RM)
 
APFloat llvm::frexp (const APFloat &X, int &Exp, APFloat::roundingMode RM)
 Equivalent of C standard library function. More...
 
APFloat llvm::abs (APFloat X)
 Returns the absolute value of the argument. More...
 
APFloat llvm::neg (APFloat X)
 Returns the negated value of the argument. More...
 
LLVM_READONLY APFloat llvm::minnum (const APFloat &A, const APFloat &B)
 Implements IEEE minNum semantics. More...
 
LLVM_READONLY APFloat llvm::maxnum (const APFloat &A, const APFloat &B)
 Implements IEEE maxNum semantics. More...
 

Detailed Description

This file declares a class to represent arbitrary precision floating point values and provide a variety of arithmetic operations on them.

Definition in file APFloat.h.

Macro Definition Documentation

#define APFLOAT_DISPATCH_ON_SEMANTICS (   METHOD_CALL)
Value:
do { \
if (usesLayout<IEEEFloat>(getSemantics())) \
return U.IEEE.METHOD_CALL; \
if (usesLayout<DoubleAPFloat>(getSemantics())) \
return U.Double.METHOD_CALL; \
llvm_unreachable("Unexpected semantics"); \
} while (false)
* if(!EatIfPresent(lltok::kw_thread_local)) return false
ParseOptionalThreadLocal := /*empty.
llvm_unreachable("Unknown RegBank!")

Definition at line 25 of file APFloat.h.

Referenced by llvm::APFloat::bitcastToAPInt(), llvm::APFloat::changeSign(), llvm::APFloat::convertFromAPInt(), llvm::APFloat::convertFromSignExtendedInteger(), llvm::APFloat::convertFromZeroExtendedInteger(), llvm::APFloat::convertToHexString(), llvm::APFloat::convertToInteger(), llvm::APFloat::getExactInverse(), llvm::APFloat::isDenormal(), llvm::APFloat::isInteger(), llvm::APFloat::isLargest(), llvm::APFloat::isSmallest(), llvm::APFloat::needsCleanup(), llvm::APFloat::next(), llvm::APFloat::roundToIntegral(), and llvm::APFloat::toString().