LLVM 22.0.0git
SampleProf.cpp File Reference
#include "llvm/ProfileData/SampleProf.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/PseudoProbe.h"
#include "llvm/ProfileData/SampleProfReader.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/raw_ostream.h"
#include <string>
#include <system_error>

Go to the source code of this file.

Namespaces

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

Functions

std::error_code llvm::sampleprof::serializeTypeMap (const TypeCountMap &Map, const MapVector< FunctionId, uint32_t > &NameTable, raw_ostream &OS)
 Write Map to the output stream.
static void printTypeCountMap (raw_ostream &OS, LineLocation Loc, const TypeCountMap &TypeCountMap)

Variables

static cl::opt< uint64_tProfileSymbolListCutOff ("profile-symbol-list-cutoff", cl::Hidden, cl::init(-1), cl::desc("Cutoff value about how many symbols in profile symbol list " "will be used. This is very useful for performance debugging"))
static cl::opt< boolGenerateMergedBaseProfiles ("generate-merged-base-profiles", cl::desc("When generating nested context-sensitive profiles, always " "generate extra base profile for function with all its context " "profiles merged into it."))

Function Documentation

◆ printTypeCountMap()

void printTypeCountMap ( raw_ostream & OS,
LineLocation Loc,
const TypeCountMap & TypeCountMap )
static

Definition at line 199 of file SampleProf.cpp.

References llvm::Count.

Referenced by llvm::sampleprof::FunctionSamples::print().

Variable Documentation

◆ GenerateMergedBaseProfiles

cl::opt< bool > GenerateMergedBaseProfiles("generate-merged-base-profiles", cl::desc("When generating nested context-sensitive profiles, always " "generate extra base profile for function with all its context " "profiles merged into it.")) ( "generate-merged-base-profiles" ,
cl::desc("When generating nested context-sensitive profiles, always " "generate extra base profile for function with all its context " "profiles merged into it.")  )
static

◆ ProfileSymbolListCutOff

cl::opt< uint64_t > ProfileSymbolListCutOff("profile-symbol-list-cutoff", cl::Hidden, cl::init(-1), cl::desc("Cutoff value about how many symbols in profile symbol list " "will be used. This is very useful for performance debugging")) ( "profile-symbol-list-cutoff" ,
cl::Hidden ,
cl::init(-1) ,
cl::desc("Cutoff value about how many symbols in profile symbol list " "will be used. This is very useful for performance debugging")  )
static