clang 20.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 |
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 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.
References V.
|
inline |
Definition at line 29 of file FixedPoint.h.
References V.
|
inline |
Definition at line 30 of file FixedPoint.h.
References V.
|
inline |
Definition at line 32 of file FixedPoint.h.
References V.
Referenced by add(), div(), from(), mul(), neg(), shiftLeft(), shiftRight(), sub(), toSemantics(), and zero().
|
inlinestatic |
Definition at line 100 of file FixedPoint.h.
References FixedPoint().
|
inlinestatic |
Definition at line 145 of file FixedPoint.h.
|
inlinestatic |
Definition at line 149 of file FixedPoint.h.
|
inline |
Definition at line 55 of file FixedPoint.h.
References V.
|
inlinestatic |
Definition at line 153 of file FixedPoint.h.
|
inline |
Definition at line 85 of file FixedPoint.h.
References c, clang::Equal, clang::Greater, clang::Less, clang::Other, and V.
|
inlinestatic |
Definition at line 159 of file FixedPoint.h.
|
inlinestatic |
Definition at line 118 of file FixedPoint.h.
References FixedPoint().
|
inlinestatic |
Definition at line 40 of file FixedPoint.h.
References FixedPoint().
Referenced by clang::interp::CastFloatingFixedPoint(), and clang::interp::CastIntegralFixedPoint().
|
inlinestatic |
Definition at line 44 of file FixedPoint.h.
References FixedPoint().
|
inline |
Definition at line 71 of file FixedPoint.h.
References V.
Referenced by clang::interp::ShiftFixedPoint().
|
inlinestatic |
Definition at line 158 of file FixedPoint.h.
|
inline |
Definition at line 60 of file FixedPoint.h.
References V.
|
inline |
Definition at line 63 of file FixedPoint.h.
References V.
|
inline |
Definition at line 58 of file FixedPoint.h.
References V.
|
inline |
Definition at line 59 of file FixedPoint.h.
References V.
|
inline |
Definition at line 56 of file FixedPoint.h.
References V.
|
inline |
Definition at line 57 of file FixedPoint.h.
References V.
|
inlinestatic |
Definition at line 112 of file FixedPoint.h.
References FixedPoint().
|
inlinestatic |
Definition at line 94 of file FixedPoint.h.
References FixedPoint().
|
inline |
Definition at line 49 of file FixedPoint.h.
References V.
|
inline |
Definition at line 50 of file FixedPoint.h.
References V.
Referenced by clang::interp::operator<<().
|
inlinestatic |
Definition at line 140 of file FixedPoint.h.
|
inlinestatic |
Definition at line 125 of file FixedPoint.h.
References FixedPoint().
Referenced by clang::interp::ShiftFixedPoint().
|
inlinestatic |
Definition at line 132 of file FixedPoint.h.
References FixedPoint().
Referenced by clang::interp::ShiftFixedPoint().
|
inlinestatic |
Definition at line 106 of file FixedPoint.h.
References FixedPoint().
Definition at line 53 of file FixedPoint.h.
References V.
|
inline |
Definition at line 52 of file FixedPoint.h.
References V.
|
inline |
Definition at line 81 of file FixedPoint.h.
References V.
Referenced by clang::interp::handleFixedPointOverflow().
|
inline |
Definition at line 73 of file FixedPoint.h.
References V.
|
inline |
Definition at line 77 of file FixedPoint.h.
References clang::Signed, and V.
|
inline |
Definition at line 67 of file FixedPoint.h.
References FixedPoint(), and V.
|
inline |
Definition at line 65 of file FixedPoint.h.
|
inlinestatic |
Definition at line 36 of file FixedPoint.h.
References FixedPoint().