[Mlir-commits] [mlir] [MLIR][XeGPU] Add wg-to-sg distirbution for dpasmx, bitcast, interleave, and deinterleave (PR #194985)
Jianhui Li
llvmlistbot at llvm.org
Wed May 6 10:14:16 PDT 2026
================
@@ -183,6 +183,32 @@ xegpu::getDistributeLayoutAttr(const OpOperand &opr) {
return dpasOp.getLayoutCdAttr();
}
}
+ if (auto dpasMxOp = dyn_cast<xegpu::DpasMxOp>(op)) {
+ // DpasMxOp has operands: a, b, optional acc, optional scale_a, optional
+ // scale_b Use AttrSizedOperandSegments to determine which operand this is
+ auto segmentSizesAttr = dpasMxOp->getAttrOfType<DenseI32ArrayAttr>(
+ dpasMxOp.getOperandSegmentSizesAttrName());
+ if (!segmentSizesAttr)
+ return nullptr;
+
+ auto segmentSizes = segmentSizesAttr.asArrayRef();
----------------
Jianhui-Li wrote:
fixed
https://github.com/llvm/llvm-project/pull/194985
More information about the Mlir-commits
mailing list