[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:21:19 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:

I tried `unique_ptr` but it deletes the copy constructor on the pass class, failing the compilation. I think another approach would be keeping a raw pointer, but I'm not sure where to free the pointer, even if this is a good solution.

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


More information about the Mlir-commits mailing list