[Mlir-commits] [mlir] 68415e2 - [MLIR][Linalg] fix linalg.pack description (#167045)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Nov 11 06:00:38 PST 2025
Author: Thomas Preud'homme
Date: 2025-11-11T14:00:34Z
New Revision: 68415e2c15d7ecee82aeb815688525b4d3c33093
URL: https://github.com/llvm/llvm-project/commit/68415e2c15d7ecee82aeb815688525b4d3c33093
DIFF: https://github.com/llvm/llvm-project/commit/68415e2c15d7ecee82aeb815688525b4d3c33093.diff
LOG: [MLIR][Linalg] fix linalg.pack description (#167045)
Fix formula describing the mapping from inner_tiles to result shape.
When the comment says "tiles are added to the end of the result tensor"
it is meant to say tile dimensions are after the dimensions that have
been tiled.
Added:
Modified:
mlir/include/mlir/Dialect/Linalg/IR/LinalgRelayoutOps.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgRelayoutOps.td b/mlir/include/mlir/Dialect/Linalg/IR/LinalgRelayoutOps.td
index 238fa42cae427..784bdd8e22f1f 100644
--- a/mlir/include/mlir/Dialect/Linalg/IR/LinalgRelayoutOps.td
+++ b/mlir/include/mlir/Dialect/Linalg/IR/LinalgRelayoutOps.td
@@ -109,7 +109,7 @@ def Linalg_PackOp : Linalg_RelayoutOp<"pack", [
within [0, n).
- The tiled dimensions (of size `inner_tiles`) are added to the end of the
result tensor in the order in which they appear, i.e.
- `shape(result)[rank(result) + i] = inner_tiles[i]` for `0 <= i < k`.
+ `shape(result)[rank(source) + i] = inner_tiles[i]` for `0 <= i < k`.
- The following relationship for the tiled dimensions holds:
`shape(result)[inner_dims_pos[i]] = shape(source)[inner_dims_pos[i]] / inner_tiles[i]`,
where (⌈/⌉ indicates CeilDiv).
More information about the Mlir-commits
mailing list