[all-commits] [llvm/llvm-project] 408553: [mlir][Vector] Support 0-D vectors in `CreateMaskOp`

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Sun Dec 12 05:36:05 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 408553dd96792929b2468bcd2d8e4764ae7c2c9e
      https://github.com/llvm/llvm-project/commit/408553dd96792929b2468bcd2d8e4764ae7c2c9e
  Author: Nicolas Vasilache <nicolas.vasilache at gmail.com>
  Date:   2021-12-12 (Sun, 12 Dec 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Vector/VectorOps.td
    M mlir/lib/Dialect/Vector/VectorOps.cpp
    M mlir/lib/Dialect/Vector/VectorTransforms.cpp
    M mlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir
    M mlir/test/Dialect/Vector/invalid.mlir
    M mlir/test/Integration/Dialect/Vector/CPU/test-0-d-vectors.mlir

  Log Message:
  -----------
  [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




More information about the All-commits mailing list