[Mlir-commits] [mlir] [MLIR] Adding XeGPU 2d block operators (PR #84692)

Adam Siemieniuk llvmlistbot at llvm.org
Mon Mar 11 04:42:28 PDT 2024


================
@@ -23,4 +39,199 @@ class XeGPU_Op<string mnemonic, list<Trait> traits = []>:
           Op<XeGPU_Dialect, mnemonic, traits>;
 
 
+def XeGPU_CreateNdDescOp: XeGPU_Op<"create_nd_tdesc", [Pure, AttrSizedOperandSegments]> {
+
+  let summary = "create nd tensor descriptor operation";
+  let description = [{
+    The "create_nd_tdesc" operation creates a TensorDescType which represents
+    a sub-view of a 2D memory region (It can be extended to support N-D memory
----------------
adam-smnk wrote:

As per `XeGPU_BaseAddrType`, 1D memref is also accepted and verifier also doesn't complain.
Which behavior is intended?

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


More information about the Mlir-commits mailing list