[Mlir-commits] [mlir] feat(linalg): add a way to pass controlFn to `foldIntoPackUnpackPatterns` (PR #143685)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Jun 24 07:21:20 PDT 2025


https://github.com/Max191 commented:

You can add a test for the control function by adding an additional flag here: https://github.com/llvm/llvm-project/blob/bd96918f01cfd7642a20a4a5bb0e7d10ad7f2360/mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp#L137

Similar to what is done in elementwise fusion: https://github.com/llvm/llvm-project/blob/bd96918f01cfd7642a20a4a5bb0e7d10ad7f2360/mlir/test/lib/Dialect/Linalg/TestLinalgElementwiseFusion.cpp#L134-L139

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


More information about the Mlir-commits mailing list