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

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

Classes
struct Chunk
struct CounterInfo
struct CounterState
Public Member Functions
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 void printChunks (raw_ostream &OS, ArrayRef< Chunk >)
static bool parseChunks (StringRef Str, SmallVector< Chunk > &Res)
Return true on parsing error and print the error message on the llvm::errs()
static DebugCounter & instance ()
Returns a reference to the singleton instance.
static unsigned registerCounter (StringRef Name, StringRef Desc)
static bool shouldExecuteImpl (unsigned CounterName)
static bool shouldExecute (unsigned CounterName)
static bool isCounterSet (unsigned ID)
static CounterState getCounterState (unsigned ID)
static void setCounterState (unsigned ID, CounterState State)
static void enableAllCounters ()
static bool isCountingEnabled ()
Protected Attributes
DenseMap< unsigned, CounterInfo > Counters
CounterVector RegisteredCounters
bool Enabled = false
bool ShouldPrintCounter = false
bool BreakOnLast = false

Definition at line 56 of file DebugCounter.h.

CounterVector

addCounter()

unsigned llvm::DebugCounter::addCounter ( const std::string & Name, const std::string & Desc ) inlineprotected

begin()

dump()

enableAllCounters()

static void llvm::DebugCounter::enableAllCounters ( ) inlinestatic

end()

getCounterId()

unsigned llvm::DebugCounter::getCounterId ( const std::string & Name) const inline

getCounterInfo()

std::pair< std::string, std::string > llvm::DebugCounter::getCounterInfo ( unsigned ID) const inline

getCounterState()

getNumCounters()

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

instance()

isCounterSet()

static bool llvm::DebugCounter::isCounterSet ( unsigned ID) inlinestatic

isCountingEnabled()

static bool llvm::DebugCounter::isCountingEnabled ( ) inlinestatic

parseChunks()

print()

printChunks()

push_back()

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

registerCounter()

setCounterState()

shouldExecute()

static bool llvm::DebugCounter::shouldExecute ( unsigned CounterName) inlinestatic

Definition at line 87 of file DebugCounter.h.

References isCountingEnabled(), and shouldExecuteImpl().

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

shouldExecuteImpl()

bool DebugCounter::shouldExecuteImpl ( unsigned CounterName) static

BreakOnLast

bool llvm::DebugCounter::BreakOnLast = false protected

Counters

Enabled

bool llvm::DebugCounter::Enabled = false protected

RegisteredCounters

ShouldPrintCounter

bool llvm::DebugCounter::ShouldPrintCounter = false protected

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