[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:17:25 PDT 2026
================
@@ -1560,17 +1722,25 @@ void XeGPUWgToSgDistributePass::runOnOperation() {
return isLegal(layout);
});
- target.addDynamicallyLegalOp<vector::ShapeCastOp, vector::StepOp,
- vector::TransposeOp, vector::BroadcastOp,
- vector::MultiDimReductionOp,
- vector::ConstantMaskOp, vector::CreateMaskOp>(
+ target.addDynamicallyLegalOp<
+ vector::ShapeCastOp, vector::StepOp, vector::TransposeOp,
+ vector::BroadcastOp, vector::MultiDimReductionOp, vector::ConstantMaskOp,
+ vector::CreateMaskOp, vector::BitCastOp, vector::InterleaveOp>(
[=](Operation *op) -> bool {
// Check for either a SliceAttr or LayoutAttr on the result.
auto layout =
xegpu::getTemporaryLayout(dyn_cast<OpResult>(op->getResult(0)));
return isLegal(layout);
});
+ target.addDynamicallyLegalOp<vector::DeinterleaveOp>(
+ [=](vector::DeinterleaveOp op) -> bool {
+ // DeinterleaveOp has two results, check the first one
----------------
Jianhui-Li wrote:
generalized
https://github.com/llvm/llvm-project/pull/194985
More information about the Mlir-commits
mailing list