clang 22.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. | |
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 |
Definition at line 764 of file LangOptions.h.
using clang::FPOptions::RoundingMode = llvm::RoundingMode |
Definition at line 769 of file LangOptions.h.
using clang::FPOptions::storage_type = uint32_t |
Definition at line 767 of file LangOptions.h.
|
inline |
Definition at line 796 of file LangOptions.h.
References clang::LangOptionsBase::FPE_Default, and clang::LangOptionsBase::FPM_Off.
Referenced by defaultWithoutTrailingStorage(), getChangesFrom(), getFromOpaqueInt(), and operator==().
|
inlineexplicit |
Definition at line 801 of file LangOptions.h.
References clang::LangOptionsBase::FPE_Strict, clang::LangOptionsBase::FPM_Fast, clang::LangOptionsBase::FPM_FastHonorPragmas, clang::LangOptionsBase::FPM_Off, clang::LangOptionsBase::FPM_On, getExceptionMode(), and getRoundingMode().
|
inline |
Definition at line 837 of file LangOptions.h.
References clang::LangOptionsBase::FPM_Fast.
Referenced by clang::CodeGen::CodeGenFunction::SetFastMathFlags().
|
inline |
Definition at line 830 of file LangOptions.h.
References clang::LangOptionsBase::FPM_On.
Referenced by clang::BinaryOperator::isFPContractableWithinStatement(), clang::ConvertVectorExpr::isFPContractableWithinStatement(), and clang::UnaryOperator::isFPContractableWithinStatement().
|
inline |
Definition at line 1032 of file LangOptions.h.
References clang::FPOptionsOverride::applyOverrides().
|
static |
Return the default value of FPOptions that's used when trailing storage isn't required.
Definition at line 218 of file LangOptions.cpp.
References FPOptions().
Referenced by clang::BinaryOperator::getFPFeaturesInEffect(), clang::CallExpr::getFPFeaturesInEffect(), clang::CastExpr::getFPFeaturesInEffect(), clang::ConvertVectorExpr::getFPFeaturesInEffect(), clang::Expr::getFPFeaturesInEffect(), and clang::UnaryOperator::getFPFeaturesInEffect().
LLVM_DUMP_METHOD void FPOptions::dump | ( | ) |
Definition at line 232 of file LangOptions.cpp.
|
inline |
Definition at line 879 of file LangOptions.h.
|
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().
|
inline |
Definition at line 862 of file LangOptions.h.
References clang::LangOptionsBase::FPE_Default, clang::LangOptionsBase::FPE_Ignore, and clang::LangOptionsBase::FPE_Strict.
Referenced by checkFloatingPointResult(), clang::interp::CheckFloatResult(), FPOptions(), isFPConstrained(), and shouldEmitBuiltinAsIR().
|
inlinestatic |
Definition at line 880 of file LangOptions.h.
References FPOptions().
Referenced by clang::interp::Addf(), clang::FPOptionsOverride::applyOverrides(), clang::interp::CastFloatingIntegral(), clang::interp::CastFloatingIntegralAP(), clang::interp::CastFloatingIntegralAPS(), clang::interp::CastIntegralFloating(), clang::interp::Divf(), clang::FPOptionsOverride::getFromOpaqueInt(), clang::interp::IncDecFloatHelper(), clang::interp::Mulf(), clang::ASTReader::ReadLateParsedTemplates(), and clang::interp::Subf().
|
inline |
Definition at line 850 of file LangOptions.h.
Referenced by BuildFloatingLiteral(), checkFloatingPointResult(), clang::interp::CheckFloatResult(), FPOptions(), getActiveRoundingMode(), clang::interp::getRoundingMode(), and isFPConstrained().
|
inline |
Definition at line 844 of file LangOptions.h.
References clang::LangOptionsBase::FPE_Ignore, getExceptionMode(), and getRoundingMode().
Referenced by addBlockPointerConversion(), addFunctionPointerConversion(), CreateNewFunctionDecl(), EvaluateComparisonBinaryOperator(), InsertOCLBuiltinDeclarationsFromTable(), and rewriteBuiltinFunctionDecl().
Definition at line 873 of file LangOptions.h.
References FPOptions().
|
inline |
Definition at line 840 of file LangOptions.h.
References clang::LangOptionsBase::FPM_Fast.
|
inline |
Definition at line 833 of file LangOptions.h.
References clang::LangOptionsBase::FPM_On.
|
staticconstexpr |
Definition at line 775 of file LangOptions.h.
|
static |
Definition at line 775 of file LangOptions.h.
|
staticconstexpr |
Definition at line 771 of file LangOptions.h.
Referenced by clang::FPOptionsOverride::getAsOpaqueInt(), and clang::FPOptionsOverride::getFromOpaqueInt().
|
staticconstexpr |
Definition at line 784 of file LangOptions.h.