LLVM 22.0.0git
|
GCOVFunction - Collects function information. More...
#include "llvm/ProfileData/GCOV.h"
Public Types | |
using | BlockIterator |
Public Member Functions | |
GCOVFunction (GCOVFile &file) | |
LLVM_ABI StringRef | getName (bool demangle) const |
LLVM_ABI StringRef | getFilename () const |
LLVM_ABI uint64_t | getEntryCount () const |
getEntryCount - Get the number of times the function was called by retrieving the entry block's count. | |
LLVM_ABI GCOVBlock & | getExitBlock () const |
iterator_range< BlockIterator > | blocksRange () const |
LLVM_ABI void | propagateCounts (const GCOVBlock &v, GCOVArc *pred) |
LLVM_ABI void | print (raw_ostream &OS) const |
LLVM_ABI 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.
|
inline |
|
inline |
Definition at line 249 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(), LLVM_DUMP_METHOD, and print().
uint64_t GCOVFunction::getEntryCount | ( | ) | const |
GCOVBlock & GCOVFunction::getExitBlock | ( | ) | const |
Definition at line 361 of file GCOV.cpp.
References blocks, file, and llvm::GCOV::V408.
StringRef GCOVFunction::getFilename | ( | ) | const |
Definition at line 335 of file GCOV.cpp.
References llvm::demangle(), demangled, llvm::itaniumDemangle(), and Name.
void GCOVFunction::print | ( | raw_ostream & | OS | ) | const |
Definition at line 424 of file GCOV.cpp.
References llvm::Block, blocks, getFilename(), ident, Name, and startLine.
Referenced by dump().
Definition at line 372 of file GCOV.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::SmallVectorTemplateCommon< T, typename >::empty(), llvm::SmallVectorTemplateBase< T, bool >::pop_back(), 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 270 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
uint8_t llvm::GCOVFunction::artificial = 0 |
Definition at line 265 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCNO().
SmallVector<std::unique_ptr<GCOVBlock>, 0> llvm::GCOVFunction::blocks |
Definition at line 269 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 260 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
|
mutable |
uint32_t llvm::GCOVFunction::endColumn = 0 |
Definition at line 264 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCNO().
uint32_t llvm::GCOVFunction::endLine = 0 |
Definition at line 263 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCNO().
GCOVFile& llvm::GCOVFunction::file |
Definition at line 257 of file GCOV.h.
Referenced by GCOVFunction(), getExitBlock(), and getFilename().
uint32_t llvm::GCOVFunction::ident = 0 |
Definition at line 258 of file GCOV.h.
Referenced by print(), and llvm::GCOVFile::readGCNO().
uint32_t llvm::GCOVFunction::linenoChecksum |
Definition at line 259 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
StringRef llvm::GCOVFunction::Name |
Definition at line 266 of file GCOV.h.
Referenced by getName(), print(), llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
unsigned llvm::GCOVFunction::srcIdx |
Definition at line 268 of file GCOV.h.
Referenced by getFilename(), and llvm::GCOVFile::readGCNO().
uint32_t llvm::GCOVFunction::startColumn = 0 |
Definition at line 262 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCNO().
uint32_t llvm::GCOVFunction::startLine = 0 |
Definition at line 261 of file GCOV.h.
Referenced by print(), and llvm::GCOVFile::readGCNO().
SmallVector<std::unique_ptr<GCOVArc>, 0> llvm::GCOVFunction::treeArcs |
Definition at line 270 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
Definition at line 271 of file GCOV.h.
Referenced by propagateCounts().