LLVM API Documentation
#include <Statistic.h>
Public Member Functions | |
| unsigned | 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 |
| unsigned | Value: 31 |
| bool | Initialized: 1 |
Protected Member Functions | |
| Statistic & | init () |
| void | RegisterStatistic () |
Definition at line 31 of file Statistic.h.
| unsigned llvm::Statistic::getValue | ( | ) | const [inline] |
Definition at line 38 of file Statistic.h.
| const char* llvm::Statistic::getName | ( | ) | const [inline] |
| const char* llvm::Statistic::getDesc | ( | ) | const [inline] |
| void llvm::Statistic::construct | ( | const char * | name, | |
| const char * | desc | |||
| ) | [inline] |
construct - This should only be called for non-global statistics.
Definition at line 43 of file Statistic.h.
References Desc, Initialized, and Name.
| llvm::Statistic::operator unsigned | ( | ) | const [inline] |
Definition at line 49 of file Statistic.h.
| const Statistic& llvm::Statistic::operator++ | ( | ) | [inline] |
| unsigned llvm::Statistic::operator++ | ( | int | ) | [inline] |
| const Statistic& llvm::Statistic::operator-- | ( | ) | [inline] |
| unsigned llvm::Statistic::operator-- | ( | int | ) | [inline] |
| Statistic& llvm::Statistic::init | ( | ) | [inline, protected] |
Definition at line 61 of file Statistic.h.
References Initialized, and RegisterStatistic().
Referenced by operator*=(), operator++(), operator+=(), operator--(), operator-=(), operator/=(), and operator=().
| void Statistic::RegisterStatistic | ( | ) | [protected] |
RegisterStatistic - The first time a statistic is bumped, this method is called.
Definition at line 64 of file Statistic.cpp.
References Enabled, and Initialized.
Referenced by init().
| const char* llvm::Statistic::Name |
| const char* llvm::Statistic::Desc |
Definition at line 35 of file Statistic.h.
Definition at line 36 of file Statistic.h.
Referenced by construct(), init(), and RegisterStatistic().