[Mlir-commits] [mlir] [MLIR][XeGPU] Add unrolling/blocking support for 3D+ batched operations (PR #201725)
Charitha Saumya
llvmlistbot at llvm.org
Fri Jun 5 15:49:28 PDT 2026
================
@@ -432,24 +489,25 @@ void XeGPUBlockingPass::runOnOperation() {
options.setNativeShapeFn([&](Operation *op) { return getTileShape(op); });
- options.setUnrolledTypesFn([&](ShapedType type, ArrayRef<int64_t> tileShape,
- bool returnSingleType = false) {
+ options.setUnrolledTypesFn([&](ShapedType type, ArrayRef<int64_t> tileShape) {
Type elemTy = type.getElementType();
- Type newTy;
if (auto tdescTy = dyn_cast<xegpu::TensorDescType>(type)) {
Attribute encoding = tdescTy.getEncoding();
- newTy =
+ xegpu::TensorDescType newTy =
xegpu::TensorDescType::get(ctx, tileShape, elemTy, encoding,
tdescTy.getLayoutAttr().dropInstData());
- } else {
- newTy = VectorType::get(tileShape, elemTy);
+ // compute the product of batch (higher) dimensions
----------------
charithaintc wrote:
nit: UC letters
https://github.com/llvm/llvm-project/pull/201725
More information about the Mlir-commits
mailing list