Ensure that multi-threading is disabled when enabling IRPrinting with module scope
authorMehdi Amini <joker-eph@gmail.com>
Sat, 29 Feb 2020 06:04:38 +0000 (06:04 +0000)
committerMehdi Amini <joker-eph@gmail.com>
Sat, 29 Feb 2020 18:28:54 +0000 (18:28 +0000)
commit07aa9ae23b8e19c185ec67d56a5157e6d34adb8e
treee243586edfbbad7f53861b98acf1f20feecd01d6
parent692e0c964872cc31b7e873564d6334a986f47dc8
Ensure that multi-threading is disabled when enabling IRPrinting with module scope

This is avoid the user to shoot themselves in the foot and encounter
strange crashes that are confusing until one run with TSAN.

Differential Revision: https://reviews.llvm.org/D75399
mlir/include/mlir/Pass/PassManager.h
mlir/lib/Pass/IRPrinting.cpp
mlir/lib/Pass/Pass.cpp