[mlir][Vector] Support 0-D vectors in `CreateMaskOp`
authorNicolas Vasilache <nicolas.vasilache@gmail.com>
Sun, 12 Dec 2021 13:32:26 +0000 (13:32 +0000)
committerNicolas Vasilache <nicolas.vasilache@gmail.com>
Sun, 12 Dec 2021 13:32:29 +0000 (13:32 +0000)
commit408553dd96792929b2468bcd2d8e4764ae7c2c9e
tree75d740ea9fb48541a92ec2b03b9f9a71ec8314b0
parenta0c930d312848b43f94bc13060a687c3bbe96b78
[mlir][Vector] Support 0-D vectors in `CreateMaskOp`

The 0-D case gets lowered in almost the same way that the 1-D case does
in VectorCreateMaskOpConversion. I also had to slightly update the
verifier for the op to always require exactly 1 operand in the 0-D case.

Depends On D115220

Reviewed by: ftynse

Differential revision: https://reviews.llvm.org/D115221
mlir/include/mlir/Dialect/Vector/VectorOps.td
mlir/lib/Dialect/Vector/VectorOps.cpp
mlir/lib/Dialect/Vector/VectorTransforms.cpp
mlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir
mlir/test/Dialect/Vector/invalid.mlir
mlir/test/Integration/Dialect/Vector/CPU/test-0-d-vectors.mlir