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 1180 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 1171 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 1147 of file CoverageMapping.h.
uint64_t llvm::coverage::accessors::getFuncHash | ( | const FuncRecordTy * | Record | ) |
Return the structural hash associated with the function.
Definition at line 1141 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 1153 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 1160 of file CoverageMapping.h.
References llvm::InstrProfSymtab::getFuncOrVarName(), and llvm::Error::success().