13#ifndef LLVM_SUPPORT_FPFOLD_H
14#define LLVM_SUPPORT_FPFOLD_H
77LLVM_ABI std::optional<APFloat::cmpResult>
This file declares a class to represent arbitrary precision floating point values and provide a varie...
Utilities for dealing with flags related to floating point properties and mode controls.
opStatus
IEEE-754R 7: Default exception handling.
Represent a constant reference to an array (0 or more elements consecutively in memory),...
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI std::optional< FPFoldResult > tryFoldFP(FPOp Opcode, ArrayRef< APFloat > Args, DenormalMode Denorms)
Try to evaluate a floating-point operation with the specified inputs.
FPOp
The floating-point operations supported by the folding helpers.
LLVM_ABI std::optional< APFloat::cmpResult > tryFoldFCmp(const APFloat &LHS, const APFloat &RHS, DenormalMode Denorms)
Try to compare two floating-point values.
@ Mul
Product of integers.
@ Sub
Subtraction of integers.
RoundingMode
Rounding mode.
LLVM_ABI std::optional< APFloat > getFPValue(std::optional< FPFoldResult > Res)
Return the value of a successful fold, or std::nullopt.
LLVM_ABI std::optional< FPFoldResult > tryFoldFPWithRM(FPOp Opcode, ArrayRef< APFloat > Args, RoundingMode RM, DenormalMode Denorms)
Try to evaluate a floating-point operation with an explicit rounding mode.
Represent subnormal handling kind for floating point instruction inputs and outputs.
A unique floating-point result and the IEEE exceptions raised computing it.