LLVM  15.0.0git
Classes | Enumerations | Functions | Variables
llvm::IndexedInstrProf Namespace Reference

Classes

struct  Header
 
struct  Summary
 

Enumerations

enum  HashT : uint32_t { HashT::MD5, HashT::Last = MD5 }
 
enum  ProfVersion {
  Version1 = 1, Version2 = 2, Version3 = 3, Version4 = 4,
  Version5 = 5, Version6 = 6, Version7 = 7, Version8 = 8,
  CurrentVersion = INSTR_PROF_INDEX_VERSION
}
 

Functions

uint64_t ComputeHash (StringRef K)
 
uint64_t ComputeHash (HashT Type, StringRef K)
 
std::unique_ptr< SummaryallocSummary (uint32_t TotalSize)
 
template<typename T1 , typename T2 >
constexpr size_t offsetOf (T1 T2::*Member)
 
static uint64_t read (const unsigned char *Buffer, size_t Offset)
 

Variables

const uint64_t Magic = 0x8169666f72706cff
 
const uint64_t Version = ProfVersion::CurrentVersion
 
const HashT HashType = HashT::MD5
 

Enumeration Type Documentation

◆ HashT

Enumerator
MD5 
Last 

Definition at line 983 of file InstrProf.h.

◆ ProfVersion

Enumerator
Version1 
Version2 
Version3 
Version4 
Version5 
Version6 
Version7 
Version8 
CurrentVersion 

Definition at line 998 of file InstrProf.h.

Function Documentation

◆ allocSummary()

std::unique_ptr<Summary> llvm::IndexedInstrProf::allocSummary ( uint32_t  TotalSize)
inline

Definition at line 1139 of file InstrProf.h.

◆ ComputeHash() [1/2]

uint64_t llvm::IndexedInstrProf::ComputeHash ( HashT  Type,
StringRef  K 
)
inline

Definition at line 988 of file InstrProf.h.

References llvm_unreachable, MD5, and llvm::MD5Hash().

◆ ComputeHash() [2/2]

uint64_t llvm::IndexedInstrProf::ComputeHash ( StringRef  K)
inline

◆ offsetOf()

template<typename T1 , typename T2 >
constexpr size_t llvm::IndexedInstrProf::offsetOf ( T1 T2::*  Member)
inlineconstexpr

◆ read()

static uint64_t llvm::IndexedInstrProf::read ( const unsigned char *  Buffer,
size_t  Offset 
)
inlinestatic

Definition at line 1319 of file InstrProf.cpp.

Referenced by llvm::IndexedInstrProf::Header::readFromBuffer().

Variable Documentation

◆ HashType

const HashT llvm::IndexedInstrProf::HashType = HashT::MD5

Definition at line 1029 of file InstrProf.h.

Referenced by ComputeHash().

◆ Magic

const uint64_t llvm::IndexedInstrProf::Magic = 0x8169666f72706cff

◆ Version

const uint64_t llvm::IndexedInstrProf::Version = ProfVersion::CurrentVersion

Definition at line 1027 of file InstrProf.h.

Referenced by analyzeHeader(), callPrintfBegin(), llvm::remarks::createYAMLParserFromMeta(), llvm::AMDGPU::decodeExpcnt(), llvm::AMDGPU::decodeLgkmcnt(), llvm::AMDGPU::decodeVmcnt(), llvm::AMDGPU::decodeWaitcnt(), llvm::DWARFDebugNames::Header::dump(), llvm::dwarf::CIE::dump(), dumpStringOffsetsSection(), llvm::DwarfUnit::emitCommonHeader(), llvm::TargetLoweringObjectFileELF::emitModuleMetadata(), llvm::TargetLoweringObjectFileCOFF::emitModuleMetadata(), llvm::WebAssemblyAsmPrinter::EmitProducerInfo(), llvm::AMDGPU::HSAMD::MetadataStreamerV3::emitVersion(), llvm::AMDGPU::HSAMD::MetadataStreamerV4::emitVersion(), llvm::AMDGPU::HSAMD::MetadataStreamerV5::emitVersion(), llvm::AMDGPU::HSAMD::MetadataStreamerV2::emitVersion(), emitVersion(), llvm::MCStreamer::emitVersionForTarget(), llvm::AMDGPU::encodeExpcnt(), llvm::AMDGPU::encodeLgkmcnt(), llvm::AMDGPU::encodeVmcnt(), llvm::AMDGPU::encodeWaitcnt(), llvm::DWARFDebugNames::Header::extract(), llvm::AMDGPU::IsaInfo::getAddressableNumSGPRs(), llvm::pdb::PDBSymbolCompilandDetails::getBackEndVersion(), llvm::pdb::DIARawSymbol::getBackEndVersion(), llvm::pdb::NativeRawSymbol::getBackEndVersion(), llvm::Triple::getCanonicalVersionForOS(), getDecodedGVSummaryFlags(), llvm::AMDGPU::getDefaultAmdhsaKernelDescriptor(), llvm::Triple::getDriverKitVersion(), llvm::AMDGPU::getExpcntBitMask(), llvm::FaultMapParser::getFaultMapVersion(), llvm::pdb::PDBSymbolCompilandDetails::getFrontEndVersion(), llvm::pdb::DIARawSymbol::getFrontEndVersion(), llvm::pdb::NativeRawSymbol::getFrontEndVersion(), getIndexedString(), llvm::Triple::getiOSVersion(), llvm::AMDGPU::getLgkmcntBitMask(), llvm::Triple::getMacOSXVersion(), llvm::AMDGPU::IsaInfo::getMaxNumSGPRs(), llvm::AMDGPU::IsaInfo::getMinNumSGPRs(), llvm::AMDGPU::IsaInfo::getNumExtraSGPRs(), GetObjCImageInfo(), llvm::MachO::getOSAndEnvironmentName(), llvm::getPGOFuncName(), llvm::RawInstrProfReader< IntPtrT >::getProfileKind(), getProfileKindFromVersion(), llvm::AMDGPU::IsaInfo::getSGPRAllocGranule(), getStandardOpcodeLengths(), llvm::AMDGPU::IsaInfo::getTotalNumSGPRs(), llvm::object::XCOFFAuxiliaryHeader< XCOFFAuxiliaryHeader32 >::getVersion(), llvm::coverage::CovMapHeader::getVersion(), llvm::object::MachOObjectFile::getVersionString(), llvm::AMDGPU::getVmcntBitMask(), llvm::AMDGPU::getWaitcntBitMask(), llvm::Triple::getWatchOSVersion(), getWindowsSDKDirViaCommandLine(), llvm::AMDGPU::initDefaultAMDKernelCodeT(), initialize(), llvm::InstrProfReaderIndex< HashTableImpl >::InstrProfReaderIndex(), llvm::Triple::isAndroidVersionLT(), llvm::dwarf::isValidFormForVersion(), loadTestingFormat(), llvm::xray::loadTrace(), llvm::object::ELFFile< ELFT >::loadVersionMap(), llvm::yaml::MappingTraits< DXContainerYAML::VersionTuple >::mapping(), llvm::pdb::operator<<(), llvm::MachO::operator<<(), llvm::vfs::RedirectingFileSystemParser::parse(), llvm::RISCVISAInfo::parseArchString(), parseARMArch(), llvm::TargetMachine::parseBinutilsVersion(), parseDWARF32StringOffsetsTableHeader(), parseDWARF64StringOffsetsTableHeader(), parseVersion(), parseVersionFromName(), llvm::ScopedPrinter::printVersion(), llvm::irsymtab::readBitcode(), readCoverageMappingData(), llvm::sampleprof::SampleProfileReaderBinary::readMagicIdent(), llvm::AsmPrinter::recordSled(), llvm::MachO::InterfaceFile::setCompatibilityVersion(), llvm::MachO::InterfaceFile::setCurrentVersion(), llvm::Module::setDarwinTargetVariantSDKVersion(), llvm::AsmPrinter::setDwarfVersion(), llvm::DWARFContext::setMaxVersionIfGreater(), llvm::MachO::InterfaceFile::setSwiftABIVersion(), llvm::pdb::TpiStreamBuilder::setVersionHeader(), llvm::StrOffsetsContributionDescriptor::StrOffsetsContributionDescriptor(), llvm::AMDGPU::IsaInfo::AMDGPUTargetID::toString(), llvm::DwarfStreamer::translateLineTable(), llvm::UpgradeDebugInfo(), llvm::StackMapParser< Endianness >::validateHeader(), versionIsSupported(), llvm::objcopy::wasm::Writer::write(), and llvm::write().