llvm::createAnyOfReduction

Create a reduction of the given vector Src for a reduction of kind RecurKind::AnyOf. The start value of the reduction is InitVal.

Synopsis

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

Value*
createAnyOfReduction(
    IRBuilderBase& B,
    Value* Src,
    Value* InitVal,
    PHINode* OrigPhi);

Return Value

The AnyOf reduction result.

Parameters

NameDescription
BIR builder used to create the reduction.
SrcVector value being reduced.
InitValInitial / start value of the AnyOf reduction.
OrigPhiOriginal reduction PHI used to recover context.