Skip to content

Commit c8411d3

Browse files
committed
Update comment
1 parent c1cd243 commit c8411d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mlir/lib/Conversion/VectorToArmSME/VectorToArmSME.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ struct ConstantOpToArmSMELowering : public OpRewritePattern<arith::ConstantOp> {
249249
// ops that broadcast the constant to each tile slice.
250250
auto loc = constantOp.getLoc();
251251

252-
// Unpack 1-d vector type from 2-d vector type.
252+
// To fill a tile with a constant, we create a 1-D splat of the constant,
253+
// then move that into each tile slice (the largest unit we can set at once,
254+
// outside of operations like the outerproduct).
253255
VectorType tileSliceType = VectorType::Builder(tileType).dropDim(0);
254256
auto denseAttr1D = DenseElementsAttr::get(
255257
tileSliceType, denseAttr.getSplatValue<Attribute>());

0 commit comments

Comments
 (0)