diff options
| author | River Riddle <riverriddle@google.com> | 2019-07-08 14:05:37 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-07-08 14:16:08 -0700 |
| commit | 5e4f8b7e7b83d48ca59ac92227e0872bb6923dec (patch) | |
| tree | 80431ca1ecd7f1ca69017e4fddae41c9d38c6128 /mlir/lib/Support | |
| parent | 86580e71d2b9c193a4921322bd7ff638421904ec (diff) | |
| download | bcm5719-llvm-5e4f8b7e7b83d48ca59ac92227e0872bb6923dec.tar.gz bcm5719-llvm-5e4f8b7e7b83d48ca59ac92227e0872bb6923dec.zip | |
NFC: Make the 'disable-pass-threading' flag a PassManagerOption.
This also adds the ability to programmatically disable threading.
PiperOrigin-RevId: 257051809
Diffstat (limited to 'mlir/lib/Support')
| -rw-r--r-- | mlir/lib/Support/MlirOptMain.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/lib/Support/MlirOptMain.cpp b/mlir/lib/Support/MlirOptMain.cpp index d2957c17480..ab7b021f920 100644 --- a/mlir/lib/Support/MlirOptMain.cpp +++ b/mlir/lib/Support/MlirOptMain.cpp @@ -54,14 +54,14 @@ performActions(raw_ostream &os, bool verifyDiagnostics, bool verifyPasses, if (!module) return failure(); - // Run each of the passes that were selected. + // Apply any pass manager command line options. PassManager pm(verifyPasses); + applyPassManagerCLOptions(pm); + + // Run each of the passes that were selected. for (const auto *passEntry : passList) passEntry->addToPipeline(pm); - // Apply any pass manager command line options. - applyPassManagerCLOptions(pm); - // Run the pipeline. if (failed(pm.run(*module))) return failure(); |

