Skip to content

Commit ad376db

Browse files
committed
fixup! [mlir][vector] Rename vector type TD definitions (nfc)
AnyVector -> AnyVectorOfNonZeroRank
1 parent 55b8bfb commit ad376db

File tree

7 files changed

+64
-64
lines changed

7 files changed

+64
-64
lines changed

mlir/include/mlir/Dialect/Affine/IR/AffineOps.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ def AffineVectorLoadOp : AffineLoadOpBase<"vector_load"> {
964964
(see [vector.transfer_read](../Vector/#vectortransfer_read-mlirvectortransferreadop)).
965965
}];
966966

967-
let results = (outs AnyVector:$result);
967+
let results = (outs AnyVectorOfNonZeroRank:$result);
968968

969969
let builders = [
970970
/// Builds an affine vector load op with the specified map and operands.
@@ -1031,7 +1031,7 @@ def AffineVectorStoreOp : AffineStoreOpBase<"vector_store"> {
10311031
(see [vector.transfer_write](../Vector/#vectortransfer_write-mlirvectortransferwriteop)).
10321032
}];
10331033

1034-
let arguments = (ins AnyVector:$value,
1034+
let arguments = (ins AnyVectorOfNonZeroRank:$value,
10351035
Arg<AnyMemRef, "the reference to store to",
10361036
[MemWrite]>:$memref,
10371037
Variadic<Index>:$indices,

mlir/include/mlir/Dialect/ArmSME/IR/ArmSMEOps.td

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def TileLoadOp : ArmSME_Op<"tile_load", [
371371
let arguments = (ins
372372
Arg<AnyMemRef, "the reference to load from", [MemRead]>:$base,
373373
Variadic<Index>:$indices,
374-
Optional<AnyType>:$padding, Optional<AnyVector>:$mask,
374+
Optional<AnyType>:$padding, Optional<AnyVectorOfNonZeroRank>:$mask,
375375
ArmSME_TileSliceLayoutAttr:$layout
376376
);
377377
let results = (outs SMETile:$result);
@@ -444,7 +444,7 @@ def TileStoreOp : ArmSME_Op<"tile_store", [
444444
}];
445445
let arguments = (ins SMETile:$valueToStore,
446446
Arg<AnyMemRef, "the reference to store to", [MemWrite]>:$base,
447-
Variadic<Index>:$indices, Optional<AnyVector>:$mask,
447+
Variadic<Index>:$indices, Optional<AnyVectorOfNonZeroRank>:$mask,
448448
ArmSME_TileSliceLayoutAttr:$layout
449449
);
450450
let extraClassDeclaration = [{
@@ -799,9 +799,9 @@ class OuterProductWideningBase<string mnemonic,
799799
]> {
800800

801801
let arguments = (ins
802-
AnyTypeOf<allowedInputVectorTypes>:$lhs, AnyVector:$rhs,
803-
Optional<AnyVector>:$lhsMask, Optional<AnyVector>:$rhsMask,
804-
Optional<AnyVector>:$acc);
802+
AnyTypeOf<allowedInputVectorTypes>:$lhs, AnyVectorOfNonZeroRank:$rhs,
803+
Optional<AnyVectorOfNonZeroRank>:$lhsMask, Optional<AnyVectorOfNonZeroRank>:$rhsMask,
804+
Optional<AnyVectorOfNonZeroRank>:$acc);
805805
let results = (outs AnyTypeOf<allowedResultVectorTypes>:$result);
806806

807807
let assemblyFormat = [{

mlir/include/mlir/Dialect/NVGPU/IR/NVGPU.td

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def NVGPU_LdMatrixOp : NVGPU_Op<"ldmatrix", [
255255
let arguments = (ins Arg<AnyMemRef, "", [MemReadAt<0, FullEffect>]>:$srcMemref,
256256
Variadic<Index>:$indices, BoolAttr:$transpose,
257257
I32Attr:$numTiles);
258-
let results = (outs AnyVector:$res);
258+
let results = (outs AnyVectorOfNonZeroRank:$res);
259259
let assemblyFormat = [{
260260
$srcMemref`[` $indices `]` attr-dict `:` type($srcMemref) `->` type($res)
261261
}];
@@ -301,13 +301,13 @@ def NVGPU_MmaSyncOp : NVGPU_MmaSyncOp<"mma.sync"> {
301301
(vector<4x2xf16>, vector<2x2xf16>, vector<2x2xf32>) -> vector<2x2xf32>
302302
```
303303
}];
304-
let arguments = (ins AnyVector:$matrixA,
305-
AnyVector:$matrixB,
306-
AnyVector:$matrixC,
304+
let arguments = (ins AnyVectorOfNonZeroRank:$matrixA,
305+
AnyVectorOfNonZeroRank:$matrixB,
306+
AnyVectorOfNonZeroRank:$matrixC,
307307
I64ArrayAttr:$mmaShape,
308308
OptionalAttr<UnitAttr>:$tf32Enabled);
309309

310-
let results = (outs AnyVector:$res);
310+
let results = (outs AnyVectorOfNonZeroRank:$res);
311311

312312
let builders = [
313313
OpBuilder<(ins "Value":$matrixA,
@@ -357,16 +357,16 @@ def NVGPU_MmaSparseSyncOp : NVGPU_MmaSyncOp<"mma.sp.sync"> {
357357
```
358358
}];
359359

360-
let arguments = (ins AnyVector:$matrixA,
361-
AnyVector:$matrixB,
362-
AnyVector:$matrixC,
360+
let arguments = (ins AnyVectorOfNonZeroRank:$matrixA,
361+
AnyVectorOfNonZeroRank:$matrixB,
362+
AnyVectorOfNonZeroRank:$matrixC,
363363
NVGPU_MmaSparseSyncMetadataType:$sparseMetadata,
364364
I64ArrayAttr:$mmaShape,
365365
DefaultValuedAttr<I32Attr, "0">:$sparsitySelector,
366366
OptionalAttr<UnitAttr>:$tf32Enabled
367367
);
368368

369-
let results = (outs AnyVector:$res);
369+
let results = (outs AnyVectorOfNonZeroRank:$res);
370370

371371
let builders = [
372372
OpBuilder<(ins "Value":$matrixA,
@@ -825,10 +825,10 @@ def NVGPU_RcpOp : NVGPU_Op<"rcp", [Pure,
825825

826826
The input and output must be of the same vector type and shape.
827827
}];
828-
let arguments = (ins VectorOf<[F32]>:$in,
828+
let arguments = (ins VectorOfNonZeroRankOf<[F32]>:$in,
829829
DefaultValuedAttr<RcpRoundingModeAttr, "RcpRoundingMode::APPROX">:$rounding,
830830
UnitAttr:$ftz);
831-
let results = (outs VectorOf<[F32]>:$out);
831+
let results = (outs VectorOfNonZeroRankOf<[F32]>:$out);
832832
let assemblyFormat = [{
833833
$in `{` `rounding` `=` $rounding (`,` `ftz` $ftz^)? `}`
834834
attr-dict `:` type($out)

mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def Tosa_Int32TensorUpto4D : AnyTypeOf<[
166166

167167
class Tosa_TypeLike<list<Type> types, string description = ""> : TypeConstraint<Or<[
168168
AnyTypeOf<types>.predicate,
169-
VectorOf<types>.predicate,
169+
VectorOfNonZeroRankOf<types>.predicate,
170170
TosaTensorOf<types>.predicate]>,
171171
description>;
172172

mlir/include/mlir/Dialect/Vector/IR/VectorOps.td

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def Vector_ContractionOp :
4040
DeclareOpInterfaceMethods<MaskableOpInterface>,
4141
DeclareOpInterfaceMethods<VectorUnrollOpInterface, ["getShapeForUnroll"]>
4242
]>,
43-
Arguments<(ins AnyVector:$lhs, AnyVector:$rhs, AnyType:$acc,
43+
Arguments<(ins AnyVectorOfNonZeroRank:$lhs, AnyVectorOfNonZeroRank:$rhs, AnyType:$acc,
4444
ArrayAttr:$indexing_maps,
4545
Vector_IteratorTypeArrayAttr:$iterator_types,
4646
DefaultValuedAttr<Vector_CombiningKindAttr,
@@ -285,7 +285,7 @@ def Vector_MultiDimReductionOp :
285285
DeclareOpInterfaceMethods<VectorUnrollOpInterface,
286286
["getShapeForUnroll"]>]>,
287287
Arguments<(ins Vector_CombiningKindAttr:$kind,
288-
AnyVector:$source,
288+
AnyVectorOfNonZeroRank:$source,
289289
AnyType:$acc,
290290
DenseI64ArrayAttr:$reduction_dims)>,
291291
Results<(outs AnyType:$dest)> {
@@ -428,7 +428,7 @@ def Vector_ShuffleOp
428428
InferTypeOpAdaptor]>,
429429
Arguments<(ins AnyFixedVectorOfAnyRank:$v1, AnyFixedVectorOfAnyRank:$v2,
430430
DenseI64ArrayAttr:$mask)>,
431-
Results<(outs AnyVector:$vector)> {
431+
Results<(outs AnyVectorOfNonZeroRank:$vector)> {
432432
let summary = "shuffle operation";
433433
let description = [{
434434
The shuffle operation constructs a permutation (or duplication) of elements
@@ -533,7 +533,7 @@ def Vector_InterleaveOp :
533533
}];
534534

535535
let arguments = (ins AnyVectorOfAnyRank:$lhs, AnyVectorOfAnyRank:$rhs);
536-
let results = (outs AnyVector:$result);
536+
let results = (outs AnyVectorOfNonZeroRank:$result);
537537

538538
let assemblyFormat = [{
539539
$lhs `,` $rhs attr-dict `:` type($lhs) `->` type($result)
@@ -612,8 +612,8 @@ def Vector_DeinterleaveOp :
612612
```
613613
}];
614614

615-
let arguments = (ins AnyVector:$source);
616-
let results = (outs AnyVector:$res1, AnyVector:$res2);
615+
let arguments = (ins AnyVectorOfNonZeroRank:$source);
616+
let results = (outs AnyVectorOfNonZeroRank:$res1, AnyVectorOfNonZeroRank:$res2);
617617

618618
let assemblyFormat = [{
619619
$source attr-dict `:` type($source) `->` type($res1)
@@ -1050,9 +1050,9 @@ def Vector_InsertStridedSliceOp :
10501050
PredOpTrait<"operand #0 and result have same element type",
10511051
TCresVTEtIsSameAsOpBase<0, 0>>,
10521052
AllTypesMatch<["dest", "res"]>]>,
1053-
Arguments<(ins AnyVector:$source, AnyVector:$dest, I64ArrayAttr:$offsets,
1053+
Arguments<(ins AnyVectorOfNonZeroRank:$source, AnyVectorOfNonZeroRank:$dest, I64ArrayAttr:$offsets,
10541054
I64ArrayAttr:$strides)>,
1055-
Results<(outs AnyVector:$res)> {
1055+
Results<(outs AnyVectorOfNonZeroRank:$res)> {
10561056
let summary = "strided_slice operation";
10571057
let description = [{
10581058
Takes a k-D source vector, an n-D destination vector (n >= k), n-sized
@@ -1109,10 +1109,10 @@ def Vector_OuterProductOp :
11091109
PredOpTrait<"rhs operand and result have same element type",
11101110
TCresVTEtIsSameAsOpBase<0, 1>>,
11111111
DeclareOpInterfaceMethods<MaskableOpInterface>]>,
1112-
Arguments<(ins AnyVector:$lhs, AnyType:$rhs,
1113-
Optional<AnyVector>:$acc,
1112+
Arguments<(ins AnyVectorOfNonZeroRank:$lhs, AnyType:$rhs,
1113+
Optional<AnyVectorOfNonZeroRank>:$acc,
11141114
DefaultValuedAttr<Vector_CombiningKindAttr, "CombiningKind::ADD">:$kind)>,
1115-
Results<(outs AnyVector)> {
1115+
Results<(outs AnyVectorOfNonZeroRank)> {
11161116
let summary = "vector outerproduct with optional fused add";
11171117
let description = [{
11181118
Takes 2 1-D vectors and returns the 2-D vector containing the outer-product,
@@ -1192,9 +1192,9 @@ def Vector_ExtractStridedSliceOp :
11921192
Vector_Op<"extract_strided_slice", [Pure,
11931193
PredOpTrait<"operand and result have same element type",
11941194
TCresVTEtIsSameAsOpBase<0, 0>>]>,
1195-
Arguments<(ins AnyVector:$vector, I64ArrayAttr:$offsets,
1195+
Arguments<(ins AnyVectorOfNonZeroRank:$vector, I64ArrayAttr:$offsets,
11961196
I64ArrayAttr:$sizes, I64ArrayAttr:$strides)>,
1197-
Results<(outs AnyVector)> {
1197+
Results<(outs AnyVectorOfNonZeroRank)> {
11981198
let summary = "extract_strided_slice operation";
11991199
let description = [{
12001200
Takes an n-D vector, k-D `offsets` integer array attribute, a k-sized
@@ -1256,7 +1256,7 @@ def Vector_TransferReadOp :
12561256
Variadic<Index>:$indices,
12571257
AffineMapAttr:$permutation_map,
12581258
AnyType:$padding,
1259-
Optional<VectorOf<[I1]>>:$mask,
1259+
Optional<VectorOfNonZeroRankOf<[I1]>>:$mask,
12601260
BoolArrayAttr:$in_bounds)>,
12611261
Results<(outs AnyVectorOfAnyRank:$vector)> {
12621262

@@ -1504,7 +1504,7 @@ def Vector_TransferWriteOp :
15041504
AnyShaped:$source,
15051505
Variadic<Index>:$indices,
15061506
AffineMapAttr:$permutation_map,
1507-
Optional<VectorOf<[I1]>>:$mask,
1507+
Optional<VectorOfNonZeroRankOf<[I1]>>:$mask,
15081508
BoolArrayAttr:$in_bounds)>,
15091509
Results<(outs Optional<AnyRankedTensor>:$result)> {
15101510

@@ -1827,9 +1827,9 @@ def Vector_MaskedLoadOp :
18271827
Vector_Op<"maskedload">,
18281828
Arguments<(ins Arg<AnyMemRef, "", [MemRead]>:$base,
18291829
Variadic<Index>:$indices,
1830-
VectorOf<[I1]>:$mask,
1831-
AnyVector:$pass_thru)>,
1832-
Results<(outs AnyVector:$result)> {
1830+
VectorOfNonZeroRankOf<[I1]>:$mask,
1831+
AnyVectorOfNonZeroRank:$pass_thru)>,
1832+
Results<(outs AnyVectorOfNonZeroRank:$result)> {
18331833

18341834
let summary = "loads elements from memory into a vector as defined by a mask vector";
18351835

@@ -1890,8 +1890,8 @@ def Vector_MaskedStoreOp :
18901890
Vector_Op<"maskedstore">,
18911891
Arguments<(ins Arg<AnyMemRef, "", [MemWrite]>:$base,
18921892
Variadic<Index>:$indices,
1893-
VectorOf<[I1]>:$mask,
1894-
AnyVector:$valueToStore)> {
1893+
VectorOfNonZeroRankOf<[I1]>:$mask,
1894+
AnyVectorOfNonZeroRank:$valueToStore)> {
18951895

18961896
let summary = "stores elements from a vector into memory as defined by a mask vector";
18971897

@@ -1953,10 +1953,10 @@ def Vector_GatherOp :
19531953
]>,
19541954
Arguments<(ins Arg<AnyShaped, "", [MemRead]>:$base,
19551955
Variadic<Index>:$indices,
1956-
VectorOf<[AnyInteger, Index]>:$index_vec,
1957-
VectorOf<[I1]>:$mask,
1958-
AnyVector:$pass_thru)>,
1959-
Results<(outs AnyVector:$result)> {
1956+
VectorOfNonZeroRankOf<[AnyInteger, Index]>:$index_vec,
1957+
VectorOfNonZeroRankOf<[I1]>:$mask,
1958+
AnyVectorOfNonZeroRank:$pass_thru)>,
1959+
Results<(outs AnyVectorOfNonZeroRank:$result)> {
19601960

19611961
let summary = [{
19621962
gathers elements from memory or ranked tensor into a vector as defined by an
@@ -2084,9 +2084,9 @@ def Vector_ExpandLoadOp :
20842084
Vector_Op<"expandload">,
20852085
Arguments<(ins Arg<AnyMemRef, "", [MemRead]>:$base,
20862086
Variadic<Index>:$indices,
2087-
VectorOf<[I1]>:$mask,
2088-
AnyVector:$pass_thru)>,
2089-
Results<(outs AnyVector:$result)> {
2087+
VectorOfNonZeroRankOf<[I1]>:$mask,
2088+
AnyVectorOfNonZeroRank:$pass_thru)>,
2089+
Results<(outs AnyVectorOfNonZeroRank:$result)> {
20902090

20912091
let summary = "reads elements from memory and spreads them into a vector as defined by a mask";
20922092

@@ -2151,8 +2151,8 @@ def Vector_CompressStoreOp :
21512151
Vector_Op<"compressstore">,
21522152
Arguments<(ins Arg<AnyMemRef, "", [MemWrite]>:$base,
21532153
Variadic<Index>:$indices,
2154-
VectorOf<[I1]>:$mask,
2155-
AnyVector:$valueToStore)> {
2154+
VectorOfNonZeroRankOf<[I1]>:$mask,
2155+
AnyVectorOfNonZeroRank:$valueToStore)> {
21562156

21572157
let summary = "writes elements selectively from a vector as defined by a mask";
21582158

@@ -2510,7 +2510,7 @@ def Vector_MaskOp : Vector_Op<"mask", [
25102510
}];
25112511

25122512
// TODO: Support multiple passthru values.
2513-
let arguments = (ins VectorOf<[I1]>:$mask,
2513+
let arguments = (ins VectorOfNonZeroRankOf<[I1]>:$mask,
25142514
Optional<AnyType>:$passthru);
25152515
let results = (outs Variadic<AnyType>:$results);
25162516
let regions = (region SizedRegion<1>:$maskRegion);
@@ -2893,11 +2893,11 @@ def Vector_ScanOp :
28932893
AllTypesMatch<["source", "dest"]>,
28942894
AllTypesMatch<["initial_value", "accumulated_value"]> ]>,
28952895
Arguments<(ins Vector_CombiningKindAttr:$kind,
2896-
AnyVector:$source,
2896+
AnyVectorOfNonZeroRank:$source,
28972897
AnyVectorOfAnyRank:$initial_value,
28982898
I64Attr:$reduction_dim,
28992899
BoolAttr:$inclusive)>,
2900-
Results<(outs AnyVector:$dest,
2900+
Results<(outs AnyVectorOfNonZeroRank:$dest,
29012901
AnyVectorOfAnyRank:$accumulated_value)> {
29022902
let summary = "Scan operation";
29032903
let description = [{

mlir/include/mlir/IR/CommonTypeConstraints.td

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ include "mlir/IR/DialectBase.td"
2222

2323
// Whether a type is a VectorType.
2424
// Explicitly disallow 0-D vectors for now until we have good enough coverage.
25-
def IsVectorTypePred : And<[CPred<"::llvm::isa<::mlir::VectorType>($_self)">,
26-
CPred<"::llvm::cast<::mlir::VectorType>($_self).getRank() > 0">]>;
25+
def IsVectorOfNonZeroRankTypePred : And<[CPred<"::llvm::isa<::mlir::VectorType>($_self)">,
26+
CPred<"::llvm::cast<::mlir::VectorType>($_self).getRank() > 0">]>;
2727

2828
// Temporary vector type clone that allows gradual transition to 0-D vectors.
2929
// TODO: Remove this when all ops support 0-D vectors.
@@ -53,7 +53,7 @@ def IsVectorTypeWithOnlyTrailingDimScalablePred : And<[
5353

5454
// Whether a type is a VectorType and all dimensions are scalable.
5555
def IsVectorTypeWithAllDimsScalablePred : And<[
56-
IsVectorTypePred,
56+
IsVectorOfNonZeroRankTypePred,
5757
CPred<[{::llvm::cast<::mlir::VectorType>($_self).allDimsScalable()}]>
5858
]>;
5959

@@ -428,8 +428,8 @@ class ValueSemanticsContainerOf<list<Type> allowedTypes> :
428428

429429
// Vector types.
430430

431-
class VectorOf<list<Type> allowedTypes> :
432-
ShapedContainerType<allowedTypes, IsVectorTypePred, "vector",
431+
class VectorOfNonZeroRankOf<list<Type> allowedTypes> :
432+
ShapedContainerType<allowedTypes, IsVectorOfNonZeroRankTypePred, "vector",
433433
"::mlir::VectorType">;
434434

435435
// Temporary vector type clone that allows gradual transition to 0-D vectors.
@@ -458,7 +458,7 @@ class VectorWithTrailingDimScalableOf<list<Type> allowedTypes> :
458458
// Whether the number of elements of a vector is from the given
459459
// `allowedRanks` list
460460
class IsVectorOfRankPred<list<int> allowedRanks> :
461-
And<[IsVectorTypePred,
461+
And<[IsVectorOfNonZeroRankTypePred,
462462
Or<!foreach(allowedlength, allowedRanks,
463463
CPred<[{::llvm::cast<::mlir::VectorType>($_self).getRank()
464464
== }]
@@ -501,8 +501,8 @@ class ScalableVectorOfRank<list<int> allowedRanks> : Type<
501501
// is from the given `allowedTypes` list
502502
class VectorOfRankAndType<list<int> allowedRanks,
503503
list<Type> allowedTypes> : AllOfType<
504-
[VectorOf<allowedTypes>, VectorOfRank<allowedRanks>],
505-
VectorOf<allowedTypes>.summary # VectorOfRank<allowedRanks>.summary,
504+
[VectorOfNonZeroRankOf<allowedTypes>, VectorOfRank<allowedRanks>],
505+
VectorOfNonZeroRankOf<allowedTypes>.summary # VectorOfRank<allowedRanks>.summary,
506506
"::mlir::VectorType">;
507507

508508
// Fixed-width vector where the rank is from the given `allowedRanks` list and
@@ -516,7 +516,7 @@ class FixedVectorOfRankAndType<list<int> allowedRanks,
516516
// Whether the number of elements of a vector is from the given
517517
// `allowedLengths` list
518518
class IsVectorOfLengthPred<list<int> allowedLengths> :
519-
And<[IsVectorTypePred,
519+
And<[IsVectorOfNonZeroRankTypePred,
520520
Or<!foreach(allowedlength, allowedLengths,
521521
CPred<[{::llvm::cast<::mlir::VectorType>($_self).getNumElements()
522522
== }]
@@ -604,8 +604,8 @@ class ScalableVectorOfLength<list<int> allowedLengths> : Type<
604604
// list
605605
class VectorOfLengthAndType<list<int> allowedLengths,
606606
list<Type> allowedTypes> : AllOfType<
607-
[VectorOf<allowedTypes>, VectorOfLength<allowedLengths>],
608-
VectorOf<allowedTypes>.summary # VectorOfLength<allowedLengths>.summary,
607+
[VectorOfNonZeroRankOf<allowedTypes>, VectorOfLength<allowedLengths>],
608+
VectorOfNonZeroRankOf<allowedTypes>.summary # VectorOfLength<allowedLengths>.summary,
609609
"::mlir::VectorType">;
610610

611611
// Any fixed-length vector where the number of elements is from the given
@@ -658,7 +658,7 @@ class VectorWithTrailingDimScalableOfSizeAndType<list<int> allowedTrailingSizes,
658658
"::mlir::VectorType">;
659659

660660
// Unlike the following definitions, this one excludes 0-D vectors
661-
def AnyVector : VectorOf<[AnyType]>;
661+
def AnyVectorOfNonZeroRank : VectorOfNonZeroRankOf<[AnyType]>;
662662

663663
def AnyVectorOfAnyRank : VectorOfAnyRankOf<[AnyType]>;
664664

mlir/test/lib/Dialect/Test/TestOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2781,7 +2781,7 @@ def TestGraphLoopOp : TEST_Op<"graph_loop",
27812781
//===----------------------------------------------------------------------===//
27822782
// Test InferIntRangeInterface
27832783
//===----------------------------------------------------------------------===//
2784-
def InferIntRangeType : AnyTypeOf<[AnyInteger, Index, VectorOf<[AnyInteger, Index]>]>;
2784+
def InferIntRangeType : AnyTypeOf<[AnyInteger, Index, VectorOfNonZeroRankOf<[AnyInteger, Index]>]>;
27852785

27862786
def TestWithBoundsOp : TEST_Op<"with_bounds",
27872787
[DeclareOpInterfaceMethods<InferIntRangeInterface, ["inferResultRanges"]>,

0 commit comments

Comments
 (0)