[mlir][Vector] Support 0-D vectors in ReductionOp
authorGüray Özen <gurayozen@google.com>
Mon, 15 Aug 2022 15:14:12 +0000 (15:14 +0000)
committerGüray Özen <gurayozen@google.com>
Thu, 18 Aug 2022 09:12:47 +0000 (09:12 +0000)
commit85882e7d64bdec697706ddf7ec41fd94add547f7
tree95d7e18ef154ff9db0c36d7936af5e49d3978186
parentf4410d471f1f2664db382431ffb15c1c07db97d5
[mlir][Vector] Support 0-D vectors in ReductionOp

This commit adds support for 0-D vectors in ReductionOp.

Reviewed By: nicolasvasilache, dcaballe

Differential Revision: https://reviews.llvm.org/D131896
mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
mlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir
mlir/test/Dialect/Vector/ops.mlir
mlir/test/Integration/Dialect/Vector/CPU/test-0-d-vectors.mlir