llvm-project/mlir/lib/Pass
Fabian Schuiki 33f908c428
[MLIR] Factor pass timing out into a dedicated timing manager
This factors out the pass timing code into a separate `TimingManager`
that can be plugged into the `PassManager` from the outside. Users are
able to provide their own implementation of this manager, and use it to
time additional code paths outside of the pass manager. Also allows for
multiple `PassManager`s to run and contribute to a single timing report.

More specifically, moves most of the existing infrastructure in
`Pass/PassTiming.cpp` into a new `Support/Timing.cpp` file and adds a
public interface in `Support/Timing.h`. The `PassTiming` instrumentation
becomes a wrapper around the new timing infrastructure which adapts the
instrumentation callbacks to the new timers.

Reviewed By: rriddle, lattner

Differential Revision: https://reviews.llvm.org/D100647
2021-05-12 18:14:51 +02:00
..
CMakeLists.txt [MLIR][cmake] don't glob for sources. 2020-05-13 23:21:01 -07:00
IRPrinting.cpp [mlir] Remove the MutableDictionaryAttr class 2020-12-17 17:18:42 -08:00
Pass.cpp [MLIR] Factor pass timing out into a dedicated timing manager 2021-05-12 18:14:51 +02:00
PassDetail.h [mlir] Add a hook for initializing passes before execution and use it in the Canonicalizer 2021-01-08 13:36:12 -08:00
PassManagerOptions.cpp [MLIR] Factor pass timing out into a dedicated timing manager 2021-05-12 18:14:51 +02:00
PassRegistry.cpp [mlir] hopefully final round of iwyu fixes after ba7a92c01e 2021-04-21 11:03:06 -04:00
PassStatistics.cpp [ADT] Remove StatisticBase and make NoopStatistic empty 2021-04-26 16:47:32 -07:00
PassTiming.cpp [MLIR] Factor pass timing out into a dedicated timing manager 2021-05-12 18:14:51 +02:00