Skip to content

Commit afc0314

Browse files
committed
fixup! fixup! [mlir][vector][nfc] Improve comments in getCompressedMaskOp
Final tweaks
1 parent 1fc1fb7 commit afc0314

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,18 @@ using namespace mlir;
5757
///
5858
/// %mask = [1, 1, 0, 0, 0, 0]
5959
///
60-
/// will first be padded in the front with number of `numFrontPadElems` zeros,
61-
/// and pad zeros in the back to make the number of elements a multiple of
62-
/// `numSrcElemesPerDest` (just to make it easier to compute). The new mask will
63-
/// be:
60+
/// will first be padded in the front with `numFrontPadElems` zeros, and zeros
61+
/// will be added in the back to make the number of elements a multiple of
62+
/// `numSrcElemsPerDest` (for easier computation). The resulting mask will be:
63+
///
6464
/// %mask = [0, 1, 1, 0, 0, 0, 0, 0]
6565
///
6666
/// then it will return the following new compressed mask:
6767
///
6868
/// %mask = [1, 1, 0, 0]
6969
///
70-
/// NOTE: `numFrontPadElems` must be strictly smaller than `numSrcElemsPerDest`.
70+
/// NOTE: `numFrontPadElems` is assumed to be strictly smaller than
71+
/// `numSrcElemsPerDest`.
7172
static FailureOr<Operation *> getCompressedMaskOp(OpBuilder &rewriter,
7273
Location loc, Value mask,
7374
int numSrcElems,

0 commit comments

Comments
 (0)