LLVM 20.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/MDBuilder.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassManager.h"
#include "llvm/ProfileData/InstrProf.h"
#include "llvm/Transforms/Instrumentation.h"
#include <optional>

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, FunctionAnalysisManager &FAM, bool InLTO)
 

Function Documentation

◆ addModuleFlags()

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

◆ runCGProfilePass()

static bool runCGProfilePass ( Module M,
FunctionAnalysisManager FAM,
bool  InLTO 
)
static