Skip to content

Commit c1c910f

Browse files
author
git apple-llvm automerger
committed
Merge commit 'c030ba2fc8f1' from llvm.org/main into apple/main
2 parents 548876b + c030ba2 commit c1c910f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

mlir/include/mlir/Interfaces/InferTypeOpInterface.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ class ShapedTypeComponents {
7676
Attribute attr;
7777
};
7878

79+
/// Range of values and shapes (corresponding effectively to Shapes dialect's
80+
/// ValueShape type concept).
81+
using ValueShapeRange = ValueRange;
82+
7983
namespace detail {
8084
// Helper function to infer return tensor returns types given element and shape
8185
// inference function.

mlir/include/mlir/Interfaces/InferTypeOpInterface.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def InferShapedTypeOpInterface : OpInterface<"InferShapedTypeOpInterface"> {
9393
/*methodName=*/"inferReturnTypeComponents",
9494
/*args=*/(ins "::mlir::MLIRContext*":$context,
9595
"::mlir::Optional<::mlir::Location>":$location,
96-
"::mlir::ValueRange":$operands,
96+
"::mlir::ValueShapeRange":$operands,
9797
"::mlir::DictionaryAttr":$attributes,
9898
"::mlir::RegionRange":$regions,
9999
"::mlir::SmallVectorImpl<::mlir::ShapedTypeComponents>&":

0 commit comments

Comments
 (0)