[all-commits] [llvm/llvm-project] b5b6ef: ManagedStatic: remove from DebugCounter

Nicolai Hähnle via All-commits all-commits at lists.llvm.org
Fri Aug 26 00:22:59 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5b6ef1500af29b6aba71330d8aaf82ecccb1f37
      https://github.com/llvm/llvm-project/commit/b5b6ef1500af29b6aba71330d8aaf82ecccb1f37
  Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
  Date:   2022-08-26 (Fri, 26 Aug 2022)

  Changed paths:
    M llvm/include/llvm/Support/DebugCounter.h
    M llvm/lib/Support/DebugCounter.cpp

  Log Message:
  -----------
  ManagedStatic: remove from DebugCounter

Follow the pattern used in MLIR for the cl::opt instances.

v2:
- make DebugCounter::isCountingEnabled public so that the
  DebugCounterOwner doesn't have to be a nested class. This simplifies
  later changes

v3:
- remove the indirection via DebugCounterOwner::instance()

Differential Revision: https://reviews.llvm.org/D129116




More information about the All-commits mailing list