LLVM 20.0.0git
|
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 &file) | |
StringRef | getName (bool demangle) const |
StringRef | getFilename () const |
uint64_t | getEntryCount () const |
getEntryCount - Get the number of times the function was called by retrieving the entry block's count. | |
GCOVBlock & | getExitBlock () const |
iterator_range< BlockIterator > | blocksRange () const |
void | propagateCounts (const GCOVBlock &v, GCOVArc *pred) |
void | print (raw_ostream &OS) const |
void | dump () const |
dump - Dump GCOVFunction content to dbgs() for debugging purposes. | |
Public Attributes | |
GCOVFile & | file |
uint32_t | ident = 0 |
uint32_t | linenoChecksum |
uint32_t | cfgChecksum = 0 |
uint32_t | startLine = 0 |
uint32_t | startColumn = 0 |
uint32_t | endLine = 0 |
uint32_t | endColumn = 0 |
uint8_t | artificial = 0 |
StringRef | Name |
SmallString< 0 > | demangled |
unsigned | srcIdx |
SmallVector< std::unique_ptr< GCOVBlock >, 0 > | blocks |
SmallVector< std::unique_ptr< GCOVArc >, 0 > | arcs |
SmallVector< std::unique_ptr< GCOVArc >, 0 > | treeArcs |
DenseSet< const GCOVBlock * > | visited |
GCOVFunction - Collects function information.
using llvm::GCOVFunction::BlockIterator = pointee_iterator< SmallVectorImpl<std::unique_ptr<GCOVBlock> >::const_iterator> |
|
inline |
Definition at line 248 of file GCOV.h.
References blocks, and llvm::make_range().
Referenced by llvm::GCOVFile::readGCDA().
LLVM_DUMP_METHOD void GCOVFunction::dump | ( | ) | const |
dump - Dump GCOVFunction content to dbgs() for debugging purposes.
Definition at line 433 of file GCOV.cpp.
References llvm::dbgs(), and print().
uint64_t GCOVFunction::getEntryCount | ( | ) | const |
GCOVBlock & GCOVFunction::getExitBlock | ( | ) | const |
Definition at line 361 of file GCOV.cpp.
References blocks, file, llvm::GCOVFile::getVersion(), and llvm::GCOV::V408.
StringRef GCOVFunction::getFilename | ( | ) | const |
Definition at line 335 of file GCOV.cpp.
References llvm::StringRef::data(), llvm::demangle(), demangled, llvm::SmallVectorBase< Size_T >::empty(), llvm::itaniumDemangle(), Name, and llvm::StringRef::starts_with().
void GCOVFunction::print | ( | raw_ostream & | OS | ) | const |
Definition at line 424 of file GCOV.cpp.
References llvm::Block, blocks, getFilename(), ident, Name, OS, and startLine.
Referenced by dump().
Definition at line 372 of file GCOV.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::SmallVectorBase< Size_T >::empty(), llvm::SmallVectorTemplateBase< T, bool >::pop_back(), pred, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and visited.
Referenced by llvm::GCOVFile::readGCDA().
SmallVector<std::unique_ptr<GCOVArc>, 0> llvm::GCOVFunction::arcs |
Definition at line 269 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
uint8_t llvm::GCOVFunction::artificial = 0 |
Definition at line 264 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCNO().
SmallVector<std::unique_ptr<GCOVBlock>, 0> llvm::GCOVFunction::blocks |
Definition at line 268 of file GCOV.h.
Referenced by blocksRange(), getEntryCount(), getExitBlock(), print(), llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
uint32_t llvm::GCOVFunction::cfgChecksum = 0 |
Definition at line 259 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
|
mutable |
uint32_t llvm::GCOVFunction::endColumn = 0 |
Definition at line 263 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCNO().
uint32_t llvm::GCOVFunction::endLine = 0 |
Definition at line 262 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCNO().
GCOVFile& llvm::GCOVFunction::file |
Definition at line 256 of file GCOV.h.
Referenced by getExitBlock(), and getFilename().
uint32_t llvm::GCOVFunction::ident = 0 |
Definition at line 257 of file GCOV.h.
Referenced by print(), and llvm::GCOVFile::readGCNO().
uint32_t llvm::GCOVFunction::linenoChecksum |
Definition at line 258 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
StringRef llvm::GCOVFunction::Name |
Definition at line 265 of file GCOV.h.
Referenced by getName(), print(), llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
unsigned llvm::GCOVFunction::srcIdx |
Definition at line 267 of file GCOV.h.
Referenced by getFilename(), and llvm::GCOVFile::readGCNO().
uint32_t llvm::GCOVFunction::startColumn = 0 |
Definition at line 261 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCNO().
uint32_t llvm::GCOVFunction::startLine = 0 |
Definition at line 260 of file GCOV.h.
Referenced by print(), and llvm::GCOVFile::readGCNO().
SmallVector<std::unique_ptr<GCOVArc>, 0> llvm::GCOVFunction::treeArcs |
Definition at line 269 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
Definition at line 270 of file GCOV.h.
Referenced by propagateCounts().