[all-commits] [llvm/llvm-project] 52c338: [llvm][NFC] Rework Timer.cpp globals to ensure val...

macurtis-amd via All-commits all-commits at lists.llvm.org
Thu Jan 9 04:33:09 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 52c338daece1ea5556865373c777bdad79a05fd8
      https://github.com/llvm/llvm-project/commit/52c338daece1ea5556865373c777bdad79a05fd8
  Author: macurtis-amd <macurtis at amd.com>
  Date:   2025-01-09 (Thu, 09 Jan 2025)

  Changed paths:
    M clang/lib/Driver/OffloadBundler.cpp
    M llvm/include/llvm/Support/Timer.h
    M llvm/lib/Support/Timer.cpp

  Log Message:
  -----------
  [llvm][NFC] Rework Timer.cpp globals to ensure valid lifetimes (#121663)

This is intended to help with flang `-ftime-report` support:
- #107270.

With this change, I was able to cherry-pick #107270, uncomment
`llvm::TimePassesIsEnabled = true;` and compile with `-ftime-report`.

I also noticed that `clang/lib/Driver/OffloadBundler.cpp` was statically
constructing a `TimerGroup` and changed it to lazily construct via
ManagedStatic.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list