LLVM: llvm::coverage::accessors Namespace Reference (original) (raw)
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.
◆ advanceByOneOutOfLine()
| std::pair< const char *, const FuncRecordTy * > llvm::coverage::accessors::advanceByOneOutOfLine | ( | const FuncRecordTy * | Record, |
|---|---|---|---|
| const char * | MappingBuf ) |
◆ getCoverageMappingOutOfLine()
| 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 1247 of file CoverageMapping.h.
References getDataSize().
◆ getDataSize()
| uint64_t llvm::coverage::accessors::getDataSize | ( | const FuncRecordTy * | Record | ) |
|---|
◆ getFuncHash()
| uint64_t llvm::coverage::accessors::getFuncHash | ( | const FuncRecordTy * | Record | ) |
|---|
◆ getFuncNameRef()
| uint64_t llvm::coverage::accessors::getFuncNameRef | ( | const FuncRecordTy * | Record | ) |
|---|