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");
34 class Statistic {
53 const Statistic &operator=(unsigned Val) {
58 const Statistic &operator++() {
74 const Statistic &operator--() {
86 const Statistic &operator+=(const unsigned &V) {
92 const Statistic &operator-=(const unsigned &V) {
98 const Statistic &operator*=(const unsigned &V) {
103 const Statistic &operator/=(const unsigned &V) {
109 Statistic &init() {
118 // STATISTIC - A macro to make definition of statistics really simple. This
119 // automatically passes the DEBUG_TYPE of the file into the statistic.
120 #define STATISTIC(VARNAME, DESC) \
121 static llvm::Statistic VARNAME = { DEBUG_TYPE, DESC, 0, 0 }