|
LLVM 24.0.0git
|
This file provides fallible floating-point folding operations with explicit rounding and denormal modes. More...
#include "llvm/ADT/APFloat.h"#include "llvm/ADT/ArrayRef.h"#include "llvm/ADT/FloatingPointMode.h"#include "llvm/Support/Compiler.h"#include <optional>Go to the source code of this file.
Classes | |
| struct | llvm::FPFoldResult |
| A unique floating-point result and the IEEE exceptions raised computing it. More... | |
Namespaces | |
| namespace | llvm |
| This is an optimization pass for GlobalISel generic memory operations. | |
Enumerations | |
| enum class | llvm::FPOp { llvm::Add , llvm::Sub , llvm::Mul , llvm::Div , llvm::FRem , llvm::MinNum , llvm::MaxNum , llvm::Minimum , llvm::Maximum , llvm::MinimumNum , llvm::MaximumNum , llvm::FMA , llvm::Ceil , llvm::Floor , llvm::Trunc , llvm::Round , llvm::RoundEven } |
| The floating-point operations supported by the folding helpers. More... | |
Functions | |
| LLVM_ABI std::optional< APFloat > | llvm::getFPValue (std::optional< FPFoldResult > Res) |
| Return the value of a successful fold, or std::nullopt. | |
| LLVM_ABI std::optional< FPFoldResult > | llvm::tryFoldFP (FPOp Opcode, ArrayRef< APFloat > Args, DenormalMode Denorms) |
| Try to evaluate a floating-point operation with the specified inputs. | |
| LLVM_ABI std::optional< FPFoldResult > | llvm::tryFoldFPWithRM (FPOp Opcode, ArrayRef< APFloat > Args, RoundingMode RM, DenormalMode Denorms) |
| Try to evaluate a floating-point operation with an explicit rounding mode. | |
| LLVM_ABI std::optional< APFloat::cmpResult > | llvm::tryFoldFCmp (const APFloat &LHS, const APFloat &RHS, DenormalMode Denorms) |
| Try to compare two floating-point values. | |
This file provides fallible floating-point folding operations with explicit rounding and denormal modes.
Definition in file FPFold.h.