LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TraceBasicBlocks.cpp File Reference

#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Instructions.h"
#include "ProfilingUtils.h"
#include "llvm/Support/Debug.h"
#include <set>

Include dependency graph for TraceBasicBlocks.cpp:

Go to the source code of this file.

Functions

static void InsertInstrumentationCall (BasicBlock *BB, const std::string FnName, unsigned BBNumber)


Function Documentation

static void InsertInstrumentationCall BasicBlock BB,
const std::string  FnName,
unsigned  BBNumber
[static]
 

Definition at line 36 of file TraceBasicBlocks.cpp.

References llvm::BasicBlock::begin(), DEBUG, llvm::Value::getName(), llvm::Module::getOrInsertFunction(), llvm::GlobalValue::getParent(), llvm::BasicBlock::getParent(), and M.


Variable Documentation

RegisterOpt<TraceBasicBlocks> X("trace-basic-blocks","Insert instrumentation for basic block tracing") [static]