[MLIR] Generate inferReturnTypes declaration using InferTypeOpInterface trait.
authorRahul Joshi <jurahul@google.com>
Fri, 4 Dec 2020 00:18:11 +0000 (16:18 -0800)
committerRahul Joshi <jurahul@google.com>
Fri, 4 Dec 2020 17:05:53 +0000 (09:05 -0800)
commit245233423e466979e11b39cbed676903892d07f8
tree5f534c4512a3ad23661111f99c968d0b2479f882
parent7f6f9f4cf966c78a315d15d6e913c43cfa45c47c
[MLIR] Generate inferReturnTypes declaration using InferTypeOpInterface trait.

- Instead of hardcoding the parameters and return types of 'inferReturnTypes', use the
  InferTypeOpInterface trait to generate the method declaration.
- Fix InferTypeOfInterface to use fully qualified type for inferReturnTypes results.

Differential Revision: https://reviews.llvm.org/D92585
mlir/include/mlir/Interfaces/InferTypeOpInterface.td
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp