Return the known sign bit of a floating-point value, if provable.
Declared in <llvm/Analysis/ValueTracking.h>
std::optional<bool>
computeKnownFPSignBit(
Value const* V,
SimplifyQuery const& SQ,
unsigned int Depth = 0);
Return false if we can prove that the specified FP value's sign bit is 0. Return true if we can prove that the specified FP value's sign bit is 1. Otherwise return std::nullopt.
Known sign bit, or nullopt if it cannot be proven.
| Name | Description |
|---|---|
| V | Floating-point value whose sign bit is queried. |
| SQ | Simplify query providing context for the analysis. |
| Depth | Current recursion depth for this query. |