[Mlir-commits] [mlir] [MLIR] Add reduction interface with tester to mlir-reduce (PR #166096)
Jacques Pienaar
llvmlistbot at llvm.org
Sun Nov 2 22:33:37 PST 2025
================
@@ -51,6 +52,31 @@ class DialectReductionPatternInterface
DialectReductionPatternInterface(Dialect *dialect) : Base(dialect) {}
};
+/// This interface extends the `dialectreductionpatterninterface` by allowing
----------------
jpienaar wrote:
Could we add this as a option to the above interface and have it be empty by default?
The easiest may even be to convert these plain C++ ones to using ODS (move definition to TableGen file) then we'd get extra documentation generation too and specifying default implementations is supported there.
That way, there is both no breakage but also just one interface. And it feels like these are peers. One would ideally want most to be the former (as then search is handled by infra, while the tester one is more internalized state/search).
https://github.com/llvm/llvm-project/pull/166096
More information about the Mlir-commits
mailing list