Skip to content

Commit 66db3cc

Browse files
authored
[mlir] Update vector return types for .getMixed* methods (NFC) (#133821)
Drop small size to make vector types match the generic helper `getMixedValues` in `StaticValueUtils.h`. This saves some needles vector copies. I didn't find any local variables that need updating.
1 parent cf6a452 commit 66db3cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/include/mlir/Interfaces/ViewLikeInterface.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def OffsetSizeAndStrideOpInterface : OpInterface<"OffsetSizeAndStrideOpInterface
160160
/*desc=*/[{
161161
Return a vector of all the static or dynamic offsets of the op.
162162
}],
163-
/*retTy=*/"::llvm::SmallVector<::mlir::OpFoldResult, 4>",
163+
/*retTy=*/"::llvm::SmallVector<::mlir::OpFoldResult>",
164164
/*methodName=*/"getMixedOffsets",
165165
/*args=*/(ins),
166166
/*methodBody=*/"",
@@ -174,7 +174,7 @@ def OffsetSizeAndStrideOpInterface : OpInterface<"OffsetSizeAndStrideOpInterface
174174
/*desc=*/[{
175175
Return a vector of all the static or dynamic sizes of the op.
176176
}],
177-
/*retTy=*/"::llvm::SmallVector<::mlir::OpFoldResult, 4>",
177+
/*retTy=*/"::llvm::SmallVector<::mlir::OpFoldResult>",
178178
/*methodName=*/"getMixedSizes",
179179
/*args=*/(ins),
180180
/*methodBody=*/"",
@@ -188,7 +188,7 @@ def OffsetSizeAndStrideOpInterface : OpInterface<"OffsetSizeAndStrideOpInterface
188188
/*desc=*/[{
189189
Return a vector of all the static or dynamic strides of the op.
190190
}],
191-
/*retTy=*/"::llvm::SmallVector<::mlir::OpFoldResult, 4>",
191+
/*retTy=*/"::llvm::SmallVector<::mlir::OpFoldResult>",
192192
/*methodName=*/"getMixedStrides",
193193
/*args=*/(ins),
194194
/*methodBody=*/"",

0 commit comments

Comments
 (0)