llvm::simplifyFMAFMul

Given operands for the multiplication of a FMA, fold the result or return null.

Synopsis

Declared in <llvm/Analysis/InstructionSimplify.h>

Value*
simplifyFMAFMul(
    Value* LHS,
    Value* RHS,
    FastMathFlags FMF,
    SimplifyQuery const& Q,
    fp::ExceptionBehavior ExBehavior = fp::ebIgnore,
    RoundingMode Rounding = RoundingMode::NearestTiesToEven);

Description

In contrast to simplifyFMulInst, this function will not perform simplifications whose unrounded results differ when rounded to the argument type.

Return Value

The folded value, or null if no simplification was found.

Parameters

NameDescription
LHSLeft-hand side operand.
RHSRight-hand side operand.
FMFFast-math flags to honor while folding.
QSimplification query providing analyses and flags.
ExBehaviorFloating-point exception behavior to assume.
RoundingRounding mode to assume.