Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/IR/FPEnv.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
/// input in constrained intrinsic exception behavior metadata. | /// input in constrained intrinsic exception behavior metadata. | ||||
Optional<StringRef> ExceptionBehaviorToStr(fp::ExceptionBehavior); | Optional<StringRef> ExceptionBehaviorToStr(fp::ExceptionBehavior); | ||||
/// Returns true if the exception handling behavior and rounding mode | /// Returns true if the exception handling behavior and rounding mode | ||||
/// match what is used in the default floating point environment. | /// match what is used in the default floating point environment. | ||||
inline bool isDefaultFPEnvironment(fp::ExceptionBehavior EB, RoundingMode RM) { | inline bool isDefaultFPEnvironment(fp::ExceptionBehavior EB, RoundingMode RM) { | ||||
return EB == fp::ebIgnore && RM == RoundingMode::NearestTiesToEven; | return EB == fp::ebIgnore && RM == RoundingMode::NearestTiesToEven; | ||||
} | } | ||||
/// Returns true if the rounding mode RM may be QRM at compile time or | |||||
/// at run time. | |||||
inline bool RoundingModeMayBe(RoundingMode RM, RoundingMode QRM) { | |||||
Lint: Pre-merge checks: clang-tidy: warning: invalid case style for function 'RoundingModeMayBe' [readability… | |||||
return RM == QRM || RM == RoundingMode::Dynamic; | |||||
} | |||||
} | } | ||||
#endif | #endif |
clang-tidy: warning: invalid case style for function 'RoundingModeMayBe' [readability-identifier-naming]
not useful