LLVM API Documentation
#include "llvm/Constants.h"#include "llvm/DerivedTypes.h"#include "llvm/Module.h"#include "llvm/Pass.h"#include "llvm/Transforms/Utils/BasicBlockUtils.h"#include "llvm/Transforms/Instrumentation.h"#include "llvm/Instructions.h"#include "ProfilingUtils.h"#include "llvm/Support/Debug.h"#include <set>#include <iostream>Include dependency graph for TraceBasicBlocks.cpp:

Go to the source code of this file.
Functions | |
| ModulePass * | llvm::createTraceBasicBlockPass () |
| static void | InsertInstrumentationCall (BasicBlock *BB, const std::string FnName, unsigned BBNumber) |
Variables | |
| RegisterOpt< TraceBasicBlocks > | X ("trace-basic-blocks","Insert instrumentation for basic block tracing") |
| static void InsertInstrumentationCall | ( | BasicBlock * | BB, | |
| const std::string | FnName, | |||
| unsigned | BBNumber | |||
| ) | [static] |
Definition at line 43 of file TraceBasicBlocks.cpp.
References BB, llvm::BasicBlock::begin(), DEBUG, llvm::Value::getName(), llvm::Module::getOrInsertFunction(), llvm::GlobalValue::getParent(), llvm::BasicBlock::getParent(), InsertPos, and M.
RegisterOpt<TraceBasicBlocks> X("trace-basic-blocks","Insert instrumentation for basic block tracing") [static] |