clang 20.0.0git
|
Represents difference between two FPOptions values. More...
#include "clang/Basic/LangOptions.h"
Public Types | |
using | RoundingMode = llvm::RoundingMode |
using | storage_type = uint64_t |
The type suitable for storing values of FPOptionsOverride. | |
Public Member Functions | |
FPOptionsOverride () | |
FPOptionsOverride (const LangOptions &LO) | |
FPOptionsOverride (FPOptions FPO) | |
FPOptionsOverride (FPOptions FPO, FPOptions::storage_type Mask) | |
bool | requiresTrailingStorage () const |
void | setAllowFPContractWithinStatement () |
void | setAllowFPContractAcrossStatement () |
void | setDisallowFPContract () |
void | setFPPreciseEnabled (bool Value) |
void | setDisallowOptimizations () |
storage_type | getAsOpaqueInt () const |
FPOptions | applyOverrides (FPOptions Base) |
FPOptions | applyOverrides (const LangOptions &LO) |
bool | operator== (FPOptionsOverride other) const |
bool | operator!= (FPOptionsOverride other) const |
LLVM_DUMP_METHOD void | dump () |
Static Public Member Functions | |
static FPOptionsOverride | getFromOpaqueInt (storage_type I) |
Static Public Attributes | |
static constexpr storage_type | OverrideMaskBits |
Bit mask selecting bits of OverrideMask in serialized representation of FPOptionsOverride. | |
Represents difference between two FPOptions values.
The effect of language constructs changing the set of floating point options is usually a change of some FP properties while leaving others intact. This class describes such changes by keeping information about what FP options are overridden.
The integral set of FP options, described by the class FPOptions, may be represented as a default FP option set, defined by language standard and command line options, with the overrides introduced by pragmas.
The is implemented as a value of the new FPOptions plus a mask showing which fields are actually set in it.
Definition at line 947 of file LangOptions.h.
using clang::FPOptionsOverride::RoundingMode = llvm::RoundingMode |
Definition at line 952 of file LangOptions.h.
using clang::FPOptionsOverride::storage_type = uint64_t |
The type suitable for storing values of FPOptionsOverride.
Must be twice as wide as bit size of FPOption.
Definition at line 956 of file LangOptions.h.
|
inline |
Definition at line 965 of file LangOptions.h.
|
inline |
Definition at line 966 of file LangOptions.h.
|
inline |
Definition at line 968 of file LangOptions.h.
|
inline |
Definition at line 970 of file LangOptions.h.
|
inline |
Definition at line 1024 of file LangOptions.h.
References applyOverrides().
Definition at line 1017 of file LangOptions.h.
References clang::FPOptions::getFromOpaqueInt(), and clang::Result.
Referenced by clang::Sema::ActOnPragmaCXLimitedRange(), clang::Sema::ActOnPragmaFEnvAccess(), clang::Sema::ActOnPragmaFEnvRound(), clang::Sema::ActOnPragmaFloatControl(), clang::Sema::ActOnPragmaFPContract(), clang::Sema::ActOnPragmaFPEvalMethod(), clang::Sema::ActOnPragmaFPValueChangingOption(), clang::FPOptions::applyChanges(), applyOverrides(), clang::UnaryOperator::getFPFeaturesInEffect(), clang::CallExpr::getFPFeaturesInEffect(), clang::CastExpr::getFPFeaturesInEffect(), clang::BinaryOperator::getFPFeaturesInEffect(), clang::ASTReader::InitializeSema(), and clang::Sema::setExceptionMode().
LLVM_DUMP_METHOD void FPOptionsOverride::dump | ( | ) |
Definition at line 234 of file LangOptions.cpp.
|
inline |
Definition at line 1005 of file LangOptions.h.
References clang::FPOptions::StorageBitSize.
|
inlinestatic |
Definition at line 1010 of file LangOptions.h.
References clang::FPOptions::getFromOpaqueInt(), OverrideMaskBits, and clang::FPOptions::StorageBitSize.
Referenced by clang::ASTReader::InitializeSema().
|
inline |
Definition at line 1031 of file LangOptions.h.
|
inline |
Definition at line 1028 of file LangOptions.h.
|
inline |
Definition at line 973 of file LangOptions.h.
Referenced by clang::BinaryOperator::BinaryOperator(), clang::CallExpr::CallExpr(), clang::CompoundStmt::Create(), clang::UnaryOperator::Create(), clang::BinaryOperator::Create(), clang::CompoundAssignOperator::Create(), clang::ImplicitCastExpr::Create(), clang::CStyleCastExpr::Create(), clang::CXXStaticCastExpr::Create(), clang::CXXFunctionalCastExpr::Create(), clang::UserDefinedLiteral::Create(), clang::CXXMemberCallExpr::Create(), clang::CallExpr::Create(), clang::CUDAKernelCallExpr::Create(), clang::CXXOperatorCallExpr::Create(), and clang::UnaryOperator::UnaryOperator().
|
inline |
Definition at line 979 of file LangOptions.h.
References clang::LangOptionsBase::FPM_Fast.
Referenced by clang::Sema::ActOnPragmaFPContract(), and setFPPreciseEnabled().
|
inline |
Definition at line 975 of file LangOptions.h.
References clang::LangOptionsBase::FPM_On.
Referenced by clang::Sema::ActOnPragmaFPContract(), and setFPPreciseEnabled().
|
inline |
Definition at line 983 of file LangOptions.h.
References clang::LangOptionsBase::FPM_Off.
Referenced by clang::Sema::ActOnPragmaFPContract().
|
inline |
Definition at line 1003 of file LangOptions.h.
References setFPPreciseEnabled().
Referenced by clang::Sema::applyFunctionAttributesBeforeParsingBody().
|
inline |
Definition at line 987 of file LangOptions.h.
References setAllowFPContractAcrossStatement(), and setAllowFPContractWithinStatement().
Referenced by clang::Sema::ActOnPragmaFloatControl(), and setDisallowOptimizations().
|
staticconstexpr |
Bit mask selecting bits of OverrideMask in serialized representation of FPOptionsOverride.
Definition at line 962 of file LangOptions.h.
Referenced by getFromOpaqueInt().