[Mlir-commits] [mlir] [MLIR][XeGPU] Refine XeGPU definitions (PR #100763)
Chao Chen
llvmlistbot at llvm.org
Fri Aug 2 11:51:54 PDT 2024
================
@@ -53,47 +53,56 @@ def XeGPU_CreateNdDescOp: XeGPU_Op<"create_nd_tdesc", [Pure, ViewLikeOpInterface
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
- region if needed in future). Elements in the subview continuous in each
- dimension. It encodes the following important information for supporting
- Intel hardware features:
-
- * source: an object representing (starting address/pointer of) a 2D memory region.
- It can be either a 2D memref object, or simply a pointer represented by uint64_t type.
- for the later case, the shape and layout information of the 2D memory region should
- be explicitly passed via `shape` and `strides` parameters.
- * offsets: two index values represents offsets from the "source" at the each dimension
- at which the subview of the target memory will be created. It is encoded via two
- variables, including "offsets" and "const_offsets", such that it can
- accept various forms, such as, operands (e.g., [%c0, %c]) and attributes (e.g., [2, 4]).
- * shape: the shape information of the memory region pointed by the "source". It is
- typically encoded via the MemRefType of the source, e.g., memref<4096x4096xf16>.
+ a sub-view of a 1D/2D memory region inside the one or two innermost dimensions
+ of the source. (It can be extended to support n-D memory region if needed in
+ future). Elements in the subview continuous in each dimension. It encodes the
+ following important information for supporting Intel hardware features:
+
+ * source: an object representing (starting address/pointer of) a memory region.
+ It can be either a memref object, or simply a pointer represented by uint64_t type.
+ for the later case, the shape and layout information of the memory region should
----------------
chencha3 wrote:
Thanks, fixed it.
https://github.com/llvm/llvm-project/pull/100763
More information about the Mlir-commits
mailing list