LLVM 19.0.0git
|
Representation of the samples collected for a function. More...
#include "llvm/ProfileData/SampleProf.h"
Public Member Functions | |
FunctionSamples ()=default | |
void | print (raw_ostream &OS=dbgs(), unsigned Indent=0) const |
Print the samples collected for a function on stream OS . | |
void | dump () const |
sampleprof_error | addTotalSamples (uint64_t Num, uint64_t Weight=1) |
void | removeTotalSamples (uint64_t Num) |
void | setTotalSamples (uint64_t Num) |
void | setHeadSamples (uint64_t Num) |
sampleprof_error | addHeadSamples (uint64_t Num, uint64_t Weight=1) |
sampleprof_error | addBodySamples (uint32_t LineOffset, uint32_t Discriminator, uint64_t Num, uint64_t Weight=1) |
sampleprof_error | addCalledTargetSamples (uint32_t LineOffset, uint32_t Discriminator, FunctionId Func, uint64_t Num, uint64_t Weight=1) |
sampleprof_error | addSampleRecord (LineLocation Location, const SampleRecord &SampleRecord, uint64_t Weight=1) |
uint64_t | removeCalledTargetAndBodySample (uint32_t LineOffset, uint32_t Discriminator, FunctionId Func) |
void | removeAllCallsiteSamples () |
void | updateCallsiteSamples () |
void | updateTotalSamples () |
void | SetContextSynthetic () |
const LineLocation & | mapIRLocToProfileLoc (const LineLocation &IRLoc) const |
ErrorOr< uint64_t > | findSamplesAt (uint32_t LineOffset, uint32_t Discriminator) const |
Return the number of samples collected at the given location. | |
ErrorOr< const SampleRecord::CallTargetMap & > | findCallTargetMapAt (uint32_t LineOffset, uint32_t Discriminator) const |
Returns the call target map collected at a given location. | |
ErrorOr< const SampleRecord::CallTargetMap & > | findCallTargetMapAt (const LineLocation &CallSite) const |
Returns the call target map collected at a given location specified by CallSite . | |
FunctionSamplesMap & | functionSamplesAt (const LineLocation &Loc) |
Return the function samples at the given callsite location. | |
const FunctionSamplesMap * | findFunctionSamplesMapAt (const LineLocation &Loc) const |
Returns the FunctionSamplesMap at the given Loc . | |
const FunctionSamples * | findFunctionSamplesAt (const LineLocation &Loc, StringRef CalleeName, SampleProfileReaderItaniumRemapper *Remapper) const |
Returns a pointer to FunctionSamples at the given callsite location Loc with callee CalleeName . | |
bool | empty () const |
uint64_t | getTotalSamples () const |
Return the total number of samples collected inside the function. | |
uint64_t | getHeadSamples () const |
For top-level functions, return the total number of branch samples that have the function as the branch target (or 0 otherwise). | |
uint64_t | getHeadSamplesEstimate () const |
Return an estimate of the sample count of the function entry basic block. | |
const BodySampleMap & | getBodySamples () const |
Return all the samples collected in the body of the function. | |
const CallsiteSampleMap & | getCallsiteSamples () const |
Return all the callsite samples collected in the body of the function. | |
uint64_t | getMaxCountInside (bool SkipCallSite=false) const |
Return the maximum of sample counts in a function body. | |
sampleprof_error | merge (const FunctionSamples &Other, uint64_t Weight=1) |
Merge the samples in Other into this one. | |
void | findInlinedFunctions (DenseSet< GlobalValue::GUID > &S, const HashKeyMap< std::unordered_map, FunctionId, Function * > &SymbolMap, uint64_t Threshold) const |
Recursively traverses all children, if the total sample count of the corresponding function is no less than Threshold , add its corresponding GUID to S . | |
void | setFunction (FunctionId newFunction) |
Set the name of the function. | |
FunctionId | getFunction () const |
Return the function name. | |
StringRef | getFuncName () const |
Return the original function name. | |
void | setFunctionHash (uint64_t Hash) |
uint64_t | getFunctionHash () const |
void | setIRToProfileLocationMap (const LocToLocMap *LTLM) |
StringRef | getFuncName (FunctionId Func) const |
Translate Func into its original name. | |
const FunctionSamples * | findFunctionSamples (const DILocation *DIL, SampleProfileReaderItaniumRemapper *Remapper=nullptr) const |
Get the FunctionSamples of the inline instance where DIL originates from. | |
SampleContext & | getContext () const |
void | setContext (const SampleContext &FContext) |
uint64_t | getGUID () const |
Return the GUID of the context's name. | |
void | findAllNames (DenseSet< FunctionId > &NameSet) const |
bool | operator== (const FunctionSamples &Other) const |
bool | operator!= (const FunctionSamples &Other) const |
Static Public Member Functions | |
static StringRef | getCanonicalFnName (const Function &F) |
Return the canonical name for a function, taking into account suffix elision policy attributes. | |
static StringRef | getCanonicalFnName (StringRef FnName, StringRef Attr="selected") |
static unsigned | getOffset (const DILocation *DIL) |
Returns the line offset to the start line of the subprogram. | |
static LineLocation | getCallSiteIdentifier (const DILocation *DIL, bool ProfileIsFS=false) |
Returns a unique call site identifier for a given debug location of a call instruction. | |
static uint64_t | getCallSiteHash (FunctionId Callee, const LineLocation &Callsite) |
Returns a unique hash code for a combination of a callsite location and the callee function name. | |
Public Attributes | |
DenseMap< uint64_t, StringRef > * | GUIDToFuncNameMap = nullptr |
GUIDToFuncNameMap saves the mapping from GUID to the symbol name, for all the function symbols defined or declared in current module. | |
Static Public Attributes | |
static constexpr const char * | LLVMSuffix = ".llvm." |
Name suffixes which canonicalization should handle to avoid profile mismatch. | |
static constexpr const char * | PartSuffix = ".part." |
static constexpr const char * | UniqSuffix = ".__uniq." |
static bool | ProfileIsProbeBased = false |
static bool | ProfileIsCS = false |
static bool | ProfileIsPreInlined = false |
static bool | UseMD5 = false |
Whether the profile uses MD5 to represent string. | |
static bool | HasUniqSuffix = true |
Whether the profile contains any ".__uniq." suffix in a name. | |
static bool | ProfileIsFS = false |
If this profile uses flow sensitive discriminators. | |
Representation of the samples collected for a function.
This data structure contains all the collected samples for the body of a function. Each sample corresponds to a LineLocation instance within the body of the function.
Definition at line 744 of file SampleProf.h.
|
default |
|
inline |
Definition at line 778 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileReaderText::readImpl(), llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile(), and llvm::sampleprof::SampleProfileReaderBinary::readProfile().
|
inline |
Definition at line 784 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileReaderText::readImpl(), llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile(), and llvm::sampleprof::SampleProfileReaderBinary::readProfile().
|
inline |
Definition at line 770 of file SampleProf.h.
References llvm::counter_overflow, llvm::SaturatingMultiplyAdd(), and llvm::success.
Referenced by merge(), llvm::sampleprof::SampleProfileReaderBinary::readFuncProfile(), llvm::sampleprof::SampleProfileReaderText::readImpl(), and llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile().
|
inline |
Definition at line 793 of file SampleProf.h.
|
inline |
Definition at line 751 of file SampleProf.h.
References llvm::counter_overflow, llvm::SaturatingMultiplyAdd(), and llvm::success.
Referenced by merge(), llvm::sampleprof::SampleProfileReaderText::readImpl(), llvm::sampleprof::SampleProfileReaderBinary::readProfile(), and updateTotalSamples().
LLVM_DUMP_METHOD void FunctionSamples::dump | ( | ) | const |
Definition at line 312 of file SampleProf.cpp.
References llvm::dbgs(), and print().
|
inline |
Definition at line 929 of file SampleProf.h.
Referenced by llvm::MIRProfileLoader::runOnFunction().
void FunctionSamples::findAllNames | ( | DenseSet< FunctionId > & | NameSet | ) | const |
Definition at line 264 of file SampleProf.cpp.
References getFunction(), and llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert().
|
inline |
Returns the call target map collected at a given location specified by CallSite
.
If the location is not found in profile, return error.
Definition at line 898 of file SampleProf.h.
References mapIRLocToProfileLoc().
|
inline |
Returns the call target map collected at a given location.
Each location is specified by LineOffset
and Discriminator
. If the location is not found in profile, return error.
Definition at line 887 of file SampleProf.h.
References mapIRLocToProfileLoc().
Referenced by llvm::sampleprof::ProfiledCallGraph::ProfiledCallGraph().
const FunctionSamples * FunctionSamples::findFunctionSamples | ( | const DILocation * | DIL, |
SampleProfileReaderItaniumRemapper * | Remapper = nullptr |
||
) | const |
Get the FunctionSamples of the inline instance where DIL originates from.
The FunctionSamples of the instruction (Machine or IR) associated to DIL
is the inlined instance in which that instruction is coming from. We traverse the inline stack of that instruction, and match it with the tree nodes in the profile.
Remapper
is not nullptr, it will be used to find matching FunctionSamples with not exactly the same but equivalent name. Definition at line 238 of file SampleProf.cpp.
References assert(), llvm::SmallVectorImpl< T >::emplace_back(), getCallSiteIdentifier(), Name, ProfileIsFS, and llvm::SmallVectorBase< Size_T >::size().
const FunctionSamples * FunctionSamples::findFunctionSamplesAt | ( | const LineLocation & | Loc, |
StringRef | CalleeName, | ||
SampleProfileReaderItaniumRemapper * | Remapper | ||
) | const |
Returns a pointer to FunctionSamples at the given callsite location Loc
with callee CalleeName
.
If no callsite can be found, relax the restriction to return the FunctionSamples at callsite location Loc
with the maximum total sample count. If Remapper
is not nullptr, use Remapper
to find FunctionSamples with equivalent name as CalleeName
.
Definition at line 278 of file SampleProf.cpp.
References llvm::StringRef::empty(), getCanonicalFnName(), llvm::sampleprof::getRepInFormat(), llvm::sampleprof::SampleProfileReaderItaniumRemapper::lookUpNameInProfile(), and mapIRLocToProfileLoc().
|
inline |
Returns the FunctionSamplesMap at the given Loc
.
Definition at line 912 of file SampleProf.h.
References mapIRLocToProfileLoc().
|
inline |
Recursively traverses all children, if the total sample count of the corresponding function is no less than Threshold
, add its corresponding GUID to S
.
Also traverse the BodySamples to add hot CallTarget's GUID to S
.
Definition at line 1036 of file SampleProf.h.
References F, getFunction(), getGUID(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::lookup().
|
inline |
Return the number of samples collected at the given location.
Each location is specified by LineOffset
and Discriminator
. If the location is not found in profile, return error.
Definition at line 874 of file SampleProf.h.
References mapIRLocToProfileLoc().
|
inline |
Return the function samples at the given callsite location.
Definition at line 906 of file SampleProf.h.
References mapIRLocToProfileLoc().
Referenced by merge(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile(), and llvm::sampleprof::SampleProfileReaderBinary::readProfile().
|
inline |
Return all the samples collected in the body of the function.
Definition at line 971 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileWriterBinary::addNames(), dumpFunctionProfileJson(), getMaxCountInside(), llvm::sampleprof::SampleProfileWriterBinary::writeBody(), and llvm::sampleprof::SampleProfileWriterText::writeSample().
|
inlinestatic |
Returns a unique hash code for a combination of a callsite location and the callee function name.
Guarantee MD5 and non-MD5 representation of the same function results in the same hash.
Definition at line 1159 of file SampleProf.h.
References llvm::sampleprof::SampleContextFrame::getHashCode().
Referenced by llvm::ContextTrieNode::getChildContext(), llvm::ContextTrieNode::getOrCreateChildContext(), llvm::sampleprof::ProfileConverter::FrameNode::getOrCreateChildFrame(), and llvm::ContextTrieNode::removeChildContext().
|
static |
Returns a unique call site identifier for a given debug location of a call instruction.
This is wrapper of two scenarios, the probe-based profile and regular profile, to hide implementation details from the sample loader and the context tracker.
Definition at line 221 of file SampleProf.cpp.
References llvm::PseudoProbeDwarfDiscriminator::extractProbeIndex(), llvm::DILocation::getBaseDiscriminator(), getOffset(), ProfileIsFS, and ProfileIsProbeBased.
Referenced by findFunctionSamples(), llvm::SampleContextTracker::getIndirectCalleeContextSamplesFor(), and llvm::SampleContextTracker::promoteMergeContextSamplesTree().
|
inline |
Return all the callsite samples collected in the body of the function.
Definition at line 974 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileWriterBinary::addNames(), dumpFunctionProfileJson(), getMaxCountInside(), llvm::sampleprof::SampleProfileWriterBinary::writeBody(), llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeFuncMetadata(), and llvm::sampleprof::SampleProfileWriterText::writeSample().
|
inlinestatic |
Return the canonical name for a function, taking into account suffix elision policy attributes.
Definition at line 1085 of file SampleProf.h.
References F, and getCanonicalFnName().
Referenced by llvm::sampleprof::SampleProfileReaderExtBinaryBase::collectFuncsFromModule(), findFunctionSamplesAt(), llvm::SampleContextTracker::getAllContextSamplesFor(), llvm::SampleContextTracker::getBaseSamplesFor(), llvm::SampleContextTracker::getCalleeContextSamplesFor(), getCanonicalFnName(), llvm::PseudoProbeManager::getDesc(), llvm::memprof::IndexedMemProfRecord::getGUID(), and llvm::sampleprof::SampleProfileReader::getSamplesFor().
|
inlinestatic |
Definition at line 1097 of file SampleProf.h.
References assert(), HasUniqSuffix, LLVMSuffix, llvm::StringRef::npos, PartSuffix, llvm::StringRef::rfind(), llvm::StringRef::size(), llvm::StringRef::split(), llvm::StringRef::substr(), and UniqSuffix.
|
inline |
Definition at line 1185 of file SampleProf.h.
Referenced by llvm::SampleContextTracker::getContextSamplesFor(), llvm::SampleContextTracker::markContextSamplesInlined(), llvm::SampleContextTracker::populateFuncToCtxtMap(), llvm::sampleprof::ProfileConverter::ProfileConverter(), llvm::SampleContextTracker::promoteMergeContextSamplesTree(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), llvm::sampleprof::SampleProfileReaderText::readImpl(), llvm::sampleprof::SampleProfileWriterBinary::writeBody(), llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeFuncMetadata(), llvm::sampleprof::SampleProfileWriterText::writeSample(), and llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeSample().
|
inline |
Return the original function name.
Definition at line 1072 of file SampleProf.h.
References getFuncName(), and getFunction().
Referenced by getFuncName().
|
inline |
Translate Func
into its original name.
When profile doesn't use MD5, Func
needs no translation. When profile uses MD5, Func
in current FunctionSamples is actually GUID of the original function name. getFuncName will translate Func
in current FunctionSamples into its original name by looking up in the function map GUIDToFuncNameMap. If the original name doesn't exist in the map, return empty StringRef.
Definition at line 1136 of file SampleProf.h.
References assert(), GUIDToFuncNameMap, and UseMD5.
|
inline |
Return the function name.
Definition at line 1069 of file SampleProf.h.
References llvm::sampleprof::SampleContext::getFunction().
Referenced by llvm::sampleprof::SampleProfileWriterBinary::addNames(), dumpFunctionProfileJson(), findAllNames(), findInlinedFunctions(), getFuncName(), getGUID(), llvm::sampleprof::ProfiledCallGraph::ProfiledCallGraph(), and llvm::sampleprof::SampleProfileWriterText::writeSample().
|
inline |
Definition at line 1076 of file SampleProf.h.
Referenced by print(), llvm::PseudoProbeManager::profileIsHashMismatched(), llvm::PseudoProbeManager::profileIsValid(), llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeFuncMetadata(), and llvm::sampleprof::SampleProfileWriterText::writeSample().
|
inline |
Return the GUID of the context's name.
If the context is already using MD5, don't hash it again.
Definition at line 1204 of file SampleProf.h.
References getFunction(), and llvm::sampleprof::FunctionId::getHashCode().
Referenced by findInlinedFunctions().
|
inline |
For top-level functions, return the total number of branch samples that have the function as the branch target (or 0 otherwise).
This is the raw data fetched from the profile. This should be equivalent to the sample of the first instruction of the symbol. But as we directly get this info for raw profile without referring to potentially inaccurate debug info, this gives more accurate profile data and is preferred for standalone symbols.
Definition at line 940 of file SampleProf.h.
Referenced by dumpFunctionProfileJson(), getHeadSamplesEstimate(), llvm::sampleprof::SampleProfileWriterText::writeSample(), llvm::sampleprof::SampleProfileWriterBinary::writeSample(), and llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeSample().
|
inline |
Return an estimate of the sample count of the function entry basic block.
The function can be either a standalone symbol or an inlined function. For Context-Sensitive profiles, this will prefer returning the head samples (i.e. getHeadSamples()), if non-zero. Otherwise it estimates from the function body's samples or callsite samples.
Definition at line 947 of file SampleProf.h.
References getHeadSamples(), and ProfileIsCS.
Referenced by llvm::sampleprof::ProfiledCallGraph::ProfiledCallGraph().
|
inline |
Return the maximum of sample counts in a function body.
When SkipCallSite is false, which is the default, the return count includes samples in the inlined functions. When SkipCallSite is true, the return count only considers the body samples.
Definition at line 982 of file SampleProf.h.
References llvm::CallingConv::C, F, getBodySamples(), and getCallsiteSamples().
|
static |
Returns the line offset to the start line of the subprogram.
We assume that a single function will not exceed 65535 LOC.
Definition at line 216 of file SampleProf.cpp.
Referenced by getCallSiteIdentifier(), and llvm::SampleProfileLoaderBaseImpl< FT >::getInstWeightImpl().
|
inline |
Return the total number of samples collected inside the function.
Definition at line 932 of file SampleProf.h.
Referenced by llvm::sampleprofutil::callsiteIsHot(), dumpFunctionProfileJson(), llvm::ContextTrieNode::getHottestChildContext(), llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile(), llvm::sampleprof::SampleContextTrimmer::trimAndMergeColdContextProfiles(), llvm::sampleprof::SampleProfileWriterBinary::writeBody(), and llvm::sampleprof::SampleProfileWriterText::writeSample().
|
inline |
Definition at line 859 of file SampleProf.h.
Referenced by findCallTargetMapAt(), findFunctionSamplesAt(), findFunctionSamplesMapAt(), findSamplesAt(), and functionSamplesAt().
|
inline |
Merge the samples in Other
into this one.
Optionally scale samples by Weight
.
Definition at line 996 of file SampleProf.h.
References addHeadSamples(), addTotalSamples(), llvm::sampleprof::FunctionId::empty(), functionSamplesAt(), llvm::sampleprof::SampleContext::getFunction(), GUIDToFuncNameMap, llvm::hash_mismatch, I, merge(), llvm::MergeResult(), llvm::Other, and llvm::success.
Referenced by llvm::SampleContextTracker::createContextLessProfileMap(), merge(), and llvm::sampleprof::SampleContextTrimmer::trimAndMergeColdContextProfiles().
|
inline |
Definition at line 1223 of file SampleProf.h.
References llvm::Other.
|
inline |
Definition at line 1212 of file SampleProf.h.
References GUIDToFuncNameMap, and llvm::Other.
void FunctionSamples::print | ( | raw_ostream & | OS = dbgs() , |
unsigned | Indent = 0 |
||
) | const |
Print the samples collected for a function on stream OS
.
Definition at line 155 of file SampleProf.cpp.
References llvm::sampleprof::SampleSorter< LocationT, SampleT >::get(), getFunctionHash(), llvm::raw_ostream::indent(), and OS.
Referenced by dump().
|
inline |
Definition at line 817 of file SampleProf.h.
|
inline |
Definition at line 801 of file SampleProf.h.
References I.
|
inline |
Definition at line 759 of file SampleProf.h.
|
inline |
Definition at line 1187 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileReaderBinary::readFuncProfile().
|
inline |
Definition at line 849 of file SampleProf.h.
References I, llvm::sampleprof::SampleContext::setState(), and llvm::sampleprof::SyntheticContext.
|
inline |
Set the name of the function.
Definition at line 1064 of file SampleProf.h.
References llvm::sampleprof::SampleContext::setFunction().
Referenced by llvm::sampleprof::SampleProfileReaderText::readImpl(), llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile(), and llvm::sampleprof::SampleProfileReaderBinary::readProfile().
|
inline |
Definition at line 1074 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), and llvm::sampleprof::SampleProfileReaderText::readImpl().
|
inline |
Definition at line 768 of file SampleProf.h.
|
inline |
Definition at line 1078 of file SampleProf.h.
References assert().
|
inline |
Definition at line 766 of file SampleProf.h.
Referenced by updateTotalSamples().
|
inline |
Definition at line 822 of file SampleProf.h.
References I.
|
inline |
Definition at line 835 of file SampleProf.h.
References addTotalSamples(), I, and setTotalSamples().
GUIDToFuncNameMap saves the mapping from GUID to the symbol name, for all the function symbols defined or declared in current module.
Definition at line 1200 of file SampleProf.h.
Referenced by getFuncName(), merge(), and operator==().
Whether the profile contains any ".__uniq." suffix in a name.
Definition at line 1193 of file SampleProf.h.
Referenced by getCanonicalFnName(), and llvm::sampleprof::SampleProfileReaderExtBinaryBase::readOneSection().
Name suffixes which canonicalization should handle to avoid profile mismatch.
Definition at line 1093 of file SampleProf.h.
Referenced by getCanonicalFnName().
Definition at line 1094 of file SampleProf.h.
Referenced by getCanonicalFnName().
|
static |
Definition at line 1181 of file SampleProf.h.
Referenced by llvm::SampleProfileSummaryBuilder::computeSummaryForProfiles(), llvm::sampleprof::SampleProfileWriter::create(), getHeadSamplesEstimate(), llvm::sampleprof::ProfiledCallGraph::ProfiledCallGraph(), llvm::sampleprof::SampleProfileReaderText::readImpl(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readOneSection(), llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeFuncMetadata(), llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeFuncOffsetTable(), llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeOneSection(), and llvm::sampleprof::SampleProfileWriterText::writeSample().
|
static |
If this profile uses flow sensitive discriminators.
Definition at line 1196 of file SampleProf.h.
Referenced by findFunctionSamples(), getCallSiteIdentifier(), llvm::sampleprof::SampleProfileReaderText::readImpl(), llvm::sampleprof::SampleProfileReaderBinary::readImpl(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readOneSection(), and llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeOneSection().
|
static |
Definition at line 1183 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileReaderText::readImpl(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readOneSection(), llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeFuncMetadata(), and llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeOneSection().
|
static |
Definition at line 1179 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileWriter::create(), getCallSiteIdentifier(), llvm::SampleProfileLoaderBaseImpl< FT >::getInstWeight(), llvm::MIRProfileLoader::getInstWeight(), llvm::SampleProfileLoaderBaseImpl< FT >::getProbeWeight(), llvm::sampleprof::SampleProfileReaderText::readImpl(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readOneSection(), llvm::MIRProfileLoader::runOnFunction(), llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeFuncMetadata(), llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeOneSection(), and llvm::sampleprof::SampleProfileWriterText::writeSample().
Definition at line 1095 of file SampleProf.h.
Referenced by getCanonicalFnName(), llvm::getUniqueInternalLinkagePostfix(), and llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeNameTableSection().
|
static |
Whether the profile uses MD5 to represent string.
Definition at line 1190 of file SampleProf.h.
Referenced by getFuncName(), llvm::SampleContextTracker::getFuncNameFor(), llvm::sampleprof::getRepInFormat(), and llvm::sampleprof::SampleProfileReader::read().