[Mlir-commits] [mlir] [MLIR][XeGPU] Add unroll patterns for XeGPU (1/N) (PR #137010)

Chao Chen llvmlistbot at llvm.org
Tue May 6 11:49:39 PDT 2025


================
@@ -274,6 +296,16 @@ def XeGPU_LayoutAttr : XeGPUAttr<"Layout", "layout"> {
         return attr.size();
       return 0;
     }
+
+    LayoutAttr dropSgLayoutAndData() {
+      return LayoutAttr::get(getContext(), nullptr, nullptr, getInstData(),
+                             getLaneLayout(), getLaneData(), getOrder());
+    }
+
+    LayoutAttr dropInstData() {
+      return LayoutAttr::get(getContext(), getSgLayout(), getSgData(), nullptr,
+                             getLaneLayout(), getLaneData(), getOrder());
+    }
----------------
chencha3 wrote:

logically `dropLaneLayoutAndData` is going to return a nullptr. I saw you implemented a dropLayout, I feel that is what you may need. 

https://github.com/llvm/llvm-project/pull/137010


More information about the Mlir-commits mailing list