[Mlir-commits] [mlir] [mlir][linalg] Take artificial padding into account for pack/unpack folding. (PR #150272)

Adam Siemieniuk llvmlistbot at llvm.org
Thu Jul 24 07:21:51 PDT 2025


================
@@ -89,6 +90,11 @@ Value createOrFoldDimOp(OpBuilder &b, Location loc, Value val, int64_t dim);
 OpFoldResult createFoldedDimOp(OpBuilder &b, Location loc, Value val,
                                int64_t dim);
 
+/// Returns the outer shape in the packed domain before applying the
+/// transposition.
+template <typename OpTy>
----------------
adam-smnk wrote:

It could use `std::enable_if_t` to constrain it to pack and unpack only.

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


More information about the Mlir-commits mailing list