clang 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::interp::Floating Class Referencefinal

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/ByteCode/Floating.h"

Public Member Functions

 Floating ()
 Zero-initializes a Floating.
 
 Floating (const APFloat &F)
 
const APFloatgetAPFloat () const
 
bool operator< (Floating RHS) const
 
bool operator> (Floating RHS) const
 
bool operator<= (Floating RHS) const
 
bool operator>= (Floating RHS) const
 
bool operator== (Floating RHS) const
 
bool operator!= (Floating RHS) const
 
Floating operator- () const
 
APFloat::opStatus convertToInteger (APSInt &Result) const
 
Floating toSemantics (const llvm::fltSemantics *Sem, llvm::RoundingMode RM) const
 
Floating toSemantics (const Floating &Other, llvm::RoundingMode RM) const
 Convert this Floating to one with the same semantics as \Other.
 
APSInt toAPSInt (unsigned NumBits=0) const
 
APValue toAPValue (const ASTContext &) const
 
void print (llvm::raw_ostream &OS) const
 
std::string toDiagnosticString (const ASTContext &Ctx) const
 
unsigned bitWidth () const
 
bool isSigned () const
 
bool isNegative () const
 
bool isPositive () const
 
bool isZero () const
 
bool isNonZero () const
 
bool isMin () const
 
bool isMinusOne () const
 
bool isNan () const
 
bool isSignaling () const
 
bool isInf () const
 
bool isFinite () const
 
bool isNormal () const
 
bool isDenormal () const
 
llvm::FPClassTest classify () const
 
APFloat::fltCategory getCategory () const
 
ComparisonCategoryResult compare (const Floating &RHS) const
 
void bitcastToMemory (std::byte *Buff) const
 
size_t bytesToSerialize () const
 
void serialize (std::byte *Buff) const
 

Static Public Member Functions

static Floating getInf (const llvm::fltSemantics &Sem)
 
static APFloat::opStatus fromIntegral (APSInt Val, const llvm::fltSemantics &Sem, llvm::RoundingMode RM, Floating &Result)
 
static Floating bitcastFromMemory (const std::byte *Buff, const llvm::fltSemantics &Sem)
 
static Floating deserialize (const std::byte *Buff)
 
static Floating abs (const Floating &F)
 
static APFloat::opStatus add (const Floating &A, const Floating &B, llvm::RoundingMode RM, Floating *R)
 
static APFloat::opStatus increment (const Floating &A, llvm::RoundingMode RM, Floating *R)
 
static APFloat::opStatus sub (const Floating &A, const Floating &B, llvm::RoundingMode RM, Floating *R)
 
static APFloat::opStatus decrement (const Floating &A, llvm::RoundingMode RM, Floating *R)
 
static APFloat::opStatus mul (const Floating &A, const Floating &B, llvm::RoundingMode RM, Floating *R)
 
static APFloat::opStatus div (const Floating &A, const Floating &B, llvm::RoundingMode RM, Floating *R)
 
static bool neg (const Floating &A, Floating *R)
 

Detailed Description

Definition at line 26 of file Floating.h.

Constructor & Destructor Documentation

◆ Floating() [1/2]

clang::interp::Floating::Floating ( )
inline

Zero-initializes a Floating.

Definition at line 33 of file Floating.h.

Referenced by abs(), add(), bitcastFromMemory(), decrement(), div(), fromIntegral(), getInf(), increment(), mul(), operator-(), sub(), and toSemantics().

◆ Floating() [2/2]

clang::interp::Floating::Floating ( const APFloat F)
inline

Definition at line 34 of file Floating.h.

Member Function Documentation

◆ abs()

static Floating clang::interp::Floating::abs ( const Floating F)
inlinestatic

Definition at line 164 of file Floating.h.

References Floating(), and V.

Referenced by clang::interp::interp__builtin_fabs().

◆ add()

static APFloat::opStatus clang::interp::Floating::add ( const Floating A,
const Floating B,
llvm::RoundingMode  RM,
Floating R 
)
inlinestatic

Definition at line 173 of file Floating.h.

References Floating().

Referenced by clang::interp::Addf().

◆ bitcastFromMemory()

static Floating clang::interp::Floating::bitcastFromMemory ( const std::byte *  Buff,
const llvm::fltSemantics &  Sem 
)
inlinestatic

Definition at line 129 of file Floating.h.

References Floating().

Referenced by deserialize().

◆ bitcastToMemory()

void clang::interp::Floating::bitcastToMemory ( std::byte *  Buff) const
inline

Definition at line 138 of file Floating.h.

References bitWidth().

Referenced by clang::interp::readPointerToBuffer().

◆ bitWidth()

unsigned clang::interp::Floating::bitWidth ( ) const
inline

Definition at line 86 of file Floating.h.

Referenced by bitcastToMemory(), and serialize().

◆ bytesToSerialize()

size_t clang::interp::Floating::bytesToSerialize ( ) const
inline

Definition at line 144 of file Floating.h.

Referenced by clang::interp::ReadArg< Floating >(), and ReadArg< Floating >().

◆ classify()

llvm::FPClassTest clang::interp::Floating::classify ( ) const
inline

Definition at line 101 of file Floating.h.

Referenced by clang::interp::interp__builtin_isfpclass().

◆ compare()

ComparisonCategoryResult clang::interp::Floating::compare ( const Floating RHS) const
inline

◆ convertToInteger()

APFloat::opStatus clang::interp::Floating::convertToInteger ( APSInt Result) const
inline

◆ decrement()

static APFloat::opStatus clang::interp::Floating::decrement ( const Floating A,
llvm::RoundingMode  RM,
Floating R 
)
inlinestatic

Definition at line 192 of file Floating.h.

References Floating().

Referenced by clang::interp::IncDecFloatHelper().

◆ deserialize()

static Floating clang::interp::Floating::deserialize ( const std::byte *  Buff)
inlinestatic

Definition at line 158 of file Floating.h.

References bitcastFromMemory().

Referenced by clang::interp::ReadArg< Floating >(), and ReadArg< Floating >().

◆ div()

static APFloat::opStatus clang::interp::Floating::div ( const Floating A,
const Floating B,
llvm::RoundingMode  RM,
Floating R 
)
inlinestatic

Definition at line 205 of file Floating.h.

References Floating().

Referenced by clang::interp::Divf().

◆ fromIntegral()

static APFloat::opStatus clang::interp::Floating::fromIntegral ( APSInt  Val,
const llvm::fltSemantics &  Sem,
llvm::RoundingMode  RM,
Floating Result 
)
inlinestatic

Definition at line 119 of file Floating.h.

References Floating(), and clang::Result.

Referenced by clang::interp::CastIntegralFloating().

◆ getAPFloat()

const APFloat & clang::interp::Floating::getAPFloat ( ) const
inline

◆ getCategory()

APFloat::fltCategory clang::interp::Floating::getCategory ( ) const
inline

Definition at line 102 of file Floating.h.

Referenced by clang::interp::interp__builtin_fpclassify().

◆ getInf()

static Floating clang::interp::Floating::getInf ( const llvm::fltSemantics &  Sem)
inlinestatic

Definition at line 37 of file Floating.h.

References Floating().

Referenced by clang::interp::interp__builtin_inf().

◆ increment()

static APFloat::opStatus clang::interp::Floating::increment ( const Floating A,
llvm::RoundingMode  RM,
Floating R 
)
inlinestatic

Definition at line 179 of file Floating.h.

References Floating().

Referenced by clang::interp::IncDecFloatHelper().

◆ isDenormal()

bool clang::interp::Floating::isDenormal ( ) const
inline

◆ isFinite()

bool clang::interp::Floating::isFinite ( ) const
inline

◆ isInf()

bool clang::interp::Floating::isInf ( ) const
inline

Definition at line 97 of file Floating.h.

Referenced by clang::interp::interp__builtin_isinf().

◆ isMin()

bool clang::interp::Floating::isMin ( ) const
inline

Definition at line 93 of file Floating.h.

◆ isMinusOne()

bool clang::interp::Floating::isMinusOne ( ) const
inline

Definition at line 94 of file Floating.h.

◆ isNan()

bool clang::interp::Floating::isNan ( ) const
inline

◆ isNegative()

bool clang::interp::Floating::isNegative ( ) const
inline

◆ isNonZero()

bool clang::interp::Floating::isNonZero ( ) const
inline

Definition at line 92 of file Floating.h.

Referenced by clang::interp::CastFloatingIntegral().

◆ isNormal()

bool clang::interp::Floating::isNormal ( ) const
inline

Definition at line 99 of file Floating.h.

Referenced by clang::interp::interp__builtin_isnormal().

◆ isPositive()

bool clang::interp::Floating::isPositive ( ) const
inline

Definition at line 90 of file Floating.h.

◆ isSignaling()

bool clang::interp::Floating::isSignaling ( ) const
inline

Definition at line 96 of file Floating.h.

Referenced by clang::interp::interp__builtin_issignaling().

◆ isSigned()

bool clang::interp::Floating::isSigned ( ) const
inline

Definition at line 88 of file Floating.h.

◆ isZero()

bool clang::interp::Floating::isZero ( ) const
inline

◆ mul()

static APFloat::opStatus clang::interp::Floating::mul ( const Floating A,
const Floating B,
llvm::RoundingMode  RM,
Floating R 
)
inlinestatic

Definition at line 199 of file Floating.h.

References Floating().

Referenced by clang::interp::Mulf().

◆ neg()

static bool clang::interp::Floating::neg ( const Floating A,
Floating R 
)
inlinestatic

Definition at line 211 of file Floating.h.

◆ operator!=()

bool clang::interp::Floating::operator!= ( Floating  RHS) const
inline

Definition at line 47 of file Floating.h.

◆ operator-()

Floating clang::interp::Floating::operator- ( ) const
inline

Definition at line 48 of file Floating.h.

References Floating().

◆ operator<()

bool clang::interp::Floating::operator< ( Floating  RHS) const
inline

Definition at line 42 of file Floating.h.

◆ operator<=()

bool clang::interp::Floating::operator<= ( Floating  RHS) const
inline

Definition at line 44 of file Floating.h.

◆ operator==()

bool clang::interp::Floating::operator== ( Floating  RHS) const
inline

Definition at line 46 of file Floating.h.

◆ operator>()

bool clang::interp::Floating::operator> ( Floating  RHS) const
inline

Definition at line 43 of file Floating.h.

◆ operator>=()

bool clang::interp::Floating::operator>= ( Floating  RHS) const
inline

Definition at line 45 of file Floating.h.

◆ print()

void clang::interp::Floating::print ( llvm::raw_ostream &  OS) const
inline

Definition at line 73 of file Floating.h.

Referenced by clang::interp::operator<<(), and toDiagnosticString().

◆ serialize()

void clang::interp::Floating::serialize ( std::byte *  Buff) const
inline

Definition at line 149 of file Floating.h.

References bitWidth().

◆ sub()

static APFloat::opStatus clang::interp::Floating::sub ( const Floating A,
const Floating B,
llvm::RoundingMode  RM,
Floating R 
)
inlinestatic

Definition at line 186 of file Floating.h.

References Floating().

Referenced by clang::interp::Subf().

◆ toAPSInt()

APSInt clang::interp::Floating::toAPSInt ( unsigned  NumBits = 0) const
inline

Definition at line 69 of file Floating.h.

◆ toAPValue()

APValue clang::interp::Floating::toAPValue ( const ASTContext ) const
inline

Definition at line 72 of file Floating.h.

◆ toDiagnosticString()

std::string clang::interp::Floating::toDiagnosticString ( const ASTContext Ctx) const
inline

Definition at line 79 of file Floating.h.

References print().

◆ toSemantics() [1/2]

Floating clang::interp::Floating::toSemantics ( const Floating Other,
llvm::RoundingMode  RM 
) const
inline

Convert this Floating to one with the same semantics as \Other.

Definition at line 65 of file Floating.h.

References clang::Other, and toSemantics().

◆ toSemantics() [2/2]

Floating clang::interp::Floating::toSemantics ( const llvm::fltSemantics *  Sem,
llvm::RoundingMode  RM 
) const
inline

Definition at line 55 of file Floating.h.

References clang::Copy, and Floating().

Referenced by clang::interp::CastFP(), and toSemantics().


The documentation for this class was generated from the following file: