|
LLVM
8.0.1
|
GCOVFunction - Collects function information. More...
#include "llvm/ProfileData/GCOV.h"
Public Types | |
| using | BlockIterator = pointee_iterator< SmallVectorImpl< std::unique_ptr< GCOVBlock > >::const_iterator > |
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 | print (raw_ostream &OS) 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.
| using llvm::GCOVFunction::BlockIterator = pointee_iterator< SmallVectorImpl<std::unique_ptr<GCOVBlock> >::const_iterator> |
|
inline |
Definition at line 280 of file GCOV.h.
References llvm::IndexedInstrProf::Version.
|
inline |
|
inline |
|
inline |
Definition at line 292 of file GCOV.h.
References llvm::dump(), llvm::make_range(), Name, and print().
| void GCOVFunction::collectLineCounts | ( | FileInfo & | FI | ) |
collectLineCounts - Collect line counts.
This must be used after reading .gcno and .gcda files.
Definition at line 365 of file GCOV.cpp.
References llvm::FileInfo::addFunctionLine().
| LLVM_DUMP_METHOD void GCOVFunction::dump | ( | ) | const |
dump - Dump GCOVFunction content to dbgs() for debugging purposes.
Definition at line 360 of file GCOV.cpp.
References llvm::dbgs(), and llvm::GCOVFile::print().
| uint64_t GCOVFunction::getEntryCount | ( | ) | const |
| uint64_t GCOVFunction::getExitCount | ( | ) | const |
|
inline |
| void GCOVFunction::print | ( | raw_ostream & | OS | ) | const |
| 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 254 of file GCOV.cpp.
References llvm::errs(), llvm::GCOVBuffer::getCursor(), Name, llvm::GCOVBuffer::readArcTag(), llvm::GCOVBuffer::readInt(), llvm::GCOVBuffer::readString(), 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 131 of file GCOV.cpp.
References llvm::GCOVBlock::addLine(), llvm::NVPTXISD::Dummy, llvm::errs(), F(), llvm::GCOVBuffer::getCursor(), Name, llvm::GCOVBuffer::readBlockTag(), llvm::GCOVBuffer::readEdgeTag(), llvm::GCOVBuffer::readInt(), llvm::GCOVBuffer::readLineTag(), llvm::GCOVBuffer::readString(), and llvm::GCOV::V402.
1.8.13