LLVM API Documentation
GCOVFunction - Collects function information. More...
#include <GCOV.h>
Public Types | |
| typedef SmallVectorImpl < std::unique_ptr< GCOVBlock > >::const_iterator | BlockIterator |
Public Member Functions | |
| GCOVFunction (GCOVFile &P) | |
| bool | readGCNO (GCOVBuffer &Buffer, GCOV::GCOVVersion Version) |
| bool | readGCDA (GCOVBuffer &Buffer, GCOV::GCOVVersion Version) |
| StringRef | getName () const |
| StringRef | getFilename () const |
| size_t | getNumBlocks () const |
| uint64_t | getEntryCount () const |
| uint64_t | getExitCount () const |
| BlockIterator | block_begin () const |
| BlockIterator | block_end () const |
| void | dump () const |
| dump - Dump GCOVFunction content to dbgs() for debugging purposes. | |
| void | collectLineCounts (FileInfo &FI) |
GCOVFunction - Collects function information.
| typedef SmallVectorImpl<std::unique_ptr<GCOVBlock> >::const_iterator llvm::GCOVFunction::BlockIterator |
| llvm::GCOVFunction::GCOVFunction | ( | GCOVFile & | P | ) | [inline] |
| BlockIterator llvm::GCOVFunction::block_begin | ( | ) | const [inline] |
Definition at line 275 of file GCOV.h.
References llvm::SmallVectorTemplateCommon< T, typename >::begin().
| BlockIterator llvm::GCOVFunction::block_end | ( | ) | const [inline] |
Definition at line 276 of file GCOV.h.
References llvm::SmallVectorTemplateCommon< T, typename >::end().
| void GCOVFunction::collectLineCounts | ( | FileInfo & | FI | ) |
collectLineCounts - Collect line counts. This must be used after reading .gcno and .gcda files.
Definition at line 308 of file GCOV.cpp.
References llvm::FileInfo::addFunctionLine().
| void GCOVFunction::dump | ( | ) | const |
dump - Dump GCOVFunction content to dbgs() for debugging purposes.
Definition at line 300 of file GCOV.cpp.
References llvm::dbgs(), and Name.
| uint64_t GCOVFunction::getEntryCount | ( | ) | const |
getEntryCount - Get the number of times the function was called by retrieving the entry block's count.
Definition at line 289 of file GCOV.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::front().
| uint64_t GCOVFunction::getExitCount | ( | ) | const |
getExitCount - Get the number of times the function returned by retrieving the exit block's count.
Definition at line 295 of file GCOV.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back().
| StringRef llvm::GCOVFunction::getFilename | ( | ) | const [inline] |
Definition at line 270 of file GCOV.h.
Referenced by llvm::GCOVBlock::collectLineCounts().
| StringRef llvm::GCOVFunction::getName | ( | ) | const [inline] |
Definition at line 269 of file GCOV.h.
Referenced by llvm::FileInfo::print().
| size_t llvm::GCOVFunction::getNumBlocks | ( | ) | const [inline] |
Definition at line 271 of file GCOV.h.
References llvm::SmallVectorTemplateCommon< T, typename >::size().
| 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 215 of file GCOV.cpp.
References llvm::GCOVBlock::addCount(), llvm::NVPTXISD::Dummy, llvm::errs(), llvm::GCOVFile::getChecksum(), llvm::GCOVBlock::getNumDstEdges(), Name, llvm::GCOVBuffer::readArcTag(), llvm::GCOVBuffer::readInt(), llvm::GCOVBuffer::readInt64(), llvm::GCOVBuffer::readString(), llvm::SmallVectorTemplateCommon< T, typename >::size(), 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 113 of file GCOV.cpp.
References llvm::GCOVBlock::addLine(), llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::NVPTXISD::Dummy, llvm::errs(), F(), llvm::GCOVFile::getChecksum(), llvm::GCOVBuffer::getCursor(), Name, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::GCOVBuffer::readBlockTag(), llvm::GCOVBuffer::readEdgeTag(), llvm::GCOVBuffer::readInt(), llvm::GCOVBuffer::readLineTag(), llvm::GCOVBuffer::readString(), and llvm::GCOV::V402.