[clang] [llvm] Use global TimerGroups for both new pass manager and old pass manager timers (PR #130375)

Arthur Eubanks via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 10 13:50:07 PDT 2025


================
@@ -169,6 +169,17 @@ struct NamedRegionTimer : public TimeRegion {
   explicit NamedRegionTimer(StringRef Name, StringRef Description,
                             StringRef GroupName,
                             StringRef GroupDescription, bool Enabled = true);
+
+  // Create or get a timer stored in the same global map as other timers owned
+  // by NamedRegionTimer.
+  static Timer &getNamedGroupTimer(StringRef Name, StringRef Description,
----------------
aeubanks wrote:

unused

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


More information about the cfe-commits mailing list