22 errs() <<
"\nNumber of memory regions: " << NumSlabs <<
'\n'
23 <<
"Bytes used: " << BytesAllocated <<
'\n'
24 <<
"Bytes allocated: " << TotalMemory <<
'\n'
25 <<
"Bytes wasted: " << (TotalMemory - BytesAllocated)
26 <<
" (includes alignment, etc)\n";
33 size_t FreeListSize) {
34 errs() <<
"Recycler element size: " <<
Size <<
'\n'
35 <<
"Recycler element alignment: " <<
Align <<
'\n'
36 <<
"Number of elements free for recycling: " << FreeListSize <<
'\n';
This file defines the BumpPtrAllocator interface.
void printBumpPtrAllocatorStats(unsigned NumSlabs, size_t BytesAllocated, size_t TotalMemory)
This is an optimization pass for GlobalISel generic memory operations.
void PrintRecyclerStats(size_t Size, size_t Align, size_t FreeListSize)
PrintRecyclingAllocatorStats - Helper for RecyclingAllocator for printing statistics.
raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
This struct is a compact representation of a valid (non-zero power of two) alignment.