llvm-project/mlir/test/Pass
River Riddle 6569cf2a44 [mlir] Add a ThreadPool to MLIRContext and refactor MLIR threading usage
This revision refactors the usage of multithreaded utilities in MLIR to use a common
thread pool within the MLIR context, in addition to a new utility that makes writing
multi-threaded code in MLIR less error prone. Using a unified thread pool brings about
several advantages:

* Better thread usage and more control
We currently use the static llvm threading utilities, which do not allow multiple
levels of asynchronous scheduling (even if there are open threads). This is due to
how the current TaskGroup structure works, which only allows one truly multithreaded
instance at a time. By having our own ThreadPool we gain more control and flexibility
over our job/thread scheduling, and in a followup can enable threading more parts of
the compiler.

* The static nature of TaskGroup causes issues in certain configurations
Due to the static nature of TaskGroup, there have been quite a few problems related to
destruction that have caused several downstream projects to disable threading. See
D104207 for discussion on some related fallout. By having a ThreadPool scoped to
the context, we don't have to worry about destruction and can ensure that any
additional MLIR thread usage ends when the context is destroyed.

Differential Revision: https://reviews.llvm.org/D104516
2021-06-23 01:29:24 +00:00
..
crash-recovery.mlir [mlir] Refactor the implementation of pass crash reproducers 2021-05-19 16:59:53 -07:00
dynamic-pipeline-fail-on-parent.mlir [MLIR] Extend Symbol verification to reject public symbol declarations. 2020-11-16 16:05:32 -08:00
dynamic-pipeline-nested.mlir [mlir][Inliner] Refactor the inliner to use nested pass pipelines instead of just canonicalization 2020-12-14 18:09:47 -08:00
dynamic-pipeline.mlir Implement a new kind of Pass: dynamic pass pipeline 2020-09-22 18:51:54 +00:00
invalid-pass.mlir [mlir] Add error message when failing to add pass 2020-12-29 14:20:19 -08:00
ir-printing.mlir [mlir-ir-printing] Prefix the dump message with the split marker(// -----) 2021-06-10 17:34:50 -07:00
pass-timing.mlir [mlir] Add a ThreadPool to MLIRContext and refactor MLIR threading usage 2021-06-23 01:29:24 +00:00
pipeline-options-parsing.mlir [mlir] Add support for filtering patterns based on debug names and labels 2021-06-02 12:05:25 -07:00
pipeline-parsing.mlir [mlir] Add a ThreadPool to MLIRContext and refactor MLIR threading usage 2021-06-23 01:29:24 +00:00
pipeline-stats.mlir [ADT] Remove StatisticBase and make NoopStatistic empty 2021-04-26 16:47:32 -07:00
run-reproducer.mlir [mlir-ir-printing] Prefix the dump message with the split marker(// -----) 2021-06-10 17:34:50 -07:00