@@ -1139,7 +1139,7 @@ def Vector_TransferReadOp :
11391139 ]>,
11401140 Arguments<(ins AnyShaped:$source, Variadic<Index>:$indices,
11411141 AffineMapAttr:$permutation_map, AnyType:$padding,
1142- OptionalAttr<BoolArrayAttr>:$masked )>,
1142+ OptionalAttr<BoolArrayAttr>:$in_bounds )>,
11431143 Results<(outs AnyVector:$vector)> {
11441144
11451145 let summary = "Reads a supervector from memory into an SSA vector value.";
@@ -1166,15 +1166,14 @@ def Vector_TransferReadOp :
11661166 The size of the slice is specified by the size of the vector, given as the
11671167 return type.
11681168
1169- An `ssa-value` of the same elemental type as the MemRef/Tensor is provided
1170- as the last operand to specify padding in the case of out-of-bounds
1171- accesses.
1169+ An SSA value `padding` of the same elemental type as the MemRef/Tensor is
1170+ provided to specify a fallback value in the case of out-of-bounds accesses.
11721171
11731172 An optional boolean array attribute is provided to specify which dimensions
1174- of the transfer need masking. When a dimension is specified as not requiring
1175- masking, the `vector.transfer_read` may be lowered to simple loads. The
1176- absence of this `masked` attribute signifies that all dimensions of the
1177- transfer need to be masked .
1173+ of the transfer are guaranteed to be within bounds. The absence of this
1174+ `in_bounds` attribute signifies that any dimension of the transfer may be
1175+ out-of-bounds. A `vector.transfer_read` can be lowered to a simple load if
1176+ all dimensions are specified to be within bounds .
11781177
11791178 This operation is called 'read' by opposition to 'load' because the
11801179 super-vector granularity is generally not representable with a single
@@ -1291,15 +1290,15 @@ def Vector_TransferReadOp :
12911290 // Builder that sets padding to zero.
12921291 OpBuilder<(ins "VectorType":$vector, "Value":$source,
12931292 "ValueRange":$indices, "AffineMap":$permutationMap,
1294- CArg<"ArrayRef<bool>", "{}">:$maybeMasked )>,
1293+ CArg<"ArrayRef<bool>", "{}">:$inBounds )>,
12951294 // Builder that sets padding to 'getMinorIdentityMap'.
12961295 OpBuilder<(ins "VectorType":$vector, "Value":$source,
12971296 "ValueRange":$indices, "Value":$padding,
1298- CArg<"ArrayRef<bool>", "{}">:$maybeMasked )>,
1297+ CArg<"ArrayRef<bool>", "{}">:$inBounds )>,
12991298 // Builder that sets permutation map (resp. padding) to
13001299 // 'getMinorIdentityMap' (resp. zero).
13011300 OpBuilder<(ins "VectorType":$vector, "Value":$source,
1302- "ValueRange":$indices, CArg<"ArrayRef<bool>", "{}">:$maybeMasked)>
1301+ "ValueRange":$indices, CArg<"ArrayRef<bool>", "{}">:$inBounds)>,
13031302 ];
13041303
13051304 let hasFolder = 1;
@@ -1314,7 +1313,7 @@ def Vector_TransferWriteOp :
13141313 Arguments<(ins AnyVector:$vector, AnyShaped:$source,
13151314 Variadic<Index>:$indices,
13161315 AffineMapAttr:$permutation_map,
1317- OptionalAttr<BoolArrayAttr>:$masked )>,
1316+ OptionalAttr<BoolArrayAttr>:$in_bounds )>,
13181317 Results<(outs Optional<AnyRankedTensor>:$result)> {
13191318
13201319 let summary = "The vector.transfer_write op writes a supervector to memory.";
@@ -1343,10 +1342,10 @@ def Vector_TransferWriteOp :
13431342 The size of the slice is specified by the size of the vector.
13441343
13451344 An optional boolean array attribute is provided to specify which dimensions
1346- of the transfer need masking. When a dimension is specified as not requiring
1347- masking, the `vector.transfer_write` may be lowered to simple stores. The
1348- absence of this `mask` attribute signifies that all dimensions of the
1349- transfer need to be masked .
1345+ of the transfer are guaranteed to be within bounds. The absence of this
1346+ `in_bounds` attribute signifies that any dimension of the transfer may be
1347+ out-of-bounds. A `vector.transfer_write` can be lowered to a simple store
1348+ if all dimensions are specified to be within bounds .
13501349
13511350 This operation is called 'write' by opposition to 'store' because the
13521351 super-vector granularity is generally not representable with a single
@@ -1387,13 +1386,13 @@ def Vector_TransferWriteOp :
13871386 let builders = [
13881387 // Builder that sets permutation map to 'getMinorIdentityMap'.
13891388 OpBuilder<(ins "Value":$vector, "Value":$source, "ValueRange":$indices,
1390- CArg<"ArrayRef<bool>", "{}">:$maybeMasked )>,
1389+ CArg<"ArrayRef<bool>", "{}">:$inBounds )>,
13911390 OpBuilder<(ins "Value":$vector, "Value":$source, "ValueRange":$indices,
13921391 "AffineMap":$permutationMap)>,
13931392 OpBuilder<(ins "Value":$vector, "Value":$source, "ValueRange":$indices,
1394- "AffineMapAttr":$permutationMap, "ArrayAttr":$masked )>,
1393+ "AffineMapAttr":$permutationMap, "ArrayAttr":$inBounds )>,
13951394 OpBuilder<(ins "Value":$vector, "Value":$source, "ValueRange":$indices,
1396- "AffineMap":$permutationMap, "ArrayAttr":$masked )>,
1395+ "AffineMap":$permutationMap, "ArrayAttr":$inBounds )>,
13971396 ];
13981397
13991398 let hasFolder = 1;
0 commit comments