Create a reduction of the given vector Src for a reduction of kind RecurKind::AnyOf. The start value of the reduction is InitVal.
Declared in <llvm/Transforms/Utils/LoopUtils.h>
Value*
createAnyOfReduction(
IRBuilderBase& B,
Value* Src,
Value* InitVal,
PHINode* OrigPhi);
The AnyOf reduction result.
| 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. |