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

LLVM Value Representation

Parameters

NameDescription
BCommon base class shared among various IRBuilders.
SrcLLVM Value Representation
InitValLLVM Value Representation