[Mlir-commits] [mlir] [mlir][linalg] Update vectorization of linalg.pack (PR #163539)

Han-Chung Wang llvmlistbot at llvm.org
Mon Oct 27 10:20:35 PDT 2025


================
@@ -33,23 +33,13 @@ namespace linalg {
 //===----------------------------------------------------------------------===//
 // Utilities for inferring various semantics properties of Linalg ops.
 //===----------------------------------------------------------------------===//
-/// Shell function to compute the Destination Permutation of PackOp
-/// This function uses the helper function `computePackUnPackPerm` to get
-/// the permutation vector. Only major difference between UnPack and Pack is
-/// that packOp uses destination rank whereas unpack Uses source rank.
+/// Compute inverse permutation for the destination tensor (i.e. in the packed
----------------
hanhanW wrote:

picky nit: I'd add a blank line before this comment. It looks easier to me; it is a new chunk of the declaration.

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


More information about the Mlir-commits mailing list