Home | History | Annotate | Download | only in ADT

Lines Matching defs:Statistic

1 //===-- llvm/ADT/Statistic.h - Easy way to expose stats ---------*- C++ -*-===//
10 // This file defines the 'Statistic' class, which is designed to be an easy way
18 // static Statistic NumInstsKilled("gcse", "Number of instructions killed");
39 class Statistic {
65 const Statistic &operator=(unsigned Val) {
70 const Statistic &operator++() {
80 const Statistic &operator--() {
90 const Statistic &operator+=(unsigned V) {
97 const Statistic &operator-=(unsigned V) {
106 const Statistic &operator=(unsigned Val) {
110 const Statistic &operator++() {
118 const Statistic &operator--() {
126 const Statistic &operator+=(const unsigned &V) {
130 const Statistic &operator-=(const unsigned &V) {
137 Statistic &init() {
148 // STATISTIC - A macro to make definition of statistics really simple. This
149 // automatically passes the DEBUG_TYPE of the file into the statistic.
150 #define STATISTIC(VARNAME, DESC) \
151 static llvm::Statistic VARNAME = {DEBUG_TYPE, #VARNAME, DESC, {0}, false}