|
LLVM
4.0.0
|
GCOVFunction - Collects function information. More...
#include <GCOV.h>
Public Types | |
| typedef pointee_iterator < SmallVectorImpl < std::unique_ptr< GCOVBlock > >::const_iterator > | BlockIterator |
Public Member Functions | |
| GCOVFunction (GCOVFile &P) | |
| bool | readGCNO (GCOVBuffer &Buffer, GCOV::GCOVVersion Version) |
| readGCNO - Read a function from the GCNO buffer. More... | |
| bool | readGCDA (GCOVBuffer &Buffer, GCOV::GCOVVersion Version) |
| readGCDA - Read a function from the GCDA buffer. More... | |
| StringRef | getName () const |
| StringRef | getFilename () const |
| size_t | getNumBlocks () const |
| uint64_t | getEntryCount () const |
| getEntryCount - Get the number of times the function was called by retrieving the entry block's count. More... | |
| uint64_t | getExitCount () const |
| getExitCount - Get the number of times the function returned by retrieving the exit block's count. More... | |
| BlockIterator | block_begin () const |
| BlockIterator | block_end () const |
| iterator_range< BlockIterator > | blocks () const |
| void | dump () const |
| dump - Dump GCOVFunction content to dbgs() for debugging purposes. More... | |
| void | collectLineCounts (FileInfo &FI) |
| collectLineCounts - Collect line counts. More... | |
GCOVFunction - Collects function information.
| typedef pointee_iterator<SmallVectorImpl< std::unique_ptr<GCOVBlock> >::const_iterator> llvm::GCOVFunction::BlockIterator |
|
inline |
|
inline |
|
inline |
Definition at line 289 of file GCOV.h.
References block_begin(), block_end(), and llvm::make_range().
| void GCOVFunction::collectLineCounts | ( | FileInfo & | FI | ) |
collectLineCounts - Collect line counts.
This must be used after reading .gcno and .gcda files.
Definition at line 356 of file GCOV.cpp.
References llvm::FileInfo::addFunctionLine().
| LLVM_DUMP_METHOD void GCOVFunction::dump | ( | void | ) | const |
dump - Dump GCOVFunction content to dbgs() for debugging purposes.
Definition at line 347 of file GCOV.cpp.
References llvm::dbgs().
| uint64_t GCOVFunction::getEntryCount | ( | ) | const |
| uint64_t GCOVFunction::getExitCount | ( | ) | const |
|
inline |
Definition at line 282 of file GCOV.h.
Referenced by llvm::GCOVBlock::collectLineCounts().
|
inline |
Definition at line 281 of file GCOV.h.
Referenced by llvm::FileInfo::print().
| bool GCOVFunction::readGCDA | ( | GCOVBuffer & | Buff, |
| GCOV::GCOVVersion | Version | ||
| ) |
readGCDA - Read a function from the GCDA buffer.
Return false if an error occurs.
Definition at line 249 of file GCOV.cpp.
References llvm::GCOVBlock::addCount(), llvm::WebAssembly::End, llvm::errs(), llvm::GCOVFile::getChecksum(), llvm::GCOVBuffer::getCursor(), llvm::GCOVBlock::getNumDstEdges(), llvm::GCOVBuffer::readArcTag(), llvm::GCOVBuffer::readInt(), llvm::GCOVBuffer::readInt64(), llvm::GCOVBuffer::readString(), llvm::GCOVBlock::sortDstEdges(), and llvm::GCOV::V402.
| bool GCOVFunction::readGCNO | ( | GCOVBuffer & | Buff, |
| GCOV::GCOVVersion | Version | ||
| ) |
readGCNO - Read a function from the GCNO buffer.
Return false if an error occurs.
Definition at line 126 of file GCOV.cpp.
References llvm::GCOVBlock::addLine(), llvm::NVPTXISD::Dummy, llvm::errs(), F, llvm::GCOVFile::getChecksum(), llvm::GCOVBuffer::getCursor(), i, llvm::GCOVBuffer::readBlockTag(), llvm::GCOVBuffer::readEdgeTag(), llvm::GCOVBuffer::readInt(), llvm::GCOVBuffer::readLineTag(), llvm::GCOVBuffer::readString(), and llvm::GCOV::V402.
1.8.6