[ODS] Use Adaptor Trait for Shaped Type Inference
authorAmanda Tang <amandatang@google.com>
Thu, 13 Jul 2023 22:54:30 +0000 (22:54 +0000)
committerAmanda Tang <amandatang@google.com>
Thu, 20 Jul 2023 19:41:08 +0000 (19:41 +0000)
commit057fc8e7d8a3593f98930b8b91f80b9dd9b5fd4a
treea8adf196857c4c0b6ebb6324d9bf960a46b03151
parent04cc892eedf579584f642670efd71a5e6fd1494d
[ODS] Use Adaptor Trait for Shaped Type Inference

Author inferReturnTypeComponents methods with the Op Adaptor by using the InferShapedTypeOpAdaptor.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D155243
mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
mlir/include/mlir/Interfaces/InferTypeOpInterface.h
mlir/include/mlir/Interfaces/InferTypeOpInterface.td
mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
mlir/test/lib/Dialect/Test/TestDialect.cpp
mlir/test/lib/Dialect/Test/TestOps.td