LLVM 20.0.0git
|
Helper class to iterate through stack ids in both metadata (memprof MIB and callsite) and the corresponding ThinLTO summary data structures (CallsiteInfo and MIBInfo). More...
#include "llvm/Analysis/MemoryProfileInfo.h"
Classes | |
struct | CallStackIterator |
Public Member Functions | |
CallStack (const NodeT *N=nullptr) | |
bool | empty () const |
CallStackIterator | begin () const |
CallStackIterator | end () const |
CallStackIterator | beginAfterSharedPrefix (CallStack &Other) |
uint64_t | back () const |
uint64_t | back () const |
Helper class to iterate through stack ids in both metadata (memprof MIB and callsite) and the corresponding ThinLTO summary data structures (CallsiteInfo and MIBInfo).
This simplifies implementation of client code which doesn't need to worry about whether we are operating with IR (Regular LTO), or summary (ThinLTO).
Definition at line 120 of file MemoryProfileInfo.h.
|
inline |
Definition at line 122 of file MemoryProfileInfo.h.
uint64_t llvm::memprof::CallStack< NodeT, IteratorT >::back |
Definition at line 167 of file MemoryProfileInfo.h.
References assert().
uint64_t llvm::memprof::CallStack< MDNode, MDNode::op_iterator >::back | ( | ) | const |
CallStack< NodeT, IteratorT >::CallStackIterator llvm::memprof::CallStack< NodeT, IteratorT >::begin |
Definition at line 174 of file MemoryProfileInfo.h.
Referenced by llvm::memprof::CallStack< NodeT, IteratorT >::beginAfterSharedPrefix().
CallStack< NodeT, IteratorT >::CallStackIterator llvm::memprof::CallStack< NodeT, IteratorT >::beginAfterSharedPrefix | ( | CallStack< NodeT, IteratorT > & | Other | ) |
Definition at line 180 of file MemoryProfileInfo.h.
References assert(), llvm::memprof::CallStack< NodeT, IteratorT >::begin(), llvm::memprof::CallStack< NodeT, IteratorT >::end(), and llvm::Other.
Referenced by computeFunctionSummary().
|
inline |
Definition at line 138 of file MemoryProfileInfo.h.
Referenced by computeFunctionSummary().
|
inline |
Definition at line 141 of file MemoryProfileInfo.h.
Referenced by llvm::memprof::CallStack< NodeT, IteratorT >::beginAfterSharedPrefix(), and computeFunctionSummary().