clang 22.0.0git
clang::FPOptions Class Reference

#include "clang/Basic/LangOptions.h"

Public Types

using storage_type = uint32_t
using RoundingMode = llvm::RoundingMode

Public Member Functions

 FPOptions ()
 FPOptions (const LangOptions &LO)
bool allowFPContractWithinStatement () const
void setAllowFPContractWithinStatement ()
bool allowFPContractAcrossStatement () const
void setAllowFPContractAcrossStatement ()
bool isFPConstrained () const
RoundingMode getRoundingMode () const
LangOptions::FPExceptionModeKind getExceptionMode () const
bool operator== (FPOptions other) const
storage_type getAsOpaqueInt () const
FPOptionsOverride getChangesFrom (const FPOptions &Base) const
 Return difference with the given option set.
void applyChanges (FPOptionsOverride FPO)
LLVM_DUMP_METHOD void dump ()

Static Public Member Functions

static FPOptions defaultWithoutTrailingStorage (const LangOptions &LO)
 Return the default value of FPOptions that's used when trailing storage isn't required.
static FPOptions getFromOpaqueInt (storage_type Value)

Static Public Attributes

static constexpr unsigned StorageBitSize = 8 * sizeof(storage_type)
static constexpr storage_type FirstShift = 0
static constexpr storage_type FirstWidth = 0
static constexpr storage_type TotalWidth

Detailed Description

Definition at line 764 of file LangOptions.h.

Member Typedef Documentation

◆ RoundingMode

using clang::FPOptions::RoundingMode = llvm::RoundingMode

Definition at line 769 of file LangOptions.h.

◆ storage_type

Definition at line 767 of file LangOptions.h.

Constructor & Destructor Documentation

◆ FPOptions() [1/2]

clang::FPOptions::FPOptions ( )
inline

◆ FPOptions() [2/2]

Member Function Documentation

◆ allowFPContractAcrossStatement()

bool clang::FPOptions::allowFPContractAcrossStatement ( ) const
inline

◆ allowFPContractWithinStatement()

◆ applyChanges()

void clang::FPOptions::applyChanges ( FPOptionsOverride FPO)
inline

Definition at line 1032 of file LangOptions.h.

References clang::FPOptionsOverride::applyOverrides().

◆ defaultWithoutTrailingStorage()

FPOptions FPOptions::defaultWithoutTrailingStorage ( const LangOptions & LO)
static

◆ dump()

LLVM_DUMP_METHOD void FPOptions::dump ( )

Definition at line 232 of file LangOptions.cpp.

◆ getAsOpaqueInt()

storage_type clang::FPOptions::getAsOpaqueInt ( ) const
inline

Definition at line 879 of file LangOptions.h.

◆ getChangesFrom()

FPOptionsOverride clang::FPOptions::getChangesFrom ( const FPOptions & Base) const
inline

Return difference with the given option set.

Definition at line 1026 of file LangOptions.h.

References FPOptions().

Referenced by clang::Sema::ActOnCompoundStmt(), and clang::Sema::resetFPOptions().

◆ getExceptionMode()

◆ getFromOpaqueInt()

◆ getRoundingMode()

◆ isFPConstrained()

◆ operator==()

bool clang::FPOptions::operator== ( FPOptions other) const
inline

Definition at line 873 of file LangOptions.h.

References FPOptions().

◆ setAllowFPContractAcrossStatement()

void clang::FPOptions::setAllowFPContractAcrossStatement ( )
inline

Definition at line 840 of file LangOptions.h.

References clang::LangOptionsBase::FPM_Fast.

◆ setAllowFPContractWithinStatement()

void clang::FPOptions::setAllowFPContractWithinStatement ( )
inline

Definition at line 833 of file LangOptions.h.

References clang::LangOptionsBase::FPM_On.

Member Data Documentation

◆ FirstShift

storage_type clang::FPOptions::FirstShift = 0
staticconstexpr

Definition at line 775 of file LangOptions.h.

◆ FirstWidth

storage_type clang::FPOptions::FirstWidth = 0
static

Definition at line 775 of file LangOptions.h.

◆ StorageBitSize

unsigned clang::FPOptions::StorageBitSize = 8 * sizeof(storage_type)
staticconstexpr

◆ TotalWidth

storage_type clang::FPOptions::TotalWidth
staticconstexpr
Initial value:
= 0
#define FP_OPTION(NAME, TYPE, WIDTH, PREVIOUS)

Definition at line 784 of file LangOptions.h.


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