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

LLVM Value Representation

Parameters

NameDescription
BuilderCommon base class shared among various IRBuilders.
RKThese are the kinds of recurrences that we support.
LeftLLVM Value Representation
RightLLVM Value Representation