[Mlir-commits] [mlir] [MLIR] Add reduction interface with tester to mlir-reduce (PR #166096)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Nov 6 10:02:40 PST 2025
================
@@ -46,6 +49,9 @@ class Tester {
/// Return whether the file in the given path is interesting.
Interestingness isInteresting(StringRef testCase) const;
+ void setTestScript(StringRef script) { testScript = script; }
----------------
aidint wrote:
Exactly, just because of default constructor on ReductionTreePass. The problem is that we need Tester on `initialize` (because we need context) to pass it to patterns, but we instantiate in on `reduceOp`.
But I guess this problem could have been solved by `unique_ptr`, am I right?
https://github.com/llvm/llvm-project/pull/166096
More information about the Mlir-commits
mailing list