LLVM 20.0.0git
|
#include "llvm/ProfileData/InstrProfReader.h"
Public Member Functions | |
IndexedMemProfReader ()=default | |
Error | deserialize (const unsigned char *Start, uint64_t MemProfOffset) |
Expected< memprof::MemProfRecord > | getMemProfRecord (const uint64_t FuncNameHash) const |
DenseMap< uint64_t, SmallVector< memprof::CallEdgeTy, 0 > > | getMemProfCallerCalleePairs () const |
memprof::AllMemProfData | getAllMemProfData () const |
Definition at line 687 of file InstrProfReader.h.
|
default |
Definition at line 1322 of file InstrProfReader.cpp.
References llvm::formatv(), llvm::memprof::MaximumSupportedVersion, llvm::memprof::MinimumSupportedVersion, Ptr, llvm::Error::success(), llvm::unsupported_version, llvm::memprof::Version2, and llvm::memprof::Version3.
Referenced by llvm::IndexedInstrProfReader::readHeader().
memprof::AllMemProfData IndexedMemProfReader::getAllMemProfData | ( | ) | const |
Definition at line 1667 of file InstrProfReader.cpp.
References getMemProfRecord(), llvm::memprof::GUIDMemProfRecordPair::GUID, llvm::memprof::AllMemProfData::HeapProfileRecords, and llvm::memprof::GUIDMemProfRecordPair::Record.
Referenced by llvm::IndexedInstrProfReader::getAllMemProfData().
DenseMap< uint64_t, SmallVector< memprof::CallEdgeTy, 0 > > IndexedMemProfReader::getMemProfCallerCalleePairs | ( | ) | const |
Definition at line 1629 of file InstrProfReader.cpp.
References assert(), llvm::memprof::CallerCalleePairExtractor::CallerCalleePairs, llvm::memprof::IndexedAllocationInfo::CSId, llvm::BitVector::set(), llvm::BitVector::set_bits(), llvm::sort(), llvm::unique(), and llvm::memprof::Version3.
Referenced by llvm::IndexedInstrProfReader::getMemProfCallerCalleePairs().
Expected< memprof::MemProfRecord > IndexedMemProfReader::getMemProfRecord | ( | const uint64_t | FuncNameHash | ) | const |
Definition at line 1593 of file InstrProfReader.cpp.
References assert(), llvm::formatv(), getMemProfRecordV2(), getMemProfRecordV3(), llvm::invalid_prof, llvm::memprof::MaximumSupportedVersion, llvm::memprof::MinimumSupportedVersion, llvm::unknown_function, llvm::unsupported_version, llvm::memprof::Version2, and llvm::memprof::Version3.
Referenced by getAllMemProfData(), and llvm::IndexedInstrProfReader::getMemProfRecord().