clang  12.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"

Collaboration diagram for clang::FPOptions:
Collaboration graph
[legend]

Public Types

using storage_type = uint16_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
 
bool operator== (FPOptions other) const
 
storage_type getAsOpaqueInt () const
 
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. More...
 
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 387 of file LangOptions.h.

Member Typedef Documentation

◆ RoundingMode

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

Definition at line 392 of file LangOptions.h.

◆ storage_type

Definition at line 390 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

◆ allowFPContractWithinStatement()

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

◆ defaultWithoutTrailingStorage()

FPOptions FPOptions::defaultWithoutTrailingStorage ( const LangOptions LO)
static

◆ dump()

LLVM_DUMP_METHOD void FPOptions::dump ( )

Definition at line 56 of file LangOptions.cpp.

◆ getAsOpaqueInt()

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

Definition at line 475 of file LangOptions.h.

◆ getFromOpaqueInt()

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

◆ isFPConstrained()

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

Definition at line 463 of file LangOptions.h.

References clang::LangOptions::FPE_Ignore.

Referenced by HandleIntToFloatCast().

◆ operator==()

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

Definition at line 469 of file LangOptions.h.

◆ setAllowFPContractAcrossStatement()

void clang::FPOptions::setAllowFPContractAcrossStatement ( )
inline

Definition at line 459 of file LangOptions.h.

References clang::LangOptions::FPM_Fast.

◆ setAllowFPContractWithinStatement()

void clang::FPOptions::setAllowFPContractWithinStatement ( )
inline

Definition at line 452 of file LangOptions.h.

References clang::LangOptions::FPM_On.

Member Data Documentation

◆ FirstShift

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

Definition at line 398 of file LangOptions.h.

◆ FirstWidth

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

Definition at line 398 of file LangOptions.h.

◆ StorageBitSize

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

◆ TotalWidth

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

Definition at line 407 of file LangOptions.h.


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