We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1cd243 commit c8411d3Copy full SHA for c8411d3
mlir/lib/Conversion/VectorToArmSME/VectorToArmSME.cpp
@@ -249,7 +249,9 @@ struct ConstantOpToArmSMELowering : public OpRewritePattern<arith::ConstantOp> {
249
// ops that broadcast the constant to each tile slice.
250
auto loc = constantOp.getLoc();
251
252
- // Unpack 1-d vector type from 2-d vector type.
+ // 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).
255
VectorType tileSliceType = VectorType::Builder(tileType).dropDim(0);
256
auto denseAttr1D = DenseElementsAttr::get(
257
tileSliceType, denseAttr.getSplatValue<Attribute>());
0 commit comments