[Mlir-commits] [mlir] [mlir][core] in -mlir-print-ir-*, dump the pass options as well (PR #195198)
Matthias Springer
llvmlistbot at llvm.org
Mon May 4 23:59:29 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);
----------------
matthias-springer wrote:
I don't really understand yet why the mutex is needed here. Was it already broken before?
https://github.com/llvm/llvm-project/pull/195198
More information about the Mlir-commits
mailing list