Skip to content

Commit 28ace78

Browse files
authored
[mlir][vector] NFC: Rename helper to check for all ones mask for consistency (#71810)
Following up on #71676 (comment)
1 parent c2a1966 commit 28ace78

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2283,7 +2283,7 @@ def Vector_ConstantMaskOp :
22832283
}
22842284

22852285
/// Return whether the mask is a uniform vector of `1`s.
2286-
bool isFullMask();
2286+
bool isAllOnesMask();
22872287
}];
22882288

22892289
let assemblyFormat = "$mask_dim_sizes attr-dict `:` type(results)";

mlir/lib/Dialect/Vector/IR/VectorOps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3947,7 +3947,7 @@ static LogicalResult foldTransferFullMask(TransferOp op) {
39473947
if (!constantMask)
39483948
return failure();
39493949

3950-
if (!constantMask.isFullMask())
3950+
if (!constantMask.isAllOnesMask())
39513951
return failure();
39523952

39533953
op.getMaskMutable().clear();
@@ -5622,7 +5622,7 @@ LogicalResult ConstantMaskOp::verify() {
56225622
return success();
56235623
}
56245624

5625-
bool ConstantMaskOp::isFullMask() {
5625+
bool ConstantMaskOp::isAllOnesMask() {
56265626
auto resultType = getVectorType();
56275627
// Check the corner case of 0-D vectors first.
56285628
if (resultType.getRank() == 0) {

0 commit comments

Comments
 (0)