diff --git a/mlir/include/mlir/Interfaces/InferTypeOpInterface.td b/mlir/include/mlir/Interfaces/InferTypeOpInterface.td --- a/mlir/include/mlir/Interfaces/InferTypeOpInterface.td +++ b/mlir/include/mlir/Interfaces/InferTypeOpInterface.td @@ -135,7 +135,7 @@ // Convenience class grouping together type and shaped type op interfaces for // ops that have tensor return types. -class InferTensorType overridenMethods = []> : TraitList< +class InferTensorTypeBase overridenMethods = []> : TraitList< [ // Op implements infer type op interface. InferTypeOpInterface, @@ -146,9 +146,10 @@ // along with knowledge that it is producing Tensors to infer the type. NativeOpTrait<"InferTensorType"> ]>; -def InferTensorTypeWithReify: TraitList.traits>; +def InferTensorType : InferTensorTypeBase<["inferReturnTypeComponents"]>; +def InferTensorTypeWithReify: InferTensorTypeBase<[ + "inferReturnTypeComponents", "reifyReturnTypeShapes"]>; def ReifyRankedShapedTypeOpInterface : OpInterface<"ReifyRankedShapedTypeOpInterface"> {