[Mlir-commits] [mlir] [MLIR][XeGPU] Clean up helpers in XeGPUPropagateLayout (PR #175857)
Jianhui Li
llvmlistbot at llvm.org
Wed Jan 14 03:47:40 PST 2026
================
@@ -287,58 +287,47 @@ static LayoutInfo getDefaultSIMTLayoutInfo(mlir::MLIRContext *ctx,
return LayoutInfo(xegpu::LayoutAttr::get(ctx, {1, subgroupSize}, {1, 1}));
}
-/// Helper to get the default layout for a vector type.
-static LayoutInfo getDefaultSIMTLayoutInfo(VectorType vectorTy,
- const xegpu::uArch::uArch *uArch,
- unsigned packingSize,
- bool isScattered = false) {
+/// Helper to get the default layout for 2D block operations.
+template <typename Ty>
+static LayoutInfo
+getSIMTLayoutInfoFor2DBlockOp(Ty ty, const xegpu::uArch::uArch *uArch,
----------------
Jianhui-Li wrote:
Can these two functions have more consistent name: getSIMTLayoutInforForBlockIO
getSIMTLayoutInforForScatterIO
https://github.com/llvm/llvm-project/pull/175857
More information about the Mlir-commits
mailing list