@@ -23,7 +23,7 @@ using namespace mlir::linalg;
23
23
#define DBGSNL () (llvm::dbgs() << " \n " )
24
24
25
25
// / Compute the padded shape of the given operand. The operand is padded to a
26
- // / static bounding box according to the specified options.
26
+ // / static bounding box according to the specified padding options.
27
27
static LogicalResult computePaddedShape (linalg::LinalgOp opToPad,
28
28
OpOperand *opOperand,
29
29
const LinalgPaddingOptions &options,
@@ -75,7 +75,7 @@ static LogicalResult computePaddedShape(linalg::LinalgOp opToPad,
75
75
presburger::BoundType::UB, opOperand->get (),
76
76
/* dim=*/ i, /* stopCondition=*/ nullptr , /* closedUB=*/ true );
77
77
if (failed (upperBound)) {
78
- LLVM_DEBUG (DBGS () << " ----count not compute a bounding box for padding" );
78
+ LLVM_DEBUG (DBGS () << " ----could not compute a bounding box for padding" );
79
79
return failure ();
80
80
}
81
81
paddedShape[i] = ceil (*upperBound, shapeDimToMultiple[i]);
@@ -89,7 +89,7 @@ static LogicalResult computePaddedShape(linalg::LinalgOp opToPad,
89
89
// / the nofold flag found in "paddingValues" and "packPaddings", respectively.
90
90
// /
91
91
// / Exit early and return the `opOperand` value if it already has the requested
92
- // / shape. I .e.:
92
+ // / shape. i .e.:
93
93
// / - static shape
94
94
// / - nofold is not set
95
95
// / - dim sizes are multiples of "padToMultipleOf"
@@ -232,7 +232,7 @@ linalg::rewriteAsPaddedOp(RewriterBase &rewriter, LinalgOp opToPad,
232
232
233
233
// Copy back unpadded results to the original destination (i.e., inits of the
234
234
// linalg op), so that the destination buffer of the computation does not
235
- // change. If the padding folds away, this will materizalize as a memcpy
235
+ // change. If the padding folds away, this will materialize as a memcpy
236
236
// between two identical buffers, which will then also fold away.
237
237
assert (static_cast <int64_t >(paddedSubtensorResults.size ()) ==
238
238
opToPad.getNumDpsInits () &&
0 commit comments