clang 17.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) |
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 806 of file LangOptions.h.
using clang::FPOptionsOverride::RoundingMode = llvm::RoundingMode |
Definition at line 811 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 815 of file LangOptions.h.
|
inline |
Definition at line 824 of file LangOptions.h.
|
inline |
Definition at line 825 of file LangOptions.h.
|
inline |
Definition at line 827 of file LangOptions.h.
|
inline |
Definition at line 829 of file LangOptions.h.
|
inline |
Definition at line 880 of file LangOptions.h.
References applyOverrides().
Definition at line 873 of file LangOptions.h.
References clang::FPOptions::getFromOpaqueInt(), and clang::Result.
Referenced by clang::Sema::ActOnPragmaFEnvAccess(), clang::Sema::ActOnPragmaFEnvRound(), clang::Sema::ActOnPragmaFloatControl(), clang::Sema::ActOnPragmaFPContract(), clang::Sema::ActOnPragmaFPEvalMethod(), clang::Sema::ActOnPragmaFPReassociate(), 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 232 of file LangOptions.cpp.
|
inline |
Definition at line 861 of file LangOptions.h.
References clang::FPOptions::StorageBitSize.
|
inlinestatic |
Definition at line 866 of file LangOptions.h.
References clang::FPOptions::getFromOpaqueInt(), OverrideMaskBits, and clang::FPOptions::StorageBitSize.
Referenced by clang::ASTReader::InitializeSema().
|
inline |
Definition at line 887 of file LangOptions.h.
|
inline |
Definition at line 884 of file LangOptions.h.
|
inline |
Definition at line 832 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 838 of file LangOptions.h.
References clang::LangOptions::FPM_Fast.
Referenced by clang::Sema::ActOnPragmaFPContract(), and setFPPreciseEnabled().
|
inline |
Definition at line 834 of file LangOptions.h.
References clang::LangOptions::FPM_On.
Referenced by clang::Sema::ActOnPragmaFPContract(), and setFPPreciseEnabled().
|
inline |
Definition at line 842 of file LangOptions.h.
References clang::LangOptions::FPM_Off.
Referenced by clang::Sema::ActOnPragmaFPContract().
|
inline |
Definition at line 846 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 821 of file LangOptions.h.
Referenced by getFromOpaqueInt().