Fold a binary operator with fast‐math flags via target‐dependent folding.

Synopsis

Declared in <llvm/Analysis/TargetFolder.h>

virtual
Value*
FoldBinOpFMF(
    Instruction::BinaryOps Opc,
    Value* LHS,
    Value* RHS,
    FastMathFlags FMF) const override;

Return Value

The folded value, or nullptr if the operation cannot be folded.

Parameters

Name

Description

Opc

The binary opcode to fold.

LHS

Left‐hand operand.

RHS

Right‐hand operand.

FMF

Fast‐math flags for the operation.

Created with MrDocs