LLVM: llvm::DebugCounter Class Reference (original) (raw)

#include "[llvm/Support/DebugCounter.h](DebugCounter%5F8h%5Fsource.html)"

Public Member Functions
LLVM_ABI void push_back (const std::string &)
LLVM_DUMP_METHOD void dump () const
LLVM_ABI void print (raw_ostream &OS) const
CounterInfo * getCounterInfo (StringRef Name) const
unsigned int getNumCounters () const
std::pair< StringRef, StringRef > getCounterDesc (CounterInfo *Info) const
MapVector< StringRef, CounterInfo * >::const_iterator begin () const
MapVector< StringRef, CounterInfo * >::const_iterator end () const
void activateAllCounters ()
Static Public Member Functions
static LLVM_ABI void printChunks (raw_ostream &OS, ArrayRef< Chunk >)
static LLVM_ABI bool parseChunks (StringRef Str, SmallVector< Chunk > &Res)
Return true on parsing error and print the error message on the llvm::errs()
static LLVM_ABI DebugCounter & instance ()
Returns a reference to the singleton instance.
static void registerCounter (CounterInfo *Info)
static LLVM_ABI bool shouldExecuteImpl (CounterInfo &Counter)
static bool shouldExecute (CounterInfo &Counter)
static bool isCounterSet (CounterInfo &Info)
static CounterState getCounterState (CounterInfo &Info)
static void setCounterState (CounterInfo &Info, CounterState State)

Definition at line 57 of file DebugCounter.h.

activateAllCounters()

void llvm::DebugCounter::activateAllCounters ( ) inline

addCounter()

void llvm::DebugCounter::addCounter ( CounterInfo * Info) inlineprotected

begin()

dump()

end()

getCounterDesc()

getCounterInfo()

getCounterState()

getNumCounters()

unsigned int llvm::DebugCounter::getNumCounters ( ) const inline

handleCounterIncrement()

instance()

isCounterSet()

parseChunks()

Return true on parsing error and print the error message on the llvm::errs()

Definition at line 35 of file DebugCounter.cpp.

References llvm::StringRef::drop_front(), llvm::SmallVectorTemplateCommon< T, typename >::empty(), llvm::StringRef::empty(), llvm::errs(), llvm::Number, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::SmallVectorTemplateCommon< T, typename >::size(), llvm::StringRef::starts_with(), and llvm::StringRef::take_until().

Referenced by push_back().

print()

printChunks()

push_back()

void DebugCounter::push_back ( const std::string & Val )

registerCounter()

void llvm::DebugCounter::registerCounter ( CounterInfo * Info) inlinestatic

setCounterState()

shouldExecute()

bool llvm::DebugCounter::shouldExecute ( CounterInfo & Counter) inlinestatic

Definition at line 111 of file DebugCounter.h.

References shouldExecuteImpl().

Referenced by checkCondition(), DCEInstruction(), findRenameRegForSameLdStRegPair(), llvm::getKnowledgeFromBundle(), llvm::Attributor::getOrCreateAAFor(), slpvectorizer::BoUpSLP::isTreeTinyAndNotFullyVectorizable(), llvm::Negator::Negate(), optimizeDivRem(), optimizeSQRT(), llvm::InstCombinerImpl::run(), and llvm::InstructionSelect::selectMachineFunction().

shouldExecuteImpl()

BreakOnLast

bool llvm::DebugCounter::BreakOnLast = false protected

Counters

ShouldPrintCounter

bool llvm::DebugCounter::ShouldPrintCounter = false protected

ShouldPrintCounterQueries

bool llvm::DebugCounter::ShouldPrintCounterQueries = false protected

The documentation for this class was generated from the following files: