clang 18.0.0git
|
#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. | |
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 |
Definition at line 680 of file LangOptions.h.
using clang::FPOptions::RoundingMode = llvm::RoundingMode |
Definition at line 685 of file LangOptions.h.
using clang::FPOptions::storage_type = uint32_t |
Definition at line 683 of file LangOptions.h.
|
inline |
Definition at line 712 of file LangOptions.h.
References clang::LangOptions::FPE_Default, and clang::LangOptions::FPM_Off.
|
inlineexplicit |
Definition at line 717 of file LangOptions.h.
References clang::LangOptions::FPE_Strict, clang::LangOptions::FPM_Fast, clang::LangOptions::FPM_FastHonorPragmas, clang::LangOptions::FPM_Off, clang::LangOptions::FPM_On, getExceptionMode(), and getRoundingMode().
|
inline |
Definition at line 752 of file LangOptions.h.
References clang::LangOptions::FPM_Fast.
|
inline |
Definition at line 745 of file LangOptions.h.
References clang::LangOptions::FPM_On.
Referenced by clang::UnaryOperator::isFPContractableWithinStatement(), and clang::BinaryOperator::isFPContractableWithinStatement().
|
static |
Return the default value of FPOptions that's used when trailing storage isn't required.
Definition at line 211 of file LangOptions.cpp.
Referenced by clang::Expr::getFPFeaturesInEffect(), clang::UnaryOperator::getFPFeaturesInEffect(), clang::CallExpr::getFPFeaturesInEffect(), clang::CastExpr::getFPFeaturesInEffect(), and clang::BinaryOperator::getFPFeaturesInEffect().
LLVM_DUMP_METHOD void FPOptions::dump | ( | ) |
Definition at line 225 of file LangOptions.cpp.
|
inline |
Definition at line 794 of file LangOptions.h.
|
inline |
Return difference with the given option set.
Definition at line 934 of file LangOptions.h.
Referenced by clang::Sema::ActOnCompoundStmt(), and clang::Sema::resetFPOptions().
|
inline |
Definition at line 777 of file LangOptions.h.
References clang::LangOptions::FPE_Default, clang::LangOptions::FPE_Ignore, and clang::LangOptions::FPE_Strict.
Referenced by clang::Sema::ActOnPragmaFloatControl(), checkFloatingPointResult(), clang::interp::CheckFloatResult(), FPOptions(), and isFPConstrained().
|
inlinestatic |
Definition at line 795 of file LangOptions.h.
Referenced by clang::FPOptionsOverride::applyOverrides(), clang::FPOptionsOverride::getFromOpaqueInt(), and clang::ASTReader::ReadLateParsedTemplates().
|
inline |
Definition at line 765 of file LangOptions.h.
Referenced by checkFloatingPointResult(), clang::interp::CheckFloatResult(), FPOptions(), getActiveRoundingMode(), and isFPConstrained().
|
inline |
Definition at line 759 of file LangOptions.h.
References clang::LangOptions::FPE_Ignore, getExceptionMode(), and getRoundingMode().
Referenced by addBlockPointerConversion(), addFunctionPointerConversion(), CreateNewFunctionDecl(), EvaluateComparisonBinaryOperator(), InsertOCLBuiltinDeclarationsFromTable(), and rewriteBuiltinFunctionDecl().
Definition at line 788 of file LangOptions.h.
|
inline |
Definition at line 755 of file LangOptions.h.
References clang::LangOptions::FPM_Fast.
|
inline |
Definition at line 748 of file LangOptions.h.
References clang::LangOptions::FPM_On.
|
staticconstexpr |
Definition at line 691 of file LangOptions.h.
|
static |
Definition at line 691 of file LangOptions.h.
|
staticconstexpr |
Definition at line 687 of file LangOptions.h.
Referenced by clang::FPOptionsOverride::getAsOpaqueInt(), and clang::FPOptionsOverride::getFromOpaqueInt().
|
staticconstexpr |
Definition at line 700 of file LangOptions.h.