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

Name

Description

B

IR builder used to create the reduction.

Src

Vector value being reduced.

InitVal

Initial / start value of the AnyOf reduction.

OrigPhi

Original reduction PHI used to recover context.

Created with MrDocs