HomePhabricator

[MLIR] Generate inferReturnTypes declaration using InferTypeOpInterface trait.

Authored by jurahul on Dec 3 2020, 4:18 PM.

Description

[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