[mlir] Add convenience grouping for tensor type inference
authorJacques Pienaar <jpienaar@google.com>
Mon, 1 Mar 2021 13:21:07 +0000 (05:21 -0800)
committerJacques Pienaar <jpienaar@google.com>
Mon, 1 Mar 2021 13:21:08 +0000 (05:21 -0800)
commit2f0b4db5ea52148a91c57fcb192856bab567de5a
tree64ef2dfd5b1d799a53befe393c4f7747a379abd3
parent7b319df29bf4ebe690ca0c41761e46d8b0081293
[mlir] Add convenience grouping for tensor type inference

For ops that produces tensor types and implement the shaped type component interface, the type inference interface can be used. Create a grouping of these together to make it easier to specify (it cannot be added into a list of traits, but must rather be appended/concated to one as it isn't a trait but a list of traits).

Differential Revision: https://reviews.llvm.org/D97636
mlir/include/mlir/Interfaces/InferTypeOpInterface.td
mlir/test/lib/Dialect/Test/TestOps.td