[Mlir-commits] [mlir] [mlir] Enhance TimingManager Printing Flexibility (PR #85821)

Hsiangkai Wang llvmlistbot at llvm.org
Mon Mar 25 06:13:37 PDT 2024


================
@@ -351,6 +351,15 @@ class DefaultTimingManager : public TimingManager {
     Tree,
   };
 
+  /// The different output formats for printing the timers.
+  enum class OutputFormat {
----------------
Hsiangkai wrote:

Thanks for your suggestions.

I keep the enum for option settings and move `OutputStrategy` to `Timing.h` file. Users can use `void setOutput(std::unique_ptr<OutputStrategy> output);` to set their own `OutputStrategy` implementation.

https://github.com/llvm/llvm-project/pull/85821


More information about the Mlir-commits mailing list