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

Name

Description

RdxID

Reduction intrinsic id whose identity is requested.

Ty

Result type of the identity value.

FMF

Fast‐math flags affecting floating‐point identities.

Created with MrDocs