[Mlir-commits] [mlir] [mlir] Expose output strategies of TimingManager (PR #166548)

Andrei Golubev llvmlistbot at llvm.org
Thu Nov 6 00:20:50 PST 2025


================
@@ -473,6 +473,13 @@ void registerDefaultTimingManagerCLOptions();
 /// 'registerDefaultTimingManagerOptions' to a `DefaultTimingManager`.
 void applyDefaultTimingManagerCLOptions(DefaultTimingManager &tm);
 
+/// Return a default output strategy for the specified format. This function can
+/// be used in combination with DefaultTimingManager::setOutput() to use
+/// MLIR-provided output format.
+std::unique_ptr<OutputStrategy>
+createDefaultOutputStrategy(DefaultTimingManager::OutputFormat fmt,
+                            raw_ostream &os);
----------------
andrey-golubev wrote:

went with "default" since users can implement their own output strategy from scratch, MLIR just gives "basic" implementations for text and json. but fair enough, no reason to explicitly say so, i guess it's clear from the API.

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


More information about the Mlir-commits mailing list