LLVM  3.7.0
Macros | Functions
InstrProfiling.cpp File Reference
#include "llvm/Transforms/Instrumentation.h"
#include "llvm/ADT/Triple.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Module.h"
#include "llvm/Transforms/Utils/ModuleUtils.h"
Include dependency graph for InstrProfiling.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "instrprof"
 

Functions

 INITIALIZE_PASS (InstrProfiling,"instrprof","Frontend instrumentation-based coverage lowering.", false, false) ModulePass *llvm
 
static std::string getVarName (InstrProfIncrementInst *Inc, StringRef VarName)
 Get the name of a profiling variable for a particular function. More...
 

Macro Definition Documentation

#define DEBUG_TYPE   "instrprof"

Definition at line 26 of file InstrProfiling.cpp.

Function Documentation

static std::string getVarName ( InstrProfIncrementInst Inc,
StringRef  VarName 
)
static

Get the name of a profiling variable for a particular function.

Definition at line 186 of file InstrProfiling.cpp.

References llvm::GlobalVariable::getInitializer(), and llvm::InstrProfIncrementInst::getName().

INITIALIZE_PASS ( InstrProfiling  ,
"instrprof"  ,
"Frontend instrumentation-based coverage lowering."  ,
false  ,
false   
)

Definition at line 108 of file InstrProfiling.cpp.