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

Krut Patel llvmlistbot at llvm.org
Fri May 8 13:55:36 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);
----------------
iamkroot wrote:

Sure, that might just fix the process hang since it avoids walking the full module. The commit has been picked up by CI so we should know for sure in a few hours or so.

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


More information about the Mlir-commits mailing list