ΒΆllvm::Value* createSimpleTargetReduction(
    llvm::IRBuilderBase& B,
    const llvm::TargetTransformInfo* TTI,
    llvm::Value* Src,
    llvm::RecurKind RdxKind)

Description

Create a target reduction of the given vector. The reduction operation is described by the \p Opcode parameter. min/max reductions require additional information supplied in \p RdxKind. The target is queried to determine if intrinsics or shuffle sequences are required to implement the reduction. Fast-math-flags are propagated using the IRBuilder's setting.

Declared at: llvm/include/llvm/Transforms/Utils/LoopUtils.h:385

Parameters

llvm::IRBuilderBase& B
const llvm::TargetTransformInfo* TTI
llvm::Value* Src
llvm::RecurKind RdxKind