[mlir][tosa] Add InferTensorType interface to tosa reduce operations
authorAviad Cohen <aviadcohen7@gmail.com>
Sun, 2 Apr 2023 09:12:15 +0000 (12:12 +0300)
committerAviad Cohen <aviadcohen7@gmail.com>
Wed, 5 Apr 2023 04:25:10 +0000 (07:25 +0300)
commit3500e11065d616f4653ea8ba8c979b29c69a00d7
tree97a943845ed43fcd6261cee4cf046776e9b43d2e
parent2d4e545b7bc638d9325b16dfd667db5163d4d5d4
[mlir][tosa] Add InferTensorType interface to tosa reduce operations

When this interface is used, a call to inferReturnTypeComponents()
is generated on creation and verification of the op.

Reviewed By: jpienaar, eric-k256

Differential Revision: https://reviews.llvm.org/D147407
mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
mlir/test/Dialect/Tosa/invalid.mlir