LLVM 22.0.0git
MemProfCommon.h File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::memprof

Functions

LLVM_ABI 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.
LLVM_ABI uint64_t llvm::memprof::computeFullStackId (ArrayRef< Frame > CallStack)
 Helper to generate a single hash id for a given callstack, used for emitting matching statistics and useful for uniquing such statistics across modules.