clang 20.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
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 795 of file LangOptions.h.

Member Typedef Documentation

◆ RoundingMode

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

Definition at line 800 of file LangOptions.h.

◆ storage_type

Definition at line 798 of file LangOptions.h.

Constructor & Destructor Documentation

◆ FPOptions() [1/2]

clang::FPOptions::FPOptions ( )
inline

◆ FPOptions() [2/2]

clang::FPOptions::FPOptions ( const LangOptions LO)
inlineexplicit

Member Function Documentation

◆ allowFPContractAcrossStatement()

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

Definition at line 868 of file LangOptions.h.

References clang::LangOptionsBase::FPM_Fast.

◆ allowFPContractWithinStatement()

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

◆ applyChanges()

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

◆ defaultWithoutTrailingStorage()

FPOptions FPOptions::defaultWithoutTrailingStorage ( const LangOptions LO)
static

◆ dump()

LLVM_DUMP_METHOD void FPOptions::dump ( )

Definition at line 227 of file LangOptions.cpp.

◆ getAsOpaqueInt()

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

Definition at line 910 of file LangOptions.h.

◆ getChangesFrom()

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

Return difference with the given option set.

Definition at line 1054 of file LangOptions.h.

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

◆ getExceptionMode()

LangOptions::FPExceptionModeKind clang::FPOptions::getExceptionMode ( ) const
inline

◆ getFromOpaqueInt()

static FPOptions clang::FPOptions::getFromOpaqueInt ( storage_type  Value)
inlinestatic

◆ getRoundingMode()

RoundingMode clang::FPOptions::getRoundingMode ( ) const
inline

◆ isFPConstrained()

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

◆ operator==()

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

Definition at line 904 of file LangOptions.h.

◆ setAllowFPContractAcrossStatement()

void clang::FPOptions::setAllowFPContractAcrossStatement ( )
inline

Definition at line 871 of file LangOptions.h.

References clang::LangOptionsBase::FPM_Fast.

◆ setAllowFPContractWithinStatement()

void clang::FPOptions::setAllowFPContractWithinStatement ( )
inline

Definition at line 864 of file LangOptions.h.

References clang::LangOptionsBase::FPM_On.

Member Data Documentation

◆ FirstShift

constexpr storage_type clang::FPOptions::FirstShift = 0
staticconstexpr

Definition at line 806 of file LangOptions.h.

◆ FirstWidth

constexpr storage_type clang::FPOptions::FirstWidth = 0
static

Definition at line 806 of file LangOptions.h.

◆ StorageBitSize

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

◆ TotalWidth

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

Definition at line 815 of file LangOptions.h.


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