LLVM 20.0.0git
|
This namespace defines accessors shared by different versions of coverage mapping records. More...
Functions | |
template<class FuncRecordTy , llvm::endianness Endian> | |
uint64_t | getFuncHash (const FuncRecordTy *Record) |
Return the structural hash associated with the function. | |
template<class FuncRecordTy , llvm::endianness Endian> | |
uint64_t | getDataSize (const FuncRecordTy *Record) |
Return the coverage map data size for the function. | |
template<class FuncRecordTy , llvm::endianness Endian> | |
uint64_t | getFuncNameRef (const FuncRecordTy *Record) |
Return the function lookup key. The value is considered opaque. | |
template<class FuncRecordTy , llvm::endianness Endian> | |
Error | getFuncNameViaRef (const FuncRecordTy *Record, InstrProfSymtab &ProfileNames, StringRef &FuncName) |
Return the PGO name of the function. | |
template<class FuncRecordTy , llvm::endianness Endian> | |
StringRef | getCoverageMappingOutOfLine (const FuncRecordTy *Record, const char *MappingBuf) |
Read coverage mapping out-of-line, from MappingBuf . | |
template<class FuncRecordTy , llvm::endianness Endian> | |
std::pair< const char *, const FuncRecordTy * > | advanceByOneOutOfLine (const FuncRecordTy *Record, const char *MappingBuf) |
Advance to the next out-of-line coverage mapping and its associated function record. | |
This namespace defines accessors shared by different versions of coverage mapping records.
std::pair< const char *, const FuncRecordTy * > llvm::coverage::accessors::advanceByOneOutOfLine | ( | const FuncRecordTy * | Record, |
const char * | MappingBuf | ||
) |
Advance to the next out-of-line coverage mapping and its associated function record.
Definition at line 1184 of file CoverageMapping.h.
StringRef llvm::coverage::accessors::getCoverageMappingOutOfLine | ( | const FuncRecordTy * | Record, |
const char * | MappingBuf | ||
) |
Read coverage mapping out-of-line, from MappingBuf
.
This is used when the coverage mapping is attached to the file header, instead of to the function record.
Definition at line 1175 of file CoverageMapping.h.
uint64_t llvm::coverage::accessors::getDataSize | ( | const FuncRecordTy * | Record | ) |
Return the coverage map data size for the function.
Definition at line 1151 of file CoverageMapping.h.
uint64_t llvm::coverage::accessors::getFuncHash | ( | const FuncRecordTy * | Record | ) |
Return the structural hash associated with the function.
Definition at line 1145 of file CoverageMapping.h.
uint64_t llvm::coverage::accessors::getFuncNameRef | ( | const FuncRecordTy * | Record | ) |
Return the function lookup key. The value is considered opaque.
Definition at line 1157 of file CoverageMapping.h.
Error llvm::coverage::accessors::getFuncNameViaRef | ( | const FuncRecordTy * | Record, |
InstrProfSymtab & | ProfileNames, | ||
StringRef & | FuncName | ||
) |
Return the PGO name of the function.
Used for formats in which the name is a hash.
Definition at line 1164 of file CoverageMapping.h.
References llvm::InstrProfSymtab::getFuncOrVarName(), and llvm::Error::success().