#include ">

LLVM: lib/Transforms/IPO/SampleProfileProbe.cpp File Reference (original) (raw)

#include "[llvm/Transforms/IPO/SampleProfileProbe.h](SampleProfileProbe%5F8h%5Fsource.html)"
#include "[llvm/ADT/Statistic.h](Statistic%5F8h%5Fsource.html)"
#include "[llvm/Analysis/BlockFrequencyInfo.h](BlockFrequencyInfo%5F8h%5Fsource.html)"
#include "[llvm/Analysis/EHUtils.h](EHUtils%5F8h%5Fsource.html)"
#include "[llvm/Analysis/LoopInfo.h](LoopInfo%5F8h%5Fsource.html)"
#include "[llvm/IR/BasicBlock.h](IR%5F2BasicBlock%5F8h%5Fsource.html)"
#include "[llvm/IR/DebugInfoMetadata.h](DebugInfoMetadata%5F8h%5Fsource.html)"
#include "[llvm/IR/DiagnosticInfo.h](DiagnosticInfo%5F8h%5Fsource.html)"
#include "[llvm/IR/IRBuilder.h](IRBuilder%5F8h%5Fsource.html)"
#include "[llvm/IR/Instruction.h](IR%5F2Instruction%5F8h%5Fsource.html)"
#include "[llvm/IR/IntrinsicInst.h](IR%5F2IntrinsicInst%5F8h%5Fsource.html)"
#include "[llvm/IR/MDBuilder.h](MDBuilder%5F8h%5Fsource.html)"
#include "[llvm/IR/Module.h](IR%5F2Module%5F8h%5Fsource.html)"
#include "[llvm/IR/PseudoProbe.h](PseudoProbe%5F8h%5Fsource.html)"
#include "[llvm/ProfileData/SampleProf.h](SampleProf%5F8h%5Fsource.html)"
#include "[llvm/Support/CRC.h](CRC%5F8h%5Fsource.html)"
#include "[llvm/Support/CommandLine.h](CommandLine%5F8h%5Fsource.html)"
#include "[llvm/Target/TargetMachine.h](llvm%5F2Target%5F2TargetMachine%5F8h%5Fsource.html)"
#include "[llvm/Transforms/Utils/Instrumentation.h](Instrumentation%5F8h%5Fsource.html)"
#include "[llvm/Transforms/Utils/ModuleUtils.h](ModuleUtils%5F8h%5Fsource.html)"
#include <unordered_set>
#include <vector>

Go to the source code of this file.

Macros
#define DEBUG_TYPE "pseudo-probe"
Functions
STATISTIC (ArtificialDbgLine, "Number of probes that have an artificial debug line")
static uint64_t getCallStackHash (const DILocation *DIL)
static uint64_t computeCallStackHash (const Instruction &Inst)
Variables
static cl::opt< bool > VerifyPseudoProbe ("verify-pseudo-probe", cl::init(false), cl::Hidden, cl::desc("Do pseudo probe verification"))
static cl::list< std::string > VerifyPseudoProbeFuncList ("verify-pseudo-probe-funcs", cl::Hidden, cl::desc("The option to specify the name of the functions to verify."))
static cl::opt< bool > UpdatePseudoProbe ("update-pseudo-probe", cl::init(true), cl::Hidden, cl::desc("Update pseudo probe distribution factor"))

Macro Definition Documentation

DEBUG_TYPE

#define DEBUG_TYPE "pseudo-probe"

Definition at line 37 of file SampleProfileProbe.cpp.

Function Documentation

computeCallStackHash()

uint64_t computeCallStackHash ( const Instruction & Inst) static

Definition at line 67 of file SampleProfileProbe.cpp.

References getCallStackHash(), and llvm::Instruction::getDebugLoc().

getCallStackHash()

uint64_t getCallStackHash ( const DILocation * DIL) static

Definition at line 54 of file SampleProfileProbe.cpp.

References llvm::sampleprof::MD5Hash().

Referenced by computeCallStackHash().

STATISTIC()

STATISTIC ( ArtificialDbgLine ,
"Number of probes that have an artificial debug line" )

Variable Documentation

UpdatePseudoProbe

cl::opt< bool > UpdatePseudoProbe("update-pseudo-probe", cl::init(true), cl::Hidden, cl::desc("Update pseudo probe distribution factor")) ( "update-pseudo-probe" , cl::init(true) , cl::Hidden , cl::desc("Update pseudo probe distribution factor") ) static

Referenced by llvm::PseudoProbeUpdatePass::run().

VerifyPseudoProbe

cl::opt< bool > VerifyPseudoProbe("verify-pseudo-probe", cl::init(false), cl::Hidden, cl::desc("Do pseudo probe verification")) ( "verify-pseudo-probe" , cl::init(false) , cl::Hidden , cl::desc("Do pseudo probe verification") ) static

Referenced by llvm::PseudoProbeVerifier::registerCallbacks().

VerifyPseudoProbeFuncList

cl::list< std::string > VerifyPseudoProbeFuncList("verify-pseudo-probe-funcs", cl::Hidden, cl::desc("The option to specify the name of the functions to verify.")) ( "verify-pseudo-probe-funcs" , cl::Hidden , cl::desc("The option to specify the name of the functions to verify.") ) static