[Mlir-commits] [mlir] [MLIR][XeGPU] Allow create mem desc from 2d memref (PR #167767)

Sang Ik Lee llvmlistbot at llvm.org
Mon Nov 17 10:41:10 PST 2025


================
@@ -1304,11 +1304,11 @@ def XeGPU_CreateMemDescOp: XeGPU_Op<"create_mem_desc", [Pure,
     as the underlying shared local memory.
 
     Arguments:
-     - `source` : a 1D statically shaped memref with element type i8, representing the raw SLM buffer.
+     - `source` : 1D or 2D statically shape memref, representing the raw SLM buffer. When the source is provided as 1D memref, its type must be i8. 
----------------
silee2 wrote:

Or at least add more information as to why i8 is required.
I may be wrong but feel like the 1D case is designed to be similar to memref.view https://mlir.llvm.org/docs/Dialects/MemRef/#memrefview-memrefviewop

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


More information about the Mlir-commits mailing list