[mlir] tosa.reshape - Add InferTensorType interface
authorAviad Cohen <aviadcohen7@gmail.com>
Mon, 17 Apr 2023 06:44:06 +0000 (09:44 +0300)
committerAviad Cohen <aviadcohen7@gmail.com>
Sat, 22 Apr 2023 05:53:07 +0000 (08:53 +0300)
commit2dd396c18bc035f8f87fb7ca2c33b8f00c287759
treeb8bcd25d33e078a71eb3ab7ec14da57cfcd4bf7d
parent6fb4c9fdc1442ee36ea7df2a647d3ef1451a36b5
[mlir] tosa.reshape - Add InferTensorType interface

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

Reviewed By: jpienaar

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