clang 22.0.0git
|
Wrapper around fixed point types. More...
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/ByteCode/FixedPoint.h"
Public Member Functions | |
FixedPoint (llvm::APFixedPoint &&V) | |
FixedPoint (llvm::APFixedPoint &V) | |
FixedPoint (APInt V, llvm::FixedPointSemantics Sem) | |
FixedPoint () | |
operator bool () const | |
void | print (llvm::raw_ostream &OS) const |
APValue | toAPValue (const ASTContext &) const |
APSInt | toAPSInt (unsigned BitWidth=0) const |
unsigned | bitWidth () const |
bool | isSigned () const |
bool | isZero () const |
bool | isNegative () const |
bool | isPositive () const |
bool | isMin () const |
bool | isMinusOne () const |
FixedPoint | truncate (unsigned BitWidth) const |
FixedPoint | toSemantics (const llvm::FixedPointSemantics &Sem, bool *Overflow) const |
llvm::FixedPointSemantics | getSemantics () const |
llvm::APFloat | toFloat (const llvm::fltSemantics *Sem) const |
llvm::APSInt | toInt (unsigned BitWidth, bool Signed, bool *Overflow) const |
std::string | toDiagnosticString (const ASTContext &Ctx) const |
ComparisonCategoryResult | compare (const FixedPoint &Other) const |
size_t | bytesToSerialize () const |
void | serialize (std::byte *Buff) const |
Static Public Member Functions | |
static FixedPoint | zero (llvm::FixedPointSemantics Sem) |
static FixedPoint | from (const APSInt &I, llvm::FixedPointSemantics Sem, bool *Overflow) |
static FixedPoint | from (const llvm::APFloat &I, llvm::FixedPointSemantics Sem, bool *Overflow) |
static FixedPoint | deserialize (const std::byte *Buff) |
static bool | neg (const FixedPoint &A, FixedPoint *R) |
static bool | add (const FixedPoint A, const FixedPoint B, unsigned Bits, FixedPoint *R) |
static bool | sub (const FixedPoint A, const FixedPoint B, unsigned Bits, FixedPoint *R) |
static bool | mul (const FixedPoint A, const FixedPoint B, unsigned Bits, FixedPoint *R) |
static bool | div (const FixedPoint A, const FixedPoint B, unsigned Bits, FixedPoint *R) |
static bool | shiftLeft (const FixedPoint A, const FixedPoint B, unsigned OpBits, FixedPoint *R) |
static bool | shiftRight (const FixedPoint A, const FixedPoint B, unsigned OpBits, FixedPoint *R) |
static bool | rem (const FixedPoint A, const FixedPoint B, unsigned Bits, FixedPoint *R) |
static bool | bitAnd (const FixedPoint A, const FixedPoint B, unsigned Bits, FixedPoint *R) |
static bool | bitOr (const FixedPoint A, const FixedPoint B, unsigned Bits, FixedPoint *R) |
static bool | bitXor (const FixedPoint A, const FixedPoint B, unsigned Bits, FixedPoint *R) |
static bool | increment (const FixedPoint &A, FixedPoint *R) |
static bool | decrement (const FixedPoint &A, FixedPoint *R) |
Wrapper around fixed point types.
Definition at line 23 of file FixedPoint.h.
|
inline |
Definition at line 28 of file FixedPoint.h.
Referenced by add(), bitAnd(), bitOr(), bitXor(), compare(), decrement(), deserialize(), div(), from(), from(), increment(), mul(), neg(), rem(), shiftLeft(), shiftRight(), sub(), toSemantics(), truncate(), and zero().
|
inline |
Definition at line 29 of file FixedPoint.h.
|
inline |
Definition at line 30 of file FixedPoint.h.
|
inline |
Definition at line 32 of file FixedPoint.h.
References false.
Referenced by add(), deserialize(), div(), from(), from(), mul(), neg(), shiftLeft(), shiftRight(), sub(), toSemantics(), and zero().
|
inlinestatic |
Definition at line 126 of file FixedPoint.h.
References FixedPoint(), and FixedPoint().
|
inlinestatic |
Definition at line 171 of file FixedPoint.h.
References FixedPoint().
|
inlinestatic |
Definition at line 175 of file FixedPoint.h.
References FixedPoint().
|
inline |
Definition at line 55 of file FixedPoint.h.
Referenced by serialize().
|
inlinestatic |
Definition at line 179 of file FixedPoint.h.
References FixedPoint().
|
inline |
Definition at line 94 of file FixedPoint.h.
References CHAR_BIT.
Referenced by clang::interp::ReadArg< FixedPoint >().
|
inline |
Definition at line 85 of file FixedPoint.h.
References c, clang::Equal, FixedPoint(), clang::Greater, clang::Less, and clang::Other.
|
inlinestatic |
Definition at line 185 of file FixedPoint.h.
References FixedPoint().
|
inlinestatic |
Definition at line 108 of file FixedPoint.h.
References CHAR_BIT, FixedPoint(), and FixedPoint().
Referenced by printArg< FixedPoint >(), and clang::interp::ReadArg< FixedPoint >().
|
inlinestatic |
Definition at line 144 of file FixedPoint.h.
References FixedPoint(), and FixedPoint().
|
inlinestatic |
Definition at line 40 of file FixedPoint.h.
References FixedPoint(), and FixedPoint().
Referenced by clang::interp::CastFloatingFixedPoint(), and clang::interp::CastIntegralFixedPoint().
|
inlinestatic |
Definition at line 44 of file FixedPoint.h.
References FixedPoint(), and FixedPoint().
|
inline |
Definition at line 71 of file FixedPoint.h.
Referenced by clang::interp::ShiftFixedPoint().
|
inlinestatic |
Definition at line 184 of file FixedPoint.h.
References FixedPoint().
|
inline |
Definition at line 60 of file FixedPoint.h.
|
inline |
Definition at line 63 of file FixedPoint.h.
|
inline |
Definition at line 58 of file FixedPoint.h.
|
inline |
Definition at line 59 of file FixedPoint.h.
|
inline |
Definition at line 56 of file FixedPoint.h.
|
inline |
Definition at line 57 of file FixedPoint.h.
|
inlinestatic |
Definition at line 138 of file FixedPoint.h.
References FixedPoint(), and FixedPoint().
|
inlinestatic |
Definition at line 120 of file FixedPoint.h.
References FixedPoint(), and FixedPoint().
|
inline |
Definition at line 49 of file FixedPoint.h.
|
inline |
Definition at line 50 of file FixedPoint.h.
Referenced by clang::interp::operator<<().
|
inlinestatic |
Definition at line 166 of file FixedPoint.h.
References FixedPoint().
|
inline |
Definition at line 98 of file FixedPoint.h.
References bitWidth().
|
inlinestatic |
Definition at line 151 of file FixedPoint.h.
References FixedPoint(), and FixedPoint().
Referenced by clang::interp::ShiftFixedPoint().
|
inlinestatic |
Definition at line 158 of file FixedPoint.h.
References FixedPoint(), and FixedPoint().
Referenced by clang::interp::ShiftFixedPoint().
|
inlinestatic |
Definition at line 132 of file FixedPoint.h.
References FixedPoint(), and FixedPoint().
Definition at line 53 of file FixedPoint.h.
|
inline |
Definition at line 52 of file FixedPoint.h.
References clang::APValue.
|
inline |
Definition at line 81 of file FixedPoint.h.
Referenced by clang::interp::handleFixedPointOverflow().
|
inline |
Definition at line 73 of file FixedPoint.h.
|
inline |
Definition at line 77 of file FixedPoint.h.
References clang::Signed.
|
inline |
Definition at line 67 of file FixedPoint.h.
References FixedPoint(), and FixedPoint().
|
inline |
Definition at line 65 of file FixedPoint.h.
References FixedPoint().
|
inlinestatic |
Definition at line 36 of file FixedPoint.h.
References FixedPoint(), and FixedPoint().