[Mlir-commits] [mlir] [mlir][Pass] Enable the option for reproducer generation without crashing (PR #75421)

Mehdi Amini llvmlistbot at llvm.org
Tue Jan 2 06:38:25 PST 2024


================
@@ -384,6 +399,13 @@ performActions(raw_ostream &os,
   if (failed(pm.run(*op)))
     return failure();
 
+  // Generate reproducers if requested
+  if (config.shouldGenerateReproducer()) {
+    StringRef anchorName = pm.getAnyOpAnchorName();
+    const auto &passes = pm.getPasses();
+    makeReproducer(anchorName, passes, op.get(), config.getReproduerFilename());
----------------
joker-eph wrote:

```suggestion
    makeReproducer(anchorName, passes, op.get(), config.getReproducerFilename());
```

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


More information about the Mlir-commits mailing list