Skip to content

Commit 6b2204f

Browse files
committed
Comment update.
Added punctutation, removed inline code '`' in Doxygen
1 parent fbbb43f commit 6b2204f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,20 +1639,16 @@ static VectorType dropNonScalableUnitDimFromType(VectorType inVecTy) {
16391639
/// required to be rank > 1.
16401640
///
16411641
/// Ex:
1642-
/// ```
16431642
/// %mul = arith.mulf %B_row, %A_row : vector<1x[4]xf32>
16441643
/// %cast = vector.shape_cast %mul : vector<1x[4]xf32> to vector<[4]xf32>
1645-
/// ```
16461644
///
16471645
/// gets converted to:
16481646
///
1649-
/// ```
16501647
/// %B_row_sc = vector.shape_cast %B_row : vector<1x[4]xf32> to vector<[4]xf32>
16511648
/// %A_row_sc = vector.shape_cast %A_row : vector<1x[4]xf32> to vector<[4]xf32>
16521649
/// %mul = arith.mulf %B_row_sc, %A_row_sc : vector<[4]xf32>
16531650
/// %cast_new = vector.shape_cast %mul : vector<[4]xf32> to vector<1x[4]xf32>
16541651
/// %cast = vector.shape_cast %cast_new : vector<1x[4]xf32> to vector<[4]xf32>
1655-
/// ```
16561652
///
16571653
/// Patterns for folding shape_casts should instantly eliminate `%cast_new` and
16581654
/// `%cast`.
@@ -1689,12 +1685,12 @@ struct DropUnitDimFromElementwiseOps final
16891685

16901686
VectorType newResultVectorType =
16911687
dropNonScalableUnitDimFromType(resultVectorType);
1692-
// Create an updated elementwise Op without unit dim
1688+
// Create an updated elementwise Op without unit dim.
16931689
Operation *elementwiseOp =
16941690
rewriter.create(loc, op->getName().getIdentifier(), newOperands,
16951691
newResultVectorType, op->getAttrs());
16961692

1697-
// Restore the unit dim by applying vector.shape_cast to the result
1693+
// Restore the unit dim by applying vector.shape_cast to the result.
16981694
rewriter.replaceOpWithNewOp<ShapeCastOp>(op, resultVectorType,
16991695
elementwiseOp->getResult(0));
17001696

0 commit comments

Comments
 (0)