|
LLVM 24.0.0git
|
#include "llvm/ProfileData/SampleProfReader.h"
Public Member Functions | |
| SampleProfileReaderBinary (std::unique_ptr< MemoryBuffer > B, LLVMContext &C, SampleProfileFormat Format=SPF_None) | |
| std::error_code | readHeader () override |
| Read and validate the file header. | |
| std::error_code | readImpl () override |
| Read sample profiles from the associated file. | |
| llvm::iterator_range< SampleProfileNameTable::iterator > | getNameTable () const override |
| It includes all the names that have samples either in outline instance or inline instance. | |
| bool | contains (StringRef Key) const override |
| bool | contains (uint64_t GUID) const override |
| Public Member Functions inherited from llvm::sampleprof::SampleProfileReader | |
| SampleProfileReader (std::unique_ptr< MemoryBuffer > B, LLVMContext &C, SampleProfileFormat Format=SPF_None) | |
| virtual | ~SampleProfileReader ()=default |
| void | setDiscriminatorMaskedBitFrom (FSDiscriminatorPass P) |
| Set the bits for FS discriminators. | |
| uint32_t | getDiscriminatorMask () const |
| Get the bitmask the discriminators: For FS profiles, return the bit mask for this pass. | |
| std::error_code | read () |
| The interface to read sample profiles from the associated file. | |
| std::error_code | read (const DenseSet< StringRef > &FuncsToUse) |
| Read sample profiles for the given functions. | |
| LLVM_ABI void | dumpFunctionProfile (const FunctionSamples &FS, raw_ostream &OS=dbgs()) |
Print the profile for FunctionSamples on stream OS. | |
| virtual bool | collectFuncsFromModule () |
| Collect functions with definitions in Module M. | |
| LLVM_ABI void | dump (raw_ostream &OS=dbgs()) |
Print all the profiles on stream OS. | |
| LLVM_ABI void | dumpJson (raw_ostream &OS=dbgs()) |
Print all the profiles on stream OS in the JSON format. | |
| uint64_t | getFormatVersion () const |
| Return the format version of the profile. For tests only. | |
| FunctionSamples * | getSamplesFor (const Function &F) |
Return the samples collected for function F. | |
| FunctionSamples * | getSamplesFor (StringRef Fname) |
Return the samples collected for function F. | |
| SampleProfileMap & | getProfiles () |
| Return all the profiles. | |
| void | reportError (int64_t LineNumber, const Twine &Msg) const |
| Report a parse error message. | |
| ProfileSummary & | getSummary () const |
| Return the profile summary. | |
| MemoryBuffer * | getBuffer () const |
| SampleProfileFormat | getFormat () const |
| Return the profile format. | |
| bool | profileIsProbeBased () const |
| Whether input profile is based on pseudo probes. | |
| bool | profileIsCS () const |
| Whether input profile is fully context-sensitive. | |
| bool | profileIsPreInlined () const |
| Whether input profile contains ShouldBeInlined contexts. | |
| bool | profileIsFS () const |
| Whether input profile is flow-sensitive. | |
| virtual std::unique_ptr< ProfileSymbolList > | getProfileSymbolList () |
| virtual bool | dumpSectionInfo (raw_ostream &OS=dbgs()) |
| std::error_code | dumpProfileTypeInfo (raw_ostream &OS) |
| Read the profile and print the structure of composite profile blocks. | |
| virtual bool | hasCompositeProfileSection () const |
| Return whether the input contains a composite profile section. | |
| bool | hasUnknownProfileTypes () const |
| Return whether any unknown composite profile blocks were skipped. | |
| bool | useMD5 () const |
| Return whether names in the profile are all MD5 numbers. | |
| virtual void | setProfileUseMD5 () |
| Force the profile to use MD5 in Sample contexts, even if function names are present. | |
| void | setSkipFlatProf (bool Skip) |
| Don't read profile without context if the flag is set. | |
| virtual bool | hasUniqSuffix () |
| Return whether any name in the profile contains ".__uniq." suffix. | |
| SampleProfileReaderItaniumRemapper * | getRemapper () |
| void | setModule (const Module *Mod) |
| void | setFuncNameToProfNameMap (const HashKeyMap< DenseMap, FunctionId, FunctionId > &FPMap) |
Protected Member Functions | |
| template<typename T> | |
| ErrorOr< T > | readNumber () |
| Read a numeric value of type T from the profile. | |
| template<typename T> | |
| ErrorOr< T > | readUnencodedNumber () |
| Read a numeric value of type T from the profile. | |
| ErrorOr< StringRef > | readString () |
| Read a string from the profile. | |
| template<typename T> | |
| ErrorOr< size_t > | readStringIndex (T &Table) |
| Read the string index and check whether it overflows the table. | |
| std::error_code | readFuncProfile (const uint8_t *Start) |
| Read the next function profile instance. | |
| std::error_code | readFuncProfile (const uint8_t *Start, SampleProfileMap &Profiles) |
| std::error_code | readProfile (FunctionSamples &FProfile, bool IsNested) |
| Read the contents of the given profile instance. | |
| std::error_code | readLBRProfile (FunctionSamples &FProfile, bool IsNested) |
| Read specific profile types. | |
| std::error_code | readCompositeProfile (FunctionSamples &FProfile, bool IsNested) |
| std::error_code | readMagicIdent () |
| Read the contents of Magic number and Version number. | |
| std::error_code | readSummary () |
| Read profile summary. | |
| std::error_code | readNameTable () |
| Read the whole name table. | |
| ErrorOr< FunctionId > | readStringFromTable (size_t *RetIdx=nullptr) |
| Read a string indirectly via the name table. Optionally return the index. | |
| ErrorOr< SampleContextFrames > | readContextFromTable (size_t *RetIdx=nullptr) |
| Read a context indirectly via the CSNameTable. | |
| ErrorOr< std::pair< SampleContext, uint64_t > > | readSampleContextFromTable () |
| Read a context indirectly via the CSNameTable if the profile has context, otherwise same as readStringFromTable, also return its hash value. | |
| std::error_code | readCallsiteVTableProf (FunctionSamples &FProfile) |
Read all virtual functions' vtable access counts for FProfile. | |
| std::error_code | readVTableTypeCountMap (TypeCountMap &M) |
Read bytes from the input buffer pointed by Data and decode them into M. | |
| Protected Member Functions inherited from llvm::sampleprof::SampleProfileReader | |
| LLVM_ABI void | computeSummary () |
| Compute summary for this profile. | |
| virtual std::error_code | read (const DenseSet< StringRef > &FuncsToUse, SampleProfileMap &Profiles) |
| Read sample profiles for the given functions and write them to the given profile map. | |
Protected Attributes | |
| const uint8_t * | Data = nullptr |
| Points to the current location in the buffer. | |
| const uint8_t * | End = nullptr |
| Points to the end of the buffer. | |
| std::unique_ptr< SampleProfileNameTable > | NameTable |
| Function name table. | |
| std::vector< SampleContextFrameVector > | CSNameTable |
| CSNameTable is used to save full context vectors. | |
| std::vector< uint64_t > | MD5SampleContextTable |
| Table to cache MD5 values of sample contexts corresponding to readSampleContextFromTable(), used to index into Profiles or FuncOffsetTable. | |
| const uint64_t * | MD5SampleContextStart = nullptr |
| The starting address of the table of MD5 values of sample contexts. | |
| Protected Attributes inherited from llvm::sampleprof::SampleProfileReader | |
| SampleProfileMap | Profiles |
| Map every function to its associated profile. | |
| LLVMContext & | Ctx |
| LLVM context used to emit diagnostics. | |
| std::unique_ptr< MemoryBuffer > | Buffer |
| Memory buffer holding the profile file. | |
| std::unique_ptr< ProfileSummary > | Summary |
| Profile summary information. | |
| std::unique_ptr< SampleProfileReaderItaniumRemapper > | Remapper |
| const HashKeyMap< DenseMap, FunctionId, FunctionId > * | FuncNameToProfNameMap |
| DenseMap< uint64_t, std::pair< const uint8_t *, const uint8_t * > > | FuncMetadataIndex |
| ProfileSectionRange | ProfileSecRange |
| Profile section most recently selected for on-demand loading. | |
| raw_ostream * | ProfileTypeInfoOS = nullptr |
| Optional stream for composite block structure; null disables the output. | |
| bool | HasUnknownProfileTypes = false |
| Whether reading skipped at least one unknown composite profile block. | |
| bool | ProfileHasAttribute = false |
| Whether the profile has attribute metadata. | |
| bool | ProfileIsProbeBased = false |
| Whether samples are collected based on pseudo probes. | |
| bool | ProfileIsCS = false |
| Whether function profiles are context-sensitive flat profiles. | |
| bool | ProfileIsPreInlined = false |
| Whether function profile contains ShouldBeInlined contexts. | |
| uint32_t | CSProfileCount = 0 |
| Number of context-sensitive profiles. | |
| bool | ProfileIsFS = false |
| Whether the function profiles use FS discriminators. | |
| uint64_t | FormatVersion = 0 |
| Format version of the profile. | |
| bool | ReadVTableProf = false |
| If true, the profile has vtable profiles and reader should decode them to parse profiles correctly. | |
| SampleProfileFormat | Format = SPF_None |
| The format of sample. | |
| const Module * | M = nullptr |
| The current module being compiled if SampleProfileReader is used by compiler. | |
| uint32_t | MaskedBitFrom = 31 |
| Zero out the discriminator bits higher than bit MaskedBitFrom (0 based). | |
| bool | ProfileIsMD5 = false |
| Whether the profile uses MD5 for Sample Contexts and function names. | |
| bool | SkipFlatProf = false |
| If SkipFlatProf is true, skip functions marked with !Flat in text mode or sections with SecFlagFlat flag in ExtBinary mode. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from llvm::sampleprof::SampleProfileReader | |
| static LLVM_ABI ErrorOr< std::unique_ptr< SampleProfileReader > > | create (StringRef Filename, LLVMContext &C, vfs::FileSystem &FS, FSDiscriminatorPass P=FSDiscriminatorPass::Base, StringRef RemapFilename="") |
| Create a sample profile reader appropriate to the file format. | |
| static LLVM_ABI ErrorOr< std::unique_ptr< SampleProfileReader > > | create (std::unique_ptr< MemoryBuffer > &B, LLVMContext &C, vfs::FileSystem &FS, FSDiscriminatorPass P=FSDiscriminatorPass::Base, StringRef RemapFilename="") |
| Create a sample profile reader from the supplied memory buffer. | |
| Static Protected Member Functions inherited from llvm::sampleprof::SampleProfileReader | |
| static std::unique_ptr< ProfileSummary > | takeSummary (SampleProfileReader &Reader) |
| Take ownership of the summary of this reader. | |
Definition at line 895 of file SampleProfReader.h.
|
inline |
Definition at line 897 of file SampleProfReader.h.
References B(), C(), llvm::sampleprof::SampleProfileReader::Format, llvm::move(), llvm::sampleprof::SampleProfileReader::SampleProfileReader(), and llvm::sampleprof::SPF_None.
Referenced by llvm::sampleprof::SampleProfileReaderExtBinaryBase::SampleProfileReaderExtBinaryBase(), and llvm::sampleprof::SampleProfileReaderRawBinary::SampleProfileReaderRawBinary().
|
inlineoverridevirtual |
Reimplemented from llvm::sampleprof::SampleProfileReader.
Definition at line 917 of file SampleProfReader.h.
References assert(), llvm::InnerAnalysisManagerProxy< AnalysisManagerT, IRUnitT, ExtraArgTs... >::Key, and NameTable.
|
inlineoverridevirtual |
Reimplemented from llvm::sampleprof::SampleProfileReader.
Definition at line 922 of file SampleProfReader.h.
|
inlineoverridevirtual |
It includes all the names that have samples either in outline instance or inline instance.
Reimplemented from llvm::sampleprof::SampleProfileReader.
Definition at line 910 of file SampleProfReader.h.
References NameTable.
|
protected |
Read all virtual functions' vtable access counts for FProfile.
Definition at line 706 of file SampleProfReader.cpp.
References assert(), llvm::sampleprof::SampleProfileReader::getDiscriminatorMask(), llvm::sampleprof::FunctionSamples::getTypeSamplesAt(), I, llvm::illegal_line_offset, isOffsetLegal(), readNumber(), llvm::sampleprof::SampleProfileReader::ReadVTableProf, readVTableTypeCountMap(), llvm::sampleprof::FunctionSamples::reserveCallsiteTypeCounts(), and llvm::success.
Referenced by readProfile().
|
protected |
Definition at line 802 of file SampleProfReader.cpp.
References Data, End, llvm::sampleprof::FunctionSamples::getContext(), llvm::sampleprof::getProfTypeName(), llvm::sampleprof::SampleProfileReader::HasUnknownProfileTypes, I, llvm::SmallSet< T, N, C >::insert(), llvm::malformed, llvm::sampleprof::SampleProfileReader::ProfileTypeInfoOS, llvm::sampleprof::ProfTypeLBR, readLBRProfile(), readNumber(), llvm::sampleprof::SampleProfileReader::reportError(), Size, llvm::success, llvm::sampleprof::SampleContext::toString(), and llvm::truncated.
Referenced by readProfile().
|
protected |
Read a context indirectly via the CSNameTable.
Optionally return the index.
Definition at line 635 of file SampleProfReader.cpp.
References CSNameTable, readNumber(), and llvm::truncated_name_table.
Referenced by readSampleContextFromTable().
Read the next function profile instance.
Definition at line 953 of file SampleProfReader.cpp.
References llvm::sampleprof::SampleProfileReader::Profiles, and readFuncProfile().
Referenced by readFuncProfile(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncProfiles(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncProfiles(), and readImpl().
|
protected |
Definition at line 923 of file SampleProfReader.cpp.
References llvm::sampleprof::FunctionSamples::addHeadSamples(), llvm::sampleprof::SampleProfileReader::CSProfileCount, Data, llvm::ErrorOr< T >::getError(), llvm::sampleprof::SampleProfileReader::Profiles, llvm::sampleprof::SampleProfileReader::ProfileSecRange, readNumber(), readProfile(), readSampleContextFromTable(), llvm::sampleprof::FunctionSamples::setContext(), and llvm::success.
|
overridevirtual |
Read and validate the file header.
Implements llvm::sampleprof::SampleProfileReader.
Reimplemented in llvm::sampleprof::SampleProfileReaderExtBinaryBase.
Definition at line 1916 of file SampleProfReader.cpp.
References llvm::sampleprof::SampleProfileReader::Buffer, Data, End, readMagicIdent(), readNameTable(), readSummary(), and llvm::success.
|
overridevirtual |
Read sample profiles from the associated file.
Implements llvm::sampleprof::SampleProfileReader.
Reimplemented in llvm::sampleprof::SampleProfileReaderExtBinaryBase.
Definition at line 957 of file SampleProfReader.cpp.
References Data, End, llvm::sampleprof::FunctionSamples::ProfileIsFS, llvm::sampleprof::SampleProfileReader::ProfileIsFS, ProfileIsFSDisciminator, readFuncProfile(), and llvm::success.
|
protected |
Read specific profile types.
Definition at line 739 of file SampleProfReader.cpp.
References llvm::sampleprof::FunctionSamples::addBodySamples(), llvm::sampleprof::FunctionSamples::addCalledTargetSamples(), llvm::sampleprof::FunctionSamples::addHeadSamples(), llvm::sampleprof::FunctionSamples::addTotalSamples(), llvm::sampleprof::SampleProfileReader::getDiscriminatorMask(), I, llvm::illegal_line_offset, isOffsetLegal(), llvm::sampleprof::SampleProfileReader::ProfileSecRange, readNumber(), readStringFromTable(), llvm::sampleprof::FunctionSamples::reserveBodySamples(), and llvm::success.
Referenced by readCompositeProfile(), and readProfile().
|
protected |
Read the contents of Magic number and Version number.
Definition at line 1897 of file SampleProfReader.cpp.
References llvm::sampleprof::SampleProfileReader::FormatVersion, llvm::sampleprof::formatVersionIsSupported(), readNumber(), llvm::success, llvm::unsupported_version, and llvm::Version.
Referenced by readHeader(), and llvm::sampleprof::SampleProfileReaderExtBinaryBase::readHeader().
|
protected |
Read the whole name table.
Definition at line 1436 of file SampleProfReader.cpp.
References llvm::sampleprof::FunctionId::getHashCode(), I, MD5SampleContextStart, MD5SampleContextTable, NameTable, llvm::sampleprof::SampleProfileReader::ProfileIsCS, readNumber(), readString(), Size, llvm::success, and llvm::sampleprof::SampleProfileReader::useMD5().
Referenced by readHeader(), and llvm::sampleprof::SampleProfileReaderExtBinaryBase::readNameTableSecLegacy().
Read a numeric value of type T from the profile.
If an error occurs during decoding, a diagnostic message is emitted and EC is set.
Definition at line 563 of file SampleProfReader.cpp.
References Data, llvm::decodeULEB128(), diagnoseReaderError(), End, llvm::malformed, llvm::None, T, llvm::TooBig, llvm::truncated, and llvm::UnexpectedEnd.
Referenced by readCallsiteVTableProf(), readCompositeProfile(), readContextFromTable(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readCSNameTableSec(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), readFuncProfile(), readLBRProfile(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readLegacyFuncOffsetTable(), readMagicIdent(), readNameTable(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readNameTableSecEytzinger(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readNameTableSecLegacy(), readProfile(), readStringIndex(), readSummary(), and readVTableTypeCountMap().
|
protected |
Read the contents of the given profile instance.
Definition at line 878 of file SampleProfReader.cpp.
References llvm::sampleprof::FunctionSamples::functionSamplesAt(), llvm::sampleprof::SampleProfileReader::getDiscriminatorMask(), llvm::sampleprof::SampleProfileReader::ProfileSecRange, readCallsiteVTableProf(), readCompositeProfile(), readLBRProfile(), readNumber(), readProfile(), readStringFromTable(), llvm::sampleprof::SampleProfileReader::ReadVTableProf, llvm::sampleprof::FunctionSamples::setFunction(), and llvm::success.
Referenced by readFuncProfile(), and readProfile().
|
protected |
Read a context indirectly via the CSNameTable if the profile has context, otherwise same as readStringFromTable, also return its hash value.
Definition at line 647 of file SampleProfReader.cpp.
References assert(), MD5SampleContextStart, MD5SampleContextTable, llvm::sampleprof::SampleProfileReader::ProfileIsCS, llvm::support::endian::read64le(), readContextFromTable(), readStringFromTable(), and llvm::support::endian::write64le().
Referenced by llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), readFuncProfile(), and llvm::sampleprof::SampleProfileReaderExtBinaryBase::readLegacyFuncOffsetTable().
Read a string from the profile.
If an error occurs during decoding, a diagnostic message is emitted and EC is set.
Definition at line 588 of file SampleProfReader.cpp.
References Data, diagnoseReaderError(), End, and llvm::truncated.
Referenced by readNameTable().
|
protected |
Read a string indirectly via the name table. Optionally return the index.
Definition at line 623 of file SampleProfReader.cpp.
References NameTable, readStringIndex(), and llvm::truncated_name_table.
Referenced by llvm::sampleprof::SampleProfileReaderExtBinaryBase::readCSNameTableSec(), readLBRProfile(), readProfile(), readSampleContextFromTable(), and readVTableTypeCountMap().
|
inlineprotected |
Read the string index and check whether it overflows the table.
Definition at line 613 of file SampleProfReader.cpp.
References readNumber(), T, llvm::Table, and llvm::truncated_name_table.
Referenced by readStringFromTable().
|
protected |
Read profile summary.
Definition at line 1949 of file SampleProfReader.cpp.
References llvm::ProfileSummary::PSK_Sample, readNumber(), llvm::success, and llvm::sampleprof::SampleProfileReader::Summary.
Referenced by readHeader(), and llvm::sampleprof::SampleProfileReaderExtBinaryBase::readOneSection().
Read a numeric value of type T from the profile.
The value is saved without encoded.
Definition at line 603 of file SampleProfReader.cpp.
References Data, diagnoseReaderError(), End, llvm::support::endian::readNext(), T, and llvm::truncated.
Referenced by llvm::sampleprof::SampleProfileReaderExtBinaryBase::readSecHdrTable(), and llvm::sampleprof::SampleProfileReaderExtBinaryBase::readSecHdrTableEntry().
|
protected |
Read bytes from the input buffer pointed by Data and decode them into M.
Data will be advanced to the end of the read bytes when this function returns. Returns error if any.
Definition at line 676 of file SampleProfReader.cpp.
References llvm::sampleprof::SampleProfileReader::Buffer, llvm::sampleprof::SampleProfileReader::Ctx, llvm::DS_Warning, I, llvm::sampleprof::SampleProfileReader::M, readNumber(), readStringFromTable(), and llvm::success.
Referenced by readCallsiteVTableProf().
|
protected |
CSNameTable is used to save full context vectors.
It is the backing buffer for SampleContextFrames.
Definition at line 1003 of file SampleProfReader.h.
Referenced by readContextFromTable(), and llvm::sampleprof::SampleProfileReaderExtBinaryBase::readCSNameTableSec().
Points to the current location in the buffer.
Definition at line 993 of file SampleProfReader.h.
Referenced by readCompositeProfile(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readEytzingerFuncOffsetTable(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), readFuncProfile(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncProfiles(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncProfiles(), readHeader(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readHeader(), readImpl(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readImpl(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readMD5ProfileSymbolList(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readNameTableSecEytzinger(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readNameTableSecLegacy(), readNumber(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readOneSection(), readString(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readStringBasedProfileSymbolList(), and readUnencodedNumber().
Points to the end of the buffer.
Definition at line 996 of file SampleProfReader.h.
Referenced by readCompositeProfile(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readEytzingerFuncOffsetTable(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncProfiles(), readHeader(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readHeader(), readImpl(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readImpl(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readMD5ProfileSymbolList(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readNameTableSecEytzinger(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readNameTableSecLegacy(), readNumber(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readOneSection(), readString(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readStringBasedProfileSymbolList(), and readUnencodedNumber().
|
protected |
The starting address of the table of MD5 values of sample contexts.
For fixed length MD5 non-CS profile it is same as MD5NameMemStart because hashes of non-CS contexts are already in the profile. Otherwise it points to the start of MD5SampleContextTable.
Definition at line 1014 of file SampleProfReader.h.
Referenced by llvm::sampleprof::SampleProfileReaderExtBinaryBase::readCSNameTableSec(), readNameTable(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readNameTableSecEytzinger(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readNameTableSecLegacy(), and readSampleContextFromTable().
|
protected |
Table to cache MD5 values of sample contexts corresponding to readSampleContextFromTable(), used to index into Profiles or FuncOffsetTable.
Definition at line 1008 of file SampleProfReader.h.
Referenced by llvm::sampleprof::SampleProfileReaderExtBinaryBase::readCSNameTableSec(), readNameTable(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readNameTableSecLegacy(), and readSampleContextFromTable().
|
protected |
Function name table.
Definition at line 999 of file SampleProfReader.h.
Referenced by contains(), contains(), getNameTable(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readEytzingerFuncOffsetTable(), readNameTable(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readNameTableSecEytzinger(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readNameTableSecLegacy(), and readStringFromTable().