|
LLVM 22.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 (const CallStack &Other) |
| uint64_t | back () const |
| LLVM_ABI 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 180 of file MemoryProfileInfo.h.
|
inline |
Definition at line 182 of file MemoryProfileInfo.h.
Referenced by beginAfterSharedPrefix().
| uint64_t llvm::memprof::CallStack< NodeT, IteratorT >::back | ( | ) | const |
Definition at line 227 of file MemoryProfileInfo.h.
References assert().
| LLVM_ABI uint64_t llvm::memprof::CallStack< MDNode, MDNode::op_iterator >::back | ( | ) | const |
References LLVM_ABI.
| CallStack< NodeT, IteratorT >::CallStackIterator llvm::memprof::CallStack< NodeT, IteratorT >::begin | ( | ) | const |
Definition at line 234 of file MemoryProfileInfo.h.
Referenced by beginAfterSharedPrefix().
| CallStack< NodeT, IteratorT >::CallStackIterator llvm::memprof::CallStack< NodeT, IteratorT >::beginAfterSharedPrefix | ( | const CallStack< NodeT, IteratorT > & | Other | ) |
Definition at line 240 of file MemoryProfileInfo.h.
References assert(), begin(), CallStack(), end(), and llvm::Other.
Referenced by checkAllocContextIds(), and computeFunctionSummary().
|
inline |
Definition at line 198 of file MemoryProfileInfo.h.
Referenced by computeFunctionSummary().
|
inline |
Definition at line 201 of file MemoryProfileInfo.h.
Referenced by beginAfterSharedPrefix(), checkAllocContextIds(), and computeFunctionSummary().