LLVM 20.0.0git
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::coverage::BinaryCoverageReader Class Reference

Reader for the coverage mapping data that is emitted by the frontend and stored in an object file. More...

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

Inheritance diagram for llvm::coverage::BinaryCoverageReader:
Inheritance graph
[legend]

Classes

struct  ProfileMappingRecord
 

Public Types

using FuncRecordsStorage = std::unique_ptr< MemoryBuffer >
 
using CoverageMapCopyStorage = std::unique_ptr< MemoryBuffer >
 

Public Member Functions

 BinaryCoverageReader (const BinaryCoverageReader &)=delete
 
BinaryCoverageReaderoperator= (const BinaryCoverageReader &)=delete
 
Error readNextRecord (CoverageMappingRecord &Record) override
 
- Public Member Functions inherited from llvm::coverage::CoverageMappingReader
virtual ~CoverageMappingReader ()=default
 
virtual Error readNextRecord (CoverageMappingRecord &Record)=0
 
CoverageMappingIterator begin ()
 
CoverageMappingIterator end ()
 

Static Public Member Functions

static Expected< std::vector< std::unique_ptr< BinaryCoverageReader > > > create (MemoryBufferRef ObjectBuffer, StringRef Arch, SmallVectorImpl< std::unique_ptr< MemoryBuffer > > &ObjectFileBuffers, StringRef CompilationDir="", SmallVectorImpl< object::BuildIDRef > *BinaryIDs=nullptr)
 
static Expected< std::unique_ptr< BinaryCoverageReader > > createCoverageReaderFromBuffer (StringRef Coverage, FuncRecordsStorage &&FuncRecords, CoverageMapCopyStorage &&CoverageMap, std::unique_ptr< InstrProfSymtab > ProfileNamesPtr, uint8_t BytesInAddress, llvm::endianness Endian, StringRef CompilationDir="")
 

Detailed Description

Reader for the coverage mapping data that is emitted by the frontend and stored in an object file.

Definition at line 164 of file CoverageMappingReader.h.

Member Typedef Documentation

◆ CoverageMapCopyStorage

Definition at line 183 of file CoverageMappingReader.h.

◆ FuncRecordsStorage

Definition at line 182 of file CoverageMappingReader.h.

Constructor & Destructor Documentation

◆ BinaryCoverageReader()

llvm::coverage::BinaryCoverageReader::BinaryCoverageReader ( const BinaryCoverageReader )
delete

Member Function Documentation

◆ create()

Expected< std::vector< std::unique_ptr< BinaryCoverageReader > > > BinaryCoverageReader::create ( MemoryBufferRef  ObjectBuffer,
StringRef  Arch,
SmallVectorImpl< std::unique_ptr< MemoryBuffer > > &  ObjectFileBuffers,
StringRef  CompilationDir = "",
SmallVectorImpl< object::BuildIDRef > *  BinaryIDs = nullptr 
)
static

◆ createCoverageReaderFromBuffer()

Expected< std::unique_ptr< BinaryCoverageReader > > BinaryCoverageReader::createCoverageReaderFromBuffer ( StringRef  Coverage,
FuncRecordsStorage &&  FuncRecords,
CoverageMapCopyStorage &&  CoverageMap,
std::unique_ptr< InstrProfSymtab ProfileNamesPtr,
uint8_t  BytesInAddress,
llvm::endianness  Endian,
StringRef  CompilationDir = "" 
)
static

◆ operator=()

BinaryCoverageReader & llvm::coverage::BinaryCoverageReader::operator= ( const BinaryCoverageReader )
delete

◆ readNextRecord()

Error BinaryCoverageReader::readNextRecord ( CoverageMappingRecord Record)
overridevirtual

The documentation for this class was generated from the following files: