clang
13.0.0git
|
Represents difference between two FPOptions values. More...
#include "clang/Basic/LangOptions.h"
Public Types | |
using | RoundingMode = llvm::RoundingMode |
using | storage_type = uint32_t |
The type suitable for storing values of FPOptionsOverride. More... | |
Public Member Functions | |
FPOptionsOverride () | |
FPOptionsOverride (const LangOptions &LO) | |
FPOptionsOverride (FPOptions FPO) | |
bool | requiresTrailingStorage () const |
void | setAllowFPContractWithinStatement () |
void | setAllowFPContractAcrossStatement () |
void | setDisallowFPContract () |
void | setFPPreciseEnabled (bool Value) |
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. More... | |
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 550 of file LangOptions.h.
using clang::FPOptionsOverride::RoundingMode = llvm::RoundingMode |
Definition at line 555 of file LangOptions.h.
using clang::FPOptionsOverride::storage_type = uint32_t |
The type suitable for storing values of FPOptionsOverride.
Must be twice as wide as bit size of FPOption.
Definition at line 559 of file LangOptions.h.
|
inline |
Definition at line 568 of file LangOptions.h.
|
inline |
Definition at line 569 of file LangOptions.h.
|
inline |
Definition at line 571 of file LangOptions.h.
|
inline |
Definition at line 622 of file LangOptions.h.
References applyOverrides().
Definition at line 615 of file LangOptions.h.
References clang::FPOptions::getFromOpaqueInt().
Referenced by clang::Sema::ActOnPragmaFEnvAccess(), clang::Sema::ActOnPragmaFloatControl(), clang::Sema::ActOnPragmaFPContract(), clang::Sema::ActOnPragmaFPReassociate(), applyOverrides(), clang::UnaryOperator::getFPFeaturesInEffect(), clang::CallExpr::getFPFeaturesInEffect(), clang::CastExpr::getFPFeaturesInEffect(), clang::BinaryOperator::getFPFeaturesInEffect(), clang::Sema::setExceptionMode(), and clang::Sema::setRoundingMode().
LLVM_DUMP_METHOD void FPOptionsOverride::dump | ( | ) |
Definition at line 63 of file LangOptions.cpp.
|
inline |
Definition at line 603 of file LangOptions.h.
References clang::FPOptions::StorageBitSize.
|
inlinestatic |
Definition at line 608 of file LangOptions.h.
References clang::FPOptions::getFromOpaqueInt(), OverrideMaskBits, and clang::FPOptions::StorageBitSize.
|
inline |
Definition at line 629 of file LangOptions.h.
|
inline |
Definition at line 626 of file LangOptions.h.
|
inline |
Definition at line 574 of file LangOptions.h.
Referenced by clang::BinaryOperator::BinaryOperator(), clang::CallExpr::CallExpr(), clang::CXXOperatorCallExpr::Create(), clang::CXXMemberCallExpr::Create(), clang::CUDAKernelCallExpr::Create(), clang::CXXStaticCastExpr::Create(), clang::UserDefinedLiteral::Create(), clang::CXXFunctionalCastExpr::Create(), clang::UnaryOperator::Create(), clang::CallExpr::Create(), clang::ImplicitCastExpr::Create(), clang::CStyleCastExpr::Create(), clang::BinaryOperator::Create(), clang::CompoundAssignOperator::Create(), and clang::UnaryOperator::UnaryOperator().
|
inline |
Definition at line 580 of file LangOptions.h.
References clang::LangOptions::FPM_Fast.
Referenced by clang::Sema::ActOnPragmaFPContract(), and setFPPreciseEnabled().
|
inline |
Definition at line 576 of file LangOptions.h.
References clang::LangOptions::FPM_On.
Referenced by clang::Sema::ActOnPragmaFPContract(), and setFPPreciseEnabled().
|
inline |
Definition at line 584 of file LangOptions.h.
References clang::LangOptions::FPM_Off.
Referenced by clang::Sema::ActOnPragmaFPContract().
|
inline |
Definition at line 588 of file LangOptions.h.
References setAllowFPContractAcrossStatement(), and setAllowFPContractWithinStatement().
Referenced by clang::Sema::ActOnPragmaFloatControl().
|
staticconstexpr |
Bit mask selecting bits of OverrideMask in serialized representation of FPOptionsOverride.
Definition at line 565 of file LangOptions.h.
Referenced by getFromOpaqueInt().