|
LLVM 24.0.0git
|
Interface for fltSemantics callbacks to access the internal data of APFloat/IEEEFloat. More...
#include "llvm/ADT/APFloat.h"
Public Member Functions | |
| LLVM_ABI void | initialize (const fltSemantics &Sem) |
| Set the semantics and allocate storage for the significand. | |
| LLVM_ABI const fltSemantics & | getSemantics () const |
| LLVM_ABI APFloatBase::fltCategory | getCategory () const |
| LLVM_ABI void | setCategory (APFloatBase::fltCategory Category) |
| Exponent and significand are only meaningful for fcNormal and fcNaN. | |
| LLVM_ABI bool | isNegative () const |
| LLVM_ABI void | setNegative (bool Negative) |
| LLVM_ABI APFloatBase::ExponentType | getExponent () const |
| LLVM_ABI void | setExponent (APFloatBase::ExponentType Exponent) |
| LLVM_ABI APInt | getSignificand () const |
| LLVM_ABI void | setSignificand (const APInt &Significand) |
| The significand is precision bits wide and includes the integer bit. | |
Friends | |
| class | detail::IEEEFloat |
Interface for fltSemantics callbacks to access the internal data of APFloat/IEEEFloat.
Used to let user provided callback functions in fltSemantics access the internals of APFloat without making them public and to hide the concrete class used in APFloat
| APFloatBase::fltCategory llvm::FloatRepr::getCategory | ( | ) | const |
Definition at line 5957 of file APFloat.cpp.
| APFloatBase::ExponentType llvm::FloatRepr::getExponent | ( | ) | const |
Definition at line 5963 of file APFloat.cpp.
| const fltSemantics & llvm::FloatRepr::getSemantics | ( | ) | const |
Definition at line 5955 of file APFloat.cpp.
| APInt llvm::FloatRepr::getSignificand | ( | ) | const |
Definition at line 5967 of file APFloat.cpp.
| void llvm::FloatRepr::initialize | ( | const fltSemantics & | Sem | ) |
Set the semantics and allocate storage for the significand.
Must be called exactly once before any setter when initializing from bits.
Definition at line 5953 of file APFloat.cpp.
| bool llvm::FloatRepr::isNegative | ( | ) | const |
Definition at line 5961 of file APFloat.cpp.
| void llvm::FloatRepr::setCategory | ( | APFloatBase::fltCategory | Category | ) |
Exponent and significand are only meaningful for fcNormal and fcNaN.
Definition at line 5972 of file APFloat.cpp.
| void llvm::FloatRepr::setExponent | ( | APFloatBase::ExponentType | Exponent | ) |
Definition at line 5982 of file APFloat.cpp.
References llvm::Exponent.
| void llvm::FloatRepr::setNegative | ( | bool | Negative | ) |
Definition at line 5976 of file APFloat.cpp.
References assert().
The significand is precision bits wide and includes the integer bit.
Definition at line 5986 of file APFloat.cpp.
References assert(), llvm::APInt::getBitWidth(), llvm::APInt::getNumWords(), llvm::APInt::getRawData(), and llvm::APInt::tcSet().
|
friend |