[Mlir-commits] [mlir] [mlir][XeGPU] add WgToSg distribution pattern for load_matrix and store_matrix. (PR #154403)
Chao Chen
llvmlistbot at llvm.org
Wed Aug 20 10:38:44 PDT 2025
================
@@ -450,6 +466,13 @@ def XeGPU_SliceAttr : XeGPUAttr<"Slice", "slice", [LayoutTrait]> {
return parent.isSgLayout();
}
+ int64_t getNumSubgroups() {
+ std::optional<SmallVector<int64_t>> sgLayout = getSgLayoutAsInt();
+ if (sgLayout.has_value())
+ return computeProduct(*sgLayout);
+ return 0;
----------------
chencha3 wrote:
fixed.
https://github.com/llvm/llvm-project/pull/154403
More information about the Mlir-commits
mailing list