|
LLVM
10.0.0
|
#include "llvm/Support/DebugCounter.h"
Public Types | |
| typedef UniqueVector< std::string > | CounterVector |
Public Member Functions | |
| ~DebugCounter () | |
| void | push_back (const std::string &) |
| LLVM_DUMP_METHOD void | dump () const |
| void | print (raw_ostream &OS) const |
| unsigned | getCounterId (const std::string &Name) const |
| unsigned int | getNumCounters () const |
| std::pair< std::string, std::string > | getCounterInfo (unsigned ID) const |
| CounterVector::const_iterator | begin () const |
| CounterVector::const_iterator | end () const |
Static Public Member Functions | |
| static DebugCounter & | instance () |
| Returns a reference to the singleton instance. More... | |
| static unsigned | registerCounter (StringRef Name, StringRef Desc) |
| static bool | shouldExecute (unsigned CounterName) |
| static bool | isCounterSet (unsigned ID) |
| static int64_t | getCounterValue (unsigned ID) |
| static void | setCounterValue (unsigned ID, int64_t Count) |
| static void | enableAllCounters () |
Definition at line 55 of file DebugCounter.h.
| typedef UniqueVector<std::string> llvm::DebugCounter::CounterVector |
Definition at line 138 of file DebugCounter.h.
| DebugCounter::~DebugCounter | ( | ) |
Definition at line 58 of file DebugCounter.cpp.
References llvm::dbgs(), print(), and PrintDebugCounter.
|
inline |
Definition at line 139 of file DebugCounter.h.
References llvm::UniqueVector< T >::begin().
| LLVM_DUMP_METHOD void DebugCounter::dump | ( | ) | const |
Definition at line 133 of file DebugCounter.cpp.
References llvm::dbgs(), and print().
Referenced by setCounterValue().
|
inlinestatic |
Definition at line 149 of file DebugCounter.h.
References llvm::UniqueVector< T >::insert(), instance(), and Name.
|
inline |
Definition at line 142 of file DebugCounter.h.
References llvm::UniqueVector< T >::end().
Definition at line 125 of file DebugCounter.h.
References llvm::UniqueVector< T >::idFor().
|
inline |
Definition at line 133 of file DebugCounter.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::lookup().
|
inlinestatic |
Definition at line 106 of file DebugCounter.h.
References assert(), and instance().
|
inline |
Definition at line 130 of file DebugCounter.h.
References llvm::UniqueVector< T >::size().
|
static |
Returns a reference to the singleton instance.
Definition at line 63 of file DebugCounter.cpp.
References DC.
Referenced by enableAllCounters(), getCounterValue(), isCounterSet(), registerCounter(), setCounterValue(), and shouldExecute().
Definition at line 101 of file DebugCounter.h.
References instance().
| void DebugCounter::print | ( | raw_ostream & | OS | ) | const |
Definition at line 118 of file DebugCounter.cpp.
References llvm::left_justify(), and llvm::sort().
Referenced by setCounterValue().
| void DebugCounter::push_back | ( | const std::string & | Val | ) |
Definition at line 67 of file DebugCounter.cpp.
References llvm::errs(), and llvm::StringRef::split().
Definition at line 70 of file DebugCounter.h.
References instance().
|
inlinestatic |
Definition at line 114 of file DebugCounter.h.
References dump(), instance(), LLVM_DUMP_METHOD, and print().
Definition at line 73 of file DebugCounter.h.
References instance().
Referenced by llvm::createConstantPropagationPass(), DCEInstruction(), getTag(), isNopCopy(), okayForPHIOfOps(), optimizeDivRem(), optimizeSQRT(), llvm::InstCombiner::run(), and tryToFindRegisterToRename().
1.8.13