LLVM API Documentation

llvm::Statistic Class Reference

#include <Statistic.h>

Collaboration diagram for llvm::Statistic:

Collaboration graph
[legend]

List of all members.

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 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
unsigned Value: 31
bool Initialized: 1

Protected Member Functions

Statisticinit ()
void RegisterStatistic ()


Detailed Description

Definition at line 31 of file Statistic.h.


Member Function Documentation

unsigned llvm::Statistic::getValue (  )  const [inline]

Definition at line 38 of file Statistic.h.

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

Definition at line 39 of file Statistic.h.

References Name.

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

Definition at line 40 of file Statistic.h.

References Desc.

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= ( unsigned  Val  )  [inline]

Definition at line 50 of file Statistic.h.

References init().

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

Definition at line 51 of file Statistic.h.

References init().

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

Definition at line 52 of file Statistic.h.

References init().

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

Definition at line 53 of file Statistic.h.

References init().

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

Definition at line 54 of file Statistic.h.

References init().

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

Definition at line 55 of file Statistic.h.

References init().

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

Definition at line 56 of file Statistic.h.

References init().

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

Definition at line 57 of file Statistic.h.

References init().

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

Definition at line 58 of file Statistic.h.

References init().

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

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


Member Data Documentation

const char* llvm::Statistic::Name

Definition at line 33 of file Statistic.h.

Referenced by construct(), and getName().

const char* llvm::Statistic::Desc

Definition at line 34 of file Statistic.h.

Referenced by construct(), and getDesc().

Definition at line 35 of file Statistic.h.

Definition at line 36 of file Statistic.h.

Referenced by construct(), init(), and RegisterStatistic().


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.