llvm::getReductionIdentity

Given information about an llvm.vector.reduce.* intrinsic, return the identity value for the reduction.

Synopsis

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

Value*
getReductionIdentity(
    Intrinsic::ID RdxID,
    Type* Ty,
    FastMathFlags FMF);

Return Value

The identity value for the reduction intrinsic.

Parameters

NameDescription
RdxIDReduction intrinsic id whose identity is requested.
TyResult type of the identity value.
FMFFast-math flags affecting floating-point identities.