[Mlir-commits] [mlir] [mlir][core] in -mlir-print-ir-*, dump the pass options as well (PR #195198)

Jeremy Kun llvmlistbot at llvm.org
Thu May 7 20:48:12 PDT 2026


================
@@ -315,8 +317,19 @@ struct FileTreeIRPrinterConfig : public PassManager::IRPrinterConfig {
                             PrintCallbackFn printCallback) final {
     if (!shouldPrintBeforePass || !shouldPrintBeforePass(pass, operation))
       return;
-    std::unique_ptr<llvm::ToolOutputFile> file = createTreePrinterOutputPath(
-        operation, pass->getArgument(), treeDir, counters);
+
+    SmallVector<std::pair<std::string, std::string>> opAndSymbolNames;
+    std::string fileName;
+    {
+      std::lock_guard<std::mutex> lock(mutex);
----------------
j2kun wrote:

I reverted the mutex change, and now CI passes. That feels more concerning to me. But maybe that means I have plausible deniability to merge?

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


More information about the Mlir-commits mailing list