llvm::createMinMaxOp

Returns a Min/Max operation corresponding to MinMaxRecurrenceKind. The Builder's fast-math-flags must be set to propagate the expected values.

Synopsis

Declared in <llvm/Transforms/Utils/LoopUtils.h>

Value*
createMinMaxOp(
    IRBuilderBase& Builder,
    RecurKind RK,
    Value* Left,
    Value* Right);

Return Value

The created min/max operation.

Parameters

NameDescription
BuilderIR builder used to create the min/max operation.
RKRecurrence kind selecting the min/max variant.
LeftLeft-hand operand.
RightRight-hand operand.