LLVM API Documentation

Statistic.cpp File Reference

#include "llvm/ADT/Statistic.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Streams.h"
#include "llvm/ADT/StringExtras.h"
#include <algorithm>
#include <ostream>
#include <cstring>

Include dependency graph for Statistic.cpp:

Go to the source code of this file.

Namespaces

namespace  llvm

Functions

std::ostream * llvm::GetLibSupportInfoOutputFile ()

Variables

static cl::opt< bool > Enabled ("stats", cl::desc("Enable statistics output from program"))
static ManagedStatic
< StatisticInfo > 
StatInfo


Variable Documentation

cl::opt<bool> Enabled("stats", cl::desc("Enable statistics output from program")) [static]

-stats - Command line option to cause transformations to emit stats about what they did.

Referenced by llvm::Statistic::RegisterStatistic().

ManagedStatic<StatisticInfo> StatInfo [static]

Definition at line 59 of file Statistic.cpp.

std::vector<const Statistic*> Stats

Definition at line 49 of file Statistic.cpp.