llvm::getRecurrenceIdentity

Given information about an recurrence kind, return the identity for the llvm.vector.reduce.* used to generate it.

Synopsis

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

Value*
getRecurrenceIdentity(
    RecurKind K,
    Type* Tp,
    FastMathFlags FMF);

Return Value

The identity value for the recurrence kind.

Parameters

NameDescription
KRecurrence kind whose identity is requested.
TpResult type of the identity value.
FMFFast-math flags affecting floating-point identities.