llvm::BasicTTIImplBase::getMinMaxReductionCost

Calculate the cost of min/max reduction operations.

Synopsis

Declared in <llvm/CodeGen/BasicTTIImpl.h>

InstructionCost
getMinMaxReductionCost(
    Intrinsic::ID IID,
    VectorType* Ty,
    FastMathFlags FMF,
    TTI::TargetCostKind CostKind) const override;

Return Value

The cost of min/max reduction operations.

Parameters

NameDescription
IIDMin/max intrinsic ID selecting the reduction kind.
TyVector type being reduced.
FMFFast-math flags governing the reduction.
CostKindKind of cost to compute.