[mlir][Vector] Add LLVM lowering for masked reductions
authorDiego Caballero <diegocaballero@google.com>
Mon, 13 Feb 2023 19:31:23 +0000 (19:31 +0000)
committerDiego Caballero <diegocaballero@google.com>
Wed, 15 Feb 2023 06:10:11 +0000 (06:10 +0000)
commite9b82a5c4fb6fa1c0af1b8e2536252b0730f41ef
treefc2a4b65fb220b1df6f220ba2810f19e114a32fe
parenta409f3c069145547db204099676c643ccd8b30d7
[mlir][Vector] Add LLVM lowering for masked reductions

This patch adds the conversion patterns to lower masked reduction
operations to the corresponding vp intrinsics in LLVM.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D142177
mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
mlir/test/Conversion/VectorToLLVM/vector-reduction-to-llvm.mlir