LLVM  13.0.0git
Functions
CGProfile.cpp File Reference
#include "llvm/Transforms/Instrumentation/CGProfile.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/Analysis/BlockFrequencyInfo.h"
#include "llvm/Analysis/LazyBlockFrequencyInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/MDBuilder.h"
#include "llvm/IR/PassManager.h"
#include "llvm/InitializePasses.h"
#include "llvm/ProfileData/InstrProf.h"
#include "llvm/Transforms/Instrumentation.h"
#include <array>
Include dependency graph for CGProfile.cpp:

Go to the source code of this file.

Functions

static bool addModuleFlags (Module &M, MapVector< std::pair< Function *, Function * >, uint64_t > &Counts)
 
static bool runCGProfilePass (Module &M, function_ref< BlockFrequencyInfo &(Function &)> GetBFI, function_ref< TargetTransformInfo &(Function &)> GetTTI, bool LazyBFI)
 
 INITIALIZE_PASS (CGProfileLegacyPass, "cg-profile", "Call Graph Profile", false, false) ModulePass *llvm
 

Function Documentation

◆ addModuleFlags()

static bool addModuleFlags ( Module M,
MapVector< std::pair< Function *, Function * >, uint64_t > &  Counts 
)
static

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( CGProfileLegacyPass  ,
"cg-profile ,
"Call Graph Profile"  ,
false  ,
false   
)

Definition at line 133 of file CGProfile.cpp.

◆ runCGProfilePass()

static bool runCGProfilePass ( Module M,
function_ref< BlockFrequencyInfo &(Function &)>  GetBFI,
function_ref< TargetTransformInfo &(Function &)>  GetTTI,
bool  LazyBFI 
)
static