LLVM API Documentation
#include <Statistic.h>
Public Member Functions | |
llvm::sys::cas_flag | getValue () const |
const char * | getName () const |
const char * | getDesc () const |
void | construct (const char *name, const char *desc) |
construct - This should only be called for non-global statistics. | |
operator unsigned () const | |
const Statistic & | operator= (unsigned Val) |
const Statistic & | operator++ () |
unsigned | operator++ (int) |
const Statistic & | operator-- () |
unsigned | operator-- (int) |
const Statistic & | operator+= (const unsigned &V) |
const Statistic & | operator-= (const unsigned &V) |
const Statistic & | operator*= (const unsigned &V) |
const Statistic & | operator/= (const unsigned &V) |
Public Attributes | |
const char * | Name |
const char * | Desc |
volatile llvm::sys::cas_flag | Value |
bool | Initialized |
Protected Member Functions | |
Statistic & | init () |
void | RegisterStatistic () |
Definition at line 35 of file Statistic.h.
void llvm::Statistic::construct | ( | const char * | name, |
const char * | desc | ||
) | [inline] |
construct - This should only be called for non-global statistics.
Definition at line 47 of file Statistic.h.
References Desc, Initialized, and Name.
const char* llvm::Statistic::getDesc | ( | ) | const [inline] |
const char* llvm::Statistic::getName | ( | ) | const [inline] |
llvm::sys::cas_flag llvm::Statistic::getValue | ( | ) | const [inline] |
Definition at line 42 of file Statistic.h.
References Value.
Statistic& llvm::Statistic::init | ( | ) | [inline, protected] |
Definition at line 152 of file Statistic.h.
References Initialized, llvm::sys::MemoryFence(), RegisterStatistic(), and TsanHappensAfter.
Referenced by operator*=(), operator++(), operator+=(), operator--(), operator-=(), operator/=(), and operator=().
llvm::Statistic::operator unsigned | ( | ) | const [inline] |
Definition at line 53 of file Statistic.h.
References Value.
Definition at line 101 of file Statistic.h.
References llvm::sys::AtomicMul(), and init().
Definition at line 61 of file Statistic.h.
References llvm::sys::AtomicIncrement(), and init().
Definition at line 70 of file Statistic.h.
References llvm::sys::AtomicIncrement(), init(), and Value.
Definition at line 89 of file Statistic.h.
References llvm::sys::AtomicAdd(), and init().
Definition at line 77 of file Statistic.h.
References llvm::sys::AtomicDecrement(), and init().
Definition at line 82 of file Statistic.h.
References llvm::sys::AtomicDecrement(), init(), and Value.
Definition at line 95 of file Statistic.h.
References llvm::sys::AtomicAdd(), and init().
Definition at line 106 of file Statistic.h.
References llvm::sys::AtomicDiv(), and init().
Definition at line 56 of file Statistic.h.
References init().
void Statistic::RegisterStatistic | ( | ) | [protected] |
RegisterStatistic - The first time a statistic is bumped, this method is called.
Definition at line 70 of file Statistic.cpp.
References Enabled, Initialized, llvm::sys::MemoryFence(), StatInfo, StatLock, TsanHappensBefore, TsanIgnoreWritesBegin, and TsanIgnoreWritesEnd.
Referenced by init().
const char* llvm::Statistic::Desc |
Definition at line 38 of file Statistic.h.
Referenced by construct(), and getDesc().
Definition at line 40 of file Statistic.h.
Referenced by construct(), init(), and RegisterStatistic().
const char* llvm::Statistic::Name |
Definition at line 37 of file Statistic.h.
Referenced by construct(), and getName().
Definition at line 39 of file Statistic.h.
Referenced by getValue(), operator unsigned(), operator++(), and operator--().