[Mlir-commits] [mlir] [MLIR][XeGPU] Refactor isEvenlyDistributable() to Layout attribute interface (PR #191945)
Jianhui Li
llvmlistbot at llvm.org
Wed Apr 15 09:40:21 PDT 2026
================
@@ -687,6 +728,11 @@ def XeGPU_SliceAttr : XeGPUAttr<"Slice", "slice", [DistributeLayoutAttr]> {
return parent.isForSubgroup();
}
+ bool isForLane() const {
+ auto parent = dyn_cast<LayoutAttr>(getParent());
----------------
Jianhui-Li wrote:
no need to flatten().
https://github.com/llvm/llvm-project/pull/191945
More information about the Mlir-commits
mailing list