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

Classes

struct  Header
 
struct  Summary
 

Enumerations

enum class  HashT : uint32_t { MD5 , Last = MD5 }
 
enum  ProfVersion {
  Version1 = 1 , Version2 = 2 , Version3 = 3 , Version4 = 4 ,
  Version5 = 5 , Version6 = 6 , Version7 = 7 , Version8 = 8 ,
  Version9 = 9 , Version10 = 10 , Version11 = 11 , Version12 = 12 ,
  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 >
size_t constexpr 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 995 of file InstrProf.h.

◆ ProfVersion

Enumerator
Version1 
Version2 
Version3 
Version4 
Version5 
Version6 
Version7 
Version8 
Version9 
Version10 
Version11 
Version12 
CurrentVersion 

Definition at line 1010 of file InstrProf.h.

Function Documentation

◆ allocSummary()

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

Definition at line 1163 of file InstrProf.h.

◆ ComputeHash() [1/2]

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

Definition at line 1000 of file InstrProf.h.

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

◆ ComputeHash() [2/2]

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

◆ offsetOf()

template<typename T1 , typename T2 >
size_t constexpr 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 1503 of file InstrProf.cpp.

References llvm::Offset.

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

Variable Documentation

◆ HashType

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

Definition at line 1049 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 1047 of file InstrProf.h.