LLVM 22.0.0git
llvm::coverage::CovMapFunctionRecordV1< IntPtrT > Struct Template Reference

#include "llvm/ProfileData/Coverage/CoverageMapping.h"

Public Types

using ThisT = CovMapFunctionRecordV1<IntPtrT>

Public Member Functions

 INSTR_PROF_DATA (const uint64_t, llvm::Type::getInt64Ty(Ctx), NameRef, ConstantInt::get(llvm::Type::getInt64Ty(Ctx), IndexedInstrProf::ComputeHash(getPGOFuncNameVarInitializer(Inc->getName())))) INSTR_PROF_DATA(const uint64_t
 llvm::Type::getInt64Ty (Ctx)
 ConstantInt::get (llvm::Type::getInt64Ty(Ctx), Inc->getHash() ->getZExtValue())) INSTR_PROF_DATA(const IntPtrT
 llvm::PointerType::getUnqual (Ctx)
FunctionAddr INSTR_PROF_DATA (IntPtrT, llvm::PointerType::getUnqual(Ctx), Values, ValuesPtrExpr) INSTR_PROF_DATA(const uint32_t
FunctionAddr llvm::Type::getInt32Ty (Ctx)
FunctionAddr ConstantInt::get (llvm::Type::getInt32Ty(Ctx), NumCounters)) INSTR_PROF_DATA(const uint16_t
FunctionAddr ConstantArray::get (Int16ArrayTy, Int16ArrayVals)) INSTR_PROF_DATA(const uint32_t
FunctionAddr llvm::Type::getInt32Ty (Ctx)
FunctionAddr ConstantInt::get (llvm::Type::getInt32Ty(Ctx), NumBitmapBytes)) INSTR_PROF_VTABLE_DATA(const uint64_t
FunctionAddr llvm::Type::getInt64Ty (Ctx)
FunctionAddr ConstantInt::get (llvm::Type::getInt64Ty(Ctx), IndexedInstrProf::ComputeHash(PGOVTableName))) INSTR_PROF_VTABLE_DATA(const IntPtrT
FunctionAddr llvm::PointerType::getUnqual (Ctx)
FunctionAddr VTableAddr INSTR_PROF_VTABLE_DATA (const uint32_t, llvm::Type::getInt32Ty(Ctx), VTableSize, ConstantInt::get(llvm::Type::getInt32Ty(Ctx), VTableSizeVal)) INSTR_PROF_VALUE_NODE(uint64_t
FunctionAddr VTableAddr llvm::Type::getInt64Ty (Ctx)
FunctionAddr VTableAddr ConstantInt::get (llvm::Type::GetInt64Ty(Ctx), 0)) INSTR_PROF_VALUE_NODE(uint64_t
FunctionAddr VTableAddr llvm::Type::getInt64Ty (Ctx)
FunctionAddr VTableAddr ConstantInt::get (llvm::Type::GetInt64Ty(Ctx), 0)) INSTR_PROF_VALUE_NODE(PtrToNodeT
FunctionAddr VTableAddr llvm::PointerType::getUnqual (Ctx)
FunctionAddr VTableAddr ConstantInt::get (llvm::PointerType::getUnqual(Ctx), 0)) INSTR_PROF_RAW_HEADER(uint64_t
FunctionAddr VTableAddr uintptr_t CountersBegin (uintptr_t) DataBegin) INSTR_PROF_RAW_HEADER(uint64_t
FunctionAddr VTableAddr uintptr_t uintptr_t BitmapBegin (uintptr_t) DataBegin) VALUE_PROF_FUNC_PARAM(uint64_t
FunctionAddr VTableAddr uintptr_t uintptr_t Type::getInt64Ty (Ctx)) INSTR_PROF_COMMA VALUE_PROF_FUNC_PARAM(void *
FunctionAddr VTableAddr uintptr_t uintptr_t PointerType::getUnqual (Ctx)) INSTR_PROF_COMMA COVMAP_FUNC_RECORD(const IntPtrT
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::PointerType::getUnqual (Ctx)
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::ConstantExpr::getBitCast (NamePtr, llvm::PointerType::getUnqual(Ctx))) COVMAP_FUNC_RECORD(const uint32_t
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::Type::getInt32Ty (Ctx)
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::ConstantInt::get (llvm::Type::getInt32Ty(Ctx), NameValue.size())) COVMAP_FUNC_RECORD(const uint32_t
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::Type::getInt32Ty (Ctx)
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::ConstantInt::get (llvm::Type::getInt32Ty(Ctx), CoverageMapping.size())) COVMAP_FUNC_RECORD(const uint64_t
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::Type::getInt64Ty (Ctx)
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::ConstantInt::get (llvm::Type::getInt64Ty(Ctx), FuncHash)) COVMAP_HEADER(uint32_t
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::ConstantInt::get (Int32Ty, NRecords)) COVMAP_HEADER(uint32_t
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::ConstantInt::get (Int32Ty, FilenamesSize)) COVMAP_HEADER(uint32_t
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::ConstantInt::get (Int32Ty, CoverageMappingSize)) COVMAP_HEADER(uint32_t
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::ConstantInt::get (Int32Ty, CovMapVersion::CurrentVersion)) COVINIT_FUNC(IntPtrT
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::PointerType::getUnqual (Ctx)
FunctionAddr VTableAddr uintptr_t uintptr_t WriteoutF COVINIT_FUNC (IntPtrT, llvm::PointerType::getUnqual(Ctx), ResetFunction, ResetF) CovMapFunctionRecordV1()=delete
template<llvm::endianness Endian>
uint64_t getFuncHash () const
template<llvm::endianness Endian>
uint64_t getDataSize () const
template<llvm::endianness Endian>
IntPtrT getFuncNameRef () const
 Return function lookup key. The value is consider opaque.
template<llvm::endianness Endian>
Error getFuncName (InstrProfSymtab &ProfileNames, StringRef &FuncName) const
 Return the PGO name of the function.
template<llvm::endianness Endian>
std::pair< const char *, const ThisT * > advanceByOne (const char *MappingBuf) const
template<llvm::endianness Endian>
uint64_t getFilenamesRef () const
template<llvm::endianness Endian>
StringRef getCoverageMapping (const char *MappingBuf) const

Public Attributes

 FuncHash
 FunctionPointer
FunctionAddr NumCounters
FunctionAddr Int16ArrayTy
FunctionAddr NumValueSites [IPVK_Last+1]
FunctionAddr NumBitmapBytes
FunctionAddr VTableNameHash
FunctionAddr VTablePointer
FunctionAddr VTableAddr Value
FunctionAddr VTableAddr Count
FunctionAddr VTableAddr Next
FunctionAddr VTableAddr CountersDelta
FunctionAddr VTableAddr uintptr_t BitmapDelta
FunctionAddr VTableAddr uintptr_t uintptr_t TargetValue
FunctionAddr VTableAddr uintptr_t uintptr_t Data
FunctionAddr VTableAddr uintptr_t uintptr_t NamePtr
FunctionAddr VTableAddr uintptr_t uintptr_t NameSize
FunctionAddr VTableAddr uintptr_t uintptr_t DataSize
FunctionAddr VTableAddr uintptr_t uintptr_t FuncHash
FunctionAddr VTableAddr uintptr_t uintptr_t Int32Ty
FunctionAddr VTableAddr uintptr_t uintptr_t NRecords
FunctionAddr VTableAddr uintptr_t uintptr_t FilenamesSize
FunctionAddr VTableAddr uintptr_t uintptr_t CoverageSize
FunctionAddr VTableAddr uintptr_t uintptr_t Version
FunctionAddr VTableAddr uintptr_t uintptr_t WriteoutFunction

Detailed Description

template<class IntPtrT>
struct llvm::coverage::CovMapFunctionRecordV1< IntPtrT >

Definition at line 1264 of file CoverageMapping.h.

Member Typedef Documentation

◆ ThisT

Definition at line 1265 of file CoverageMapping.h.

Member Function Documentation

◆ advanceByOne()

template<class IntPtrT>
template<llvm::endianness Endian>
std::pair< const char *, const ThisT * > llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::advanceByOne ( const char * MappingBuf) const
inline

Definition at line 1034 of file CoverageMapping.h.

References LLVM_ABI.

◆ BitmapBegin()

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::BitmapBegin ( uintptr_t )

References LHS, and RHS.

◆ ConstantArray::get()

template<class IntPtrT>
FunctionAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::ConstantArray::get ( Int16ArrayTy ,
Int16ArrayVals  ) const

◆ ConstantInt::get() [1/7]

◆ ConstantInt::get() [2/7]

◆ ConstantInt::get() [3/7]

◆ ConstantInt::get() [4/7]

template<class IntPtrT>
FunctionAddr VTableAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::ConstantInt::get ( llvm::Type::GetInt64Ty(Ctx) ,
0  )

References LHS, and RHS.

◆ ConstantInt::get() [5/7]

template<class IntPtrT>
FunctionAddr VTableAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::ConstantInt::get ( llvm::Type::GetInt64Ty(Ctx) ,
0  )

◆ ConstantInt::get() [6/7]

template<class IntPtrT>
llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::ConstantInt::get ( llvm::Type::getInt64Ty(Ctx) ,
Inc-> getHash) ->getZExtValue( ) const

◆ ConstantInt::get() [7/7]

◆ CountersBegin()

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::CountersBegin ( uintptr_t )

◆ COVINIT_FUNC()

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t WriteoutF llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::COVINIT_FUNC ( IntPtrT ,
llvm::PointerType::getUnqual(Ctx) ,
ResetFunction ,
ResetF  )
delete

◆ getCoverageMapping()

template<class IntPtrT>
template<llvm::endianness Endian>
StringRef llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::getCoverageMapping ( const char * MappingBuf) const
inline

Definition at line 1043 of file CoverageMapping.h.

◆ getDataSize()

template<class IntPtrT>
template<llvm::endianness Endian>
uint64_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::getDataSize ( ) const
inline

Definition at line 1011 of file CoverageMapping.h.

◆ getFilenamesRef()

template<class IntPtrT>
template<llvm::endianness Endian>
uint64_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::getFilenamesRef ( ) const
inline

Definition at line 1038 of file CoverageMapping.h.

◆ getFuncHash()

template<class IntPtrT>
template<llvm::endianness Endian>
uint64_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::getFuncHash ( ) const
inline

Definition at line 1007 of file CoverageMapping.h.

◆ getFuncName()

template<class IntPtrT>
template<llvm::endianness Endian>
Error llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::getFuncName ( InstrProfSymtab & ProfileNames,
StringRef & FuncName ) const
inline

Return the PGO name of the function.

Definition at line 1022 of file CoverageMapping.h.

◆ getFuncNameRef()

template<class IntPtrT>
template<llvm::endianness Endian>
IntPtrT llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::getFuncNameRef ( ) const
inline

Return function lookup key. The value is consider opaque.

Definition at line 1016 of file CoverageMapping.h.

◆ INSTR_PROF_DATA() [1/2]

◆ INSTR_PROF_DATA() [2/2]

template<class IntPtrT>
FunctionAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::INSTR_PROF_DATA ( IntPtrT ,
llvm::PointerType::getUnqual(Ctx) ,
Values ,
ValuesPtrExpr  ) const

◆ INSTR_PROF_VTABLE_DATA()

template<class IntPtrT>
FunctionAddr VTableAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::INSTR_PROF_VTABLE_DATA ( const uint32_t ,
llvm::Type::getInt32Ty(Ctx) ,
VTableSize ,
ConstantInt::get(llvm::Type::getInt32Ty(Ctx), VTableSizeVal)  )

◆ llvm::ConstantExpr::getBitCast()

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::ConstantExpr::getBitCast ( NamePtr ,
llvm::PointerType::getUnqual(Ctx)  ) const

◆ llvm::ConstantInt::get() [1/7]

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::ConstantInt::get ( Int32Ty ,
CoverageMappingSize  )

◆ llvm::ConstantInt::get() [2/7]

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::ConstantInt::get ( Int32Ty ,
CovMapVersion::CurrentVersion  )

◆ llvm::ConstantInt::get() [3/7]

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::ConstantInt::get ( Int32Ty ,
FilenamesSize  )

◆ llvm::ConstantInt::get() [4/7]

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::ConstantInt::get ( Int32Ty ,
NRecords  )

References Count.

◆ llvm::ConstantInt::get() [5/7]

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::ConstantInt::get ( llvm::Type::getInt32Ty(Ctx) ,
CoverageMapping. size() ) const

◆ llvm::ConstantInt::get() [6/7]

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::ConstantInt::get ( llvm::Type::getInt32Ty(Ctx) ,
NameValue. size() ) const

◆ llvm::ConstantInt::get() [7/7]

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::ConstantInt::get ( llvm::Type::getInt64Ty(Ctx) ,
FuncHash  )

◆ llvm::PointerType::getUnqual() [1/5]

◆ llvm::PointerType::getUnqual() [2/5]

◆ llvm::PointerType::getUnqual() [3/5]

template<class IntPtrT>
FunctionAddr VTableAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::PointerType::getUnqual ( Ctx )

◆ llvm::PointerType::getUnqual() [4/5]

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::PointerType::getUnqual ( Ctx )

◆ llvm::PointerType::getUnqual() [5/5]

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::PointerType::getUnqual ( Ctx )

◆ llvm::Type::getInt32Ty() [1/4]

◆ llvm::Type::getInt32Ty() [2/4]

◆ llvm::Type::getInt32Ty() [3/4]

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::Type::getInt32Ty ( Ctx )

◆ llvm::Type::getInt32Ty() [4/4]

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::Type::getInt32Ty ( Ctx )

◆ llvm::Type::getInt64Ty() [1/5]

◆ llvm::Type::getInt64Ty() [2/5]

◆ llvm::Type::getInt64Ty() [3/5]

template<class IntPtrT>
FunctionAddr VTableAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::Type::getInt64Ty ( Ctx )

References LHS, and RHS.

◆ llvm::Type::getInt64Ty() [4/5]

template<class IntPtrT>
FunctionAddr VTableAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::Type::getInt64Ty ( Ctx )

◆ llvm::Type::getInt64Ty() [5/5]

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::llvm::Type::getInt64Ty ( Ctx )

◆ PointerType::getUnqual()

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::PointerType::getUnqual ( Ctx ) const

◆ Type::getInt64Ty()

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::Type::getInt64Ty ( Ctx )

Member Data Documentation

◆ BitmapDelta

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::BitmapDelta

Definition at line 167 of file CoverageMapping.h.

◆ Count

template<class IntPtrT>
FunctionAddr VTableAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::Count

Definition at line 139 of file CoverageMapping.h.

Referenced by llvm::ConstantInt::get().

◆ CountersDelta

template<class IntPtrT>
FunctionAddr VTableAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::CountersDelta

Definition at line 165 of file CoverageMapping.h.

◆ CoverageSize

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::CoverageSize

Definition at line 300 of file CoverageMapping.h.

◆ Data

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::Data

Definition at line 189 of file CoverageMapping.h.

◆ DataSize

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::DataSize

Definition at line 267 of file CoverageMapping.h.

◆ FilenamesSize

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::FilenamesSize

Definition at line 298 of file CoverageMapping.h.

◆ FuncHash [1/2]

Definition at line 78 of file CoverageMapping.h.

◆ FuncHash [2/2]

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::FuncHash

Definition at line 270 of file CoverageMapping.h.

◆ FunctionPointer

template<class IntPtrT>
llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::FunctionPointer

Definition at line 87 of file CoverageMapping.h.

◆ Int16ArrayTy

template<class IntPtrT>
FunctionAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::Int16ArrayTy

Definition at line 93 of file CoverageMapping.h.

◆ Int32Ty

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::Int32Ty

Definition at line 296 of file CoverageMapping.h.

◆ NamePtr

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::NamePtr

Definition at line 256 of file CoverageMapping.h.

◆ NameSize

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::NameSize

Definition at line 258 of file CoverageMapping.h.

◆ Next

template<class IntPtrT>
FunctionAddr VTableAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::Next

Definition at line 141 of file CoverageMapping.h.

◆ NRecords

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::NRecords

Definition at line 296 of file CoverageMapping.h.

◆ NumBitmapBytes

template<class IntPtrT>
FunctionAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::NumBitmapBytes

Definition at line 95 of file CoverageMapping.h.

◆ NumCounters

template<class IntPtrT>
FunctionAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::NumCounters

Definition at line 91 of file CoverageMapping.h.

◆ NumValueSites

template<class IntPtrT>
FunctionAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::NumValueSites[IPVK_Last+1]

Definition at line 93 of file CoverageMapping.h.

◆ TargetValue

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::TargetValue

Definition at line 187 of file CoverageMapping.h.

◆ Value

template<class IntPtrT>
FunctionAddr VTableAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::Value

Definition at line 137 of file CoverageMapping.h.

◆ Version

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::Version

Definition at line 302 of file CoverageMapping.h.

◆ VTableNameHash

template<class IntPtrT>
FunctionAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::VTableNameHash

Definition at line 110 of file CoverageMapping.h.

◆ VTablePointer

template<class IntPtrT>
FunctionAddr llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::VTablePointer

Definition at line 113 of file CoverageMapping.h.

◆ WriteoutFunction

template<class IntPtrT>
FunctionAddr VTableAddr uintptr_t uintptr_t llvm::coverage::CovMapFunctionRecordV1< IntPtrT >::WriteoutFunction

Definition at line 313 of file CoverageMapping.h.


The documentation for this struct was generated from the following file: