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

Puyan Lotfi llvmlistbot at llvm.org
Tue Jan 2 06:57:06 PST 2024


================
@@ -151,6 +151,21 @@ struct MlirOptMainConfigCLOptions : public MlirOptMainConfig {
 
     static cl::list<std::string> passPlugins(
         "load-pass-plugin", cl::desc("Load passes from plugin library"));
+
+    static cl::opt<std::string, /*ExternalStorage=*/true> reproduerFilename(
+        "mlir-reproducer-filename",
+        llvm::cl::desc("Location of the .mlir reproducer output file path"
+                       " the --mlir-generate-reproducer=1"
+                       " (no crash required)"),
+        cl::location(reproduerFilenameFlag), cl::init(""),
+        cl::value_desc("filename"));
+    static cl::opt<bool, /*ExternalStorage=*/true> generateReproducer(
+        "mlir-generate-reproducer",
+        llvm::cl::desc("Generate a reproducer at"
+                       " --mlir-reproducer-filename=<filename> "
+                       " (no crash required)"),
+        cl::location(generateReproducerFlag), cl::init(false));
----------------
plotfi wrote:

Oh I see, I understand now. 

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


More information about the Mlir-commits mailing list