LLVM 20.0.0git
|
Go to the source code of this file.
Classes | |
class | llvm::memprof::CallStackTrie |
Class to build a trie of call stack contexts for a particular profiled allocation call, along with their associated allocation types. More... | |
class | llvm::memprof::CallStack< NodeT, IteratorT > |
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... | |
struct | llvm::memprof::CallStack< NodeT, IteratorT >::CallStackIterator |
Namespaces | |
namespace | llvm |
This is an optimization pass for GlobalISel generic memory operations. | |
namespace | llvm::memprof |
Functions | |
AllocationType | llvm::memprof::getAllocType (uint64_t TotalLifetimeAccessDensity, uint64_t AllocCount, uint64_t TotalLifetime) |
Return the allocation type for a given set of memory profile values. | |
MDNode * | llvm::memprof::buildCallstackMetadata (ArrayRef< uint64_t > CallStack, LLVMContext &Ctx) |
Build callstack metadata from the provided list of call stack ids. | |
MDNode * | llvm::memprof::getMIBStackNode (const MDNode *MIB) |
Returns the stack node from an MIB metadata node. | |
AllocationType | llvm::memprof::getMIBAllocType (const MDNode *MIB) |
Returns the allocation type from an MIB metadata node. | |
uint64_t | llvm::memprof::getMIBTotalSize (const MDNode *MIB) |
Returns the total size from an MIB metadata node, or 0 if it was not recorded. | |
std::string | llvm::memprof::getAllocTypeAttributeString (AllocationType Type) |
Returns the string to use in attributes with the given type. | |
bool | llvm::memprof::hasSingleAllocType (uint8_t AllocTypes) |
True if the AllocTypes bitmask contains just a single type. | |