[#llvm-createSimpleReduction-0d] = xref:llvm.adoc[llvm]::createSimpleReduction :relfileprefix: ../ :mrdocs: Create a vector reduction for recurrence kind `RdxKind.` == Synopsis Declared in `<llvm/Transforms/Utils/LoopUtils.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/Value.adoc[Value]* createSimpleReduction( xref:llvm/IRBuilderBase.adoc[IRBuilderBase]& B, xref:llvm/Value.adoc[Value]* Src, xref:llvm/RecurKind.adoc[RecurKind] RdxKind); ---- == Description Create a reduction of the given vector. The reduction operation is described by the `Opcode` parameter. min/max reductions require additional information supplied in `RdxKind.` Fast‐math‐flags are propagated using the IRBuilder's setting. == Return Value The reduction result. == Parameters [cols="1,4"] |=== | Name| Description | *B* | IR builder used to create the reduction. | *Src* | Vector value being reduced. | *RdxKind* | Recurrence kind describing the reduction. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#