[Mlir-commits] [mlir] [mlir][xegpu] Add SIMT distribution support for GEMM transpose B case. (PR #155517)
Charitha Saumya
llvmlistbot at llvm.org
Fri Sep 12 16:15:08 PDT 2025
================
@@ -441,14 +471,128 @@ void LayoutInfoPropagation::visitVectorMultiReductionOp(
}
// Given that the result is 1D, the layout of the operand should be 2D with
// default layout.
- LayoutInfo operandLayout = getDefaultSIMTLayoutInfo(2);
+ LayoutInfo operandLayout =
+ getDefaultSIMTLayoutInfo(reduction->getContext(), 2);
propagateIfChanged(operands[0], operands[0]->meet(operandLayout));
// Accumulator should have the same layout as the result.
propagateIfChanged(operands[1], operands[1]->meet(resultLayout));
}
-/// Propagate the layout of the result tensor to the source tensor descriptor in
-/// UpdateNdOffsetOp.
+void LayoutInfoPropagation::visitVectorBroadCastOp(
+ vector::BroadcastOp broadcast, ArrayRef<LayoutInfoLattice *> operands,
+ ArrayRef<const LayoutInfoLattice *> results) {
+ // The layout of the result must be present.
+ LayoutInfo resultLayout = results[0]->getValue();
+ if (!resultLayout.isAssigned())
+ return;
+ // Only consider vector to vector broadcasts for now.
+ VectorType resultTy = broadcast.getResultVectorType();
+ VectorType sourceTy = dyn_cast<VectorType>(broadcast.getSourceType());
+ if (!sourceTy) {
+ broadcast.emitWarning("Expecting source type to be a vector type.");
+ return;
+ }
+
+ // Only consider 2D -> 2D broadcast.
----------------
charithaintc wrote:
fixed.
https://github.com/llvm/llvm-project/pull/155517
More information about the Mlir-commits
mailing list