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

Chao Chen llvmlistbot at llvm.org
Tue May 6 13:15:13 PDT 2025


================
@@ -38,6 +38,8 @@ def XeGPU_Dialect : Dialect {
     let useDefaultAttributePrinterParser = true;
 
     let extraClassDeclaration = [{
+      static constexpr const char *operandLayoutNamePrefix = "layout_operand_";
+      static constexpr const char *resultLayoutNamePrefix = "layout_result_";
       /// Checks if the given shape can be evenly distributed based on the layout
       /// and data factors provided by the LayoutAttr.
       static bool isEvenlyDistributable(llvm::ArrayRef<int64_t> shape, xegpu::LayoutAttr attr);
----------------
chencha3 wrote:

em, tried it. But it seems not work. since it is used in MLIRXeGPUDialect, while XeGPUUtils also depends on it. So put it in XeGPUUtils, will create a cyclic dependency between MLIRXeGPUDialect and XeGPUUtils. 

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


More information about the Mlir-commits mailing list