[mlir][Vector] Introduce the `vector.mask` operation lowering
authorDiego Caballero <diegocaballero@google.com>
Wed, 26 Oct 2022 01:18:15 +0000 (01:18 +0000)
committerDiego Caballero <diegocaballero@google.com>
Thu, 27 Oct 2022 22:54:20 +0000 (22:54 +0000)
commitc3e09036e84a71f21672ae5ed4540edd5444cf94
tree37b42dc6df6212ec643b89d2ca10b1a35609c802
parentb1bc1a1ed6c906cbd31d6b7a9ffbd696306f86b0
[mlir][Vector] Introduce the `vector.mask` operation lowering

This patch introduces the lowering for xfer ops masked with `vector.mask`.
Vector reductions are not lowered yet because new LLVM intrinsics are needed
in the LLVM dialect.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D136741
mlir/include/mlir/Dialect/Vector/Transforms/Passes.h
mlir/include/mlir/Dialect/Vector/Transforms/Passes.td
mlir/lib/Dialect/Vector/Transforms/CMakeLists.txt
mlir/lib/Dialect/Vector/Transforms/LowerVectorMask.cpp [new file with mode: 0644]
mlir/test/Dialect/Vector/lower-vector-mask.mlir [new file with mode: 0644]