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

Han-Chung Wang llvmlistbot at llvm.org
Thu Jul 24 10:35:40 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>
----------------
hanhanW wrote:

I thought that explicit instantiation is good enough, but the error message is worse than using `std::enable_if_t`. E.g., it only raises linking errors. So I added `enable_if_t` as well, thanks!

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


More information about the Mlir-commits mailing list