[all-commits] [llvm/llvm-project] ace510: feat(linalg): add a way to pass controlFn to `fold...
Ege Beysel via All-commits
all-commits at lists.llvm.org
Tue Jul 1 07:23:00 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ace5108f373e963181da72c7f3c7d31029b30626
https://github.com/llvm/llvm-project/commit/ace5108f373e963181da72c7f3c7d31029b30626
Author: Ege Beysel <beyselege at gmail.com>
Date: 2025-07-01 (Tue, 01 Jul 2025)
Changed paths:
M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
M mlir/lib/Dialect/Linalg/Transforms/PackAndUnpackPatterns.cpp
M mlir/test/Dialect/Tensor/fold-into-pack-and-unpack.mlir
M mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp
Log Message:
-----------
feat(linalg): add a way to pass controlFn to `foldIntoPackUnpackPatterns` (#143685)
This PR adds a mechanism, so that downstream consumers can pass in
control functions for the application of these patterns. This change
shouldn't affect any consumers of this method that do not specify a
controlFn. The controlFn always gets the source operand of the consumer
in each of the patterns as a parameter.
In IREE, we (will) use it to control preventing folding patterns that
would inhibit fusion. See IREE issue
[#20896](https://github.com/iree-org/iree/issues/20896) for more
details.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list