LLVM: llvm::GCOVFile Class Reference (original) (raw)
GCOVFile - Collects coverage information for one pair of coverage file (.gcno and .gcda). More...
#include "[llvm/ProfileData/GCOV.h](GCOV%5F8h%5Fsource.html)"
| Public Types | |
|---|---|
| using | iterator |
| Public Member Functions | |
|---|---|
| GCOVFile ()=default | |
| LLVM_ABI bool | readGCNO (GCOVBuffer &Buffer) |
| readGCNO - Read GCNO buffer. | |
| LLVM_ABI bool | readGCDA (GCOVBuffer &Buffer) |
| readGCDA - Read GCDA buffer. | |
| GCOV::GCOVVersion | getVersion () const |
| LLVM_ABI void | print (raw_ostream &OS) const |
| LLVM_ABI void | dump () const |
| dump - Dump GCOVFile content to dbgs() for debugging purposes. | |
| iterator | begin () const |
| iterator | end () const |
| Public Attributes | |
|---|---|
| std::vector< std::string > | filenames |
| StringMap< unsigned > | filenameToIdx |
| bool | GCNOInitialized = false |
| GCOV::GCOVVersion | version {} |
| uint32_t | checksum = 0 |
| StringRef | cwd |
| SmallVector< std::unique_ptr< GCOVFunction >, 16 > | functions |
| std::map< uint32_t, GCOVFunction * > | identToFunction |
| uint32_t | runCount = 0 |
| uint32_t | programCount = 0 |
GCOVFile - Collects coverage information for one pair of coverage file (.gcno and .gcda).
Definition at line 192 of file GCOV.h.
◆ iterator
Initial value:
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
An iterator type that allows iterating over the pointees via some other iterator.
Definition at line 215 of file GCOV.h.
| llvm::GCOVFile::GCOVFile ( ) | default |
|---|
◆ begin()
| iterator llvm::GCOVFile::begin ( ) const | inline |
|---|
◆ dump()
◆ end()
| iterator llvm::GCOVFile::end ( ) const | inline |
|---|
◆ getVersion()
◆ print()
◆ readGCDA()
readGCDA - Read GCDA buffer.
It is required that readGCDA() can only be called after readGCNO().
Definition at line 210 of file GCOV.cpp.
References llvm::GCOVBlock::addSrcEdge(), llvm::GCOVFunction::arcs, assert(), block, llvm::GCOVFunction::blocks, llvm::GCOVFunction::blocksRange(), llvm::GCOVFunction::cfgChecksum, checksum, llvm::GCOVBuffer::cursor, llvm::GCOVBuffer::de, llvm::errs(), llvm::format(), GCNOInitialized, GCOV_ARC_ON_TREE, GCOV_TAG_COUNTER_ARCS, GCOV_TAG_FUNCTION, GCOV_TAG_OBJECT_SUMMARY, GCOV_TAG_PROGRAM_SUMMARY, llvm::GCOVBuffer::getWord(), identToFunction, llvm::GCOVFunction::linenoChecksum, llvm::GCOVFunction::Name, programCount, llvm::GCOVFunction::propagateCounts(), llvm::GCOVBuffer::readGCDAFormat(), llvm::GCOVBuffer::readGCOVVersion(), llvm::GCOVBuffer::readInt(), llvm::GCOVBuffer::readInt64(), runCount, sink(), llvm::DataExtractor::skip(), llvm::DataExtractor::Cursor::tell(), llvm::GCOVFunction::treeArcs, llvm::GCOV::V1200, llvm::GCOV::V407, llvm::GCOV::V408, and version.
◆ readGCNO()
readGCNO - Read GCNO buffer.
Definition at line 102 of file GCOV.cpp.
References llvm::GCOVBlock::addDstEdge(), llvm::GCOVBlock::addSrcEdge(), llvm::GCOVFunction::arcs, llvm::GCOVFunction::artificial, llvm::Block, llvm::GCOVFunction::blocks, llvm::GCOVFunction::cfgChecksum, checksum, llvm::GCOVBuffer::cursor, cwd, llvm::GCOVBuffer::de, llvm::StringRef::empty(), llvm::GCOVFunction::endColumn, llvm::GCOVFunction::endLine, llvm::errs(), functions, GCNOInitialized, GCOV_TAG_ARCS, GCOV_TAG_BLOCKS, GCOV_TAG_FUNCTION, GCOV_TAG_LINES, llvm::GCOVBuffer::getWord(), llvm::GCOVFunction::ident, identToFunction, llvm::GCOVFunction::linenoChecksum, llvm::GCOVFunction::Name, llvm::GCOVBuffer::readGCNOFormat(), llvm::GCOVBuffer::readGCOVVersion(), llvm::GCOVBuffer::readInt(), llvm::GCOVBuffer::readString(), llvm::DataExtractor::skip(), llvm::GCOVFunction::srcIdx, llvm::GCOVFunction::startColumn, llvm::GCOVFunction::startLine, llvm::DataExtractor::Cursor::tell(), llvm::GCOVFunction::treeArcs, llvm::GCOV::V1200, llvm::GCOV::V407, llvm::GCOV::V800, llvm::GCOV::V900, and version.
◆ checksum
◆ cwd
◆ filenames
std::vectorstd::string llvm::GCOVFile::filenames
Definition at line 202 of file GCOV.h.
◆ filenameToIdx
◆ functions
◆ GCNOInitialized
bool llvm::GCOVFile::GCNOInitialized = false
◆ identToFunction
◆ programCount
uint32_t llvm::GCOVFile::programCount = 0
◆ runCount
◆ version
The documentation for this class was generated from the following files: