LLVM  14.0.0git
Classes | Namespaces | Functions | Variables
SampleProfileLoaderBaseUtil.h File Reference
#include "llvm/ADT/DenseMap.h"
#include "llvm/Analysis/ProfileSummaryInfo.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/CFG.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/IR/Function.h"
#include "llvm/ProfileData/SampleProf.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Transforms/Utils/ModuleUtils.h"
Include dependency graph for SampleProfileLoaderBaseUtil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::sampleprofutil::SampleCoverageTracker
 

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
 llvm::sampleprofutil
 

Functions

bool llvm::sampleprofutil::callsiteIsHot (const FunctionSamples *CallsiteFS, ProfileSummaryInfo *PSI, bool ProfAccForSymsInList)
 Return true if the given callsite is hot wrt to hot cutoff threshold. More...
 
void llvm::sampleprofutil::createFSDiscriminatorVariable (Module *M)
 Create a global variable to flag FSDiscriminators are used. More...
 

Variables

cl::opt< unsigned > llvm::SampleProfileMaxPropagateIterations
 
cl::opt< unsigned > llvm::SampleProfileRecordCoverage
 
cl::opt< unsigned > llvm::SampleProfileSampleCoverage
 
cl::opt< bool > llvm::NoWarnSampleUnused
 

Detailed Description

This file provides the utility functions for the sampled PGO loader base implementation.

Definition in file SampleProfileLoaderBaseUtil.h.