LLVM API Documentation

Analyzer.cpp File Reference

#include "Reader.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Module.h"
#include "llvm/Analysis/Verifier.h"
#include "llvm/Bytecode/BytecodeHandler.h"
#include "llvm/Assembly/Writer.h"
#include <iomanip>
#include <sstream>
#include <ios>

Include dependency graph for Analyzer.cpp:

Go to the source code of this file.

Namespaces

namespace  llvm

Functions

static void print (std::ostream &Out, const char *title, unsigned val, bool nl=true)
 Utility for printing a titled unsigned value with an aligned colon.
static void print (std::ostream &Out, const char *title, double val)
 Utility for printing a titled double value with an aligned colon.
static void print (std::ostream &Out, const char *title, double top, double bot)
 Utility for printing a titled double value with a percentage and aligned colon.
static void print (std::ostream &Out, const char *title, std::string val, bool nl=true)
 Utility for printing a titled string value with an aligned colon.
void llvm::PrintBytecodeAnalysis (BytecodeAnalysis &bca, std::ostream &Out)
 Print BytecodeAnalysis structure to an ostream.
BytecodeHandlerllvm::createBytecodeAnalyzerHandler (BytecodeAnalysis &bca, std::ostream *output)
 A function for creating a BytecodeAnalzer as a handler for the Bytecode reader.


Function Documentation

static void @296::print ( std::ostream &  Out,
const char *  title,
std::string  val,
bool  nl = true 
) [inline, static]

Utility for printing a titled string value with an aligned colon.

Definition at line 597 of file Analyzer.cpp.

static void @296::print ( std::ostream &  Out,
const char *  title,
double  top,
double  bot 
) [inline, static]

Utility for printing a titled double value with a percentage and aligned colon.

Definition at line 586 of file Analyzer.cpp.

static void @296::print ( std::ostream &  Out,
const char *  title,
double  val 
) [inline, static]

Utility for printing a titled double value with an aligned colon.

Definition at line 577 of file Analyzer.cpp.

static void @296::print ( std::ostream &  Out,
const char *  title,
unsigned  val,
bool  nl = true 
) [inline, static]

Utility for printing a titled unsigned value with an aligned colon.

Definition at line 568 of file Analyzer.cpp.

Referenced by llvm::TypeMap< ValType, TypeClass >::add(), llvm::TypeMap< ValType, TypeClass >::dump(), llvm::PrintBytecodeAnalysis(), and llvm::TypeMap< ValType, TypeClass >::~TypeMap().


Variable Documentation

BytecodeAnalysis& bca

The structure in which data is recorded.

Definition at line 36 of file Analyzer.cpp.

Referenced by llvm::AnalyzeBytecodeBuffer(), llvm::AnalyzeBytecodeFile(), llvm::createBytecodeAnalyzerHandler(), llvm::operator<<(), and llvm::PrintBytecodeAnalysis().

BytecodeAnalysis::BytecodeFunctionInfo* currFunc

Keeps track of current function.

Definition at line 39 of file Analyzer.cpp.

Module* M

Keeps track of current module.

Definition at line 40 of file Analyzer.cpp.

std::ostream* os

A convenience for osing data.

Definition at line 37 of file Analyzer.cpp.