LLVM API Documentation

Public Member Functions | Public Attributes | Protected Member Functions
llvm::Statistic Class Reference

#include <Statistic.h>

Collaboration diagram for llvm::Statistic:
Collaboration graph
[legend]

List of all members.

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 Statisticoperator= (unsigned Val)
const Statisticoperator++ ()
unsigned operator++ (int)
const Statisticoperator-- ()
unsigned operator-- (int)
const Statisticoperator+= (const unsigned &V)
const Statisticoperator-= (const unsigned &V)
const Statisticoperator*= (const unsigned &V)
const Statisticoperator/= (const unsigned &V)

Public Attributes

const char * Name
const char * Desc
volatile llvm::sys::cas_flag Value
bool Initialized

Protected Member Functions

Statisticinit ()
void RegisterStatistic ()

Detailed Description

Definition at line 35 of file Statistic.h.


Member Function Documentation

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]

Definition at line 44 of file Statistic.h.

References Desc.

Referenced by llvm::PrintStatistics().

const char* llvm::Statistic::getName ( ) const [inline]

Definition at line 43 of file Statistic.h.

References Name.

Referenced by llvm::PrintStatistics().

Definition at line 42 of file Statistic.h.

References Value.

Statistic& llvm::Statistic::init ( ) [inline, protected]
llvm::Statistic::operator unsigned ( ) const [inline]

Definition at line 53 of file Statistic.h.

References Value.

const Statistic& llvm::Statistic::operator*= ( const unsigned V) [inline]

Definition at line 101 of file Statistic.h.

References llvm::sys::AtomicMul(), and init().

const Statistic& llvm::Statistic::operator++ ( ) [inline]

Definition at line 61 of file Statistic.h.

References llvm::sys::AtomicIncrement(), and init().

unsigned llvm::Statistic::operator++ ( int  ) [inline]

Definition at line 70 of file Statistic.h.

References llvm::sys::AtomicIncrement(), init(), and Value.

const Statistic& llvm::Statistic::operator+= ( const unsigned V) [inline]

Definition at line 89 of file Statistic.h.

References llvm::sys::AtomicAdd(), and init().

const Statistic& llvm::Statistic::operator-- ( ) [inline]

Definition at line 77 of file Statistic.h.

References llvm::sys::AtomicDecrement(), and init().

unsigned llvm::Statistic::operator-- ( int  ) [inline]

Definition at line 82 of file Statistic.h.

References llvm::sys::AtomicDecrement(), init(), and Value.

const Statistic& llvm::Statistic::operator-= ( const unsigned V) [inline]

Definition at line 95 of file Statistic.h.

References llvm::sys::AtomicAdd(), and init().

const Statistic& llvm::Statistic::operator/= ( const unsigned V) [inline]

Definition at line 106 of file Statistic.h.

References llvm::sys::AtomicDiv(), and init().

const Statistic& llvm::Statistic::operator= ( unsigned  Val) [inline]

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().


Member Data Documentation

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().

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--().


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