LLVM 20.0.0git
Namespaces | Macros | Functions
MemProf.cpp File Reference
#include "llvm/ProfileData/MemProf.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/IR/Function.h"
#include "llvm/ProfileData/InstrProf.h"
#include "llvm/ProfileData/SampleProf.h"
#include "llvm/Support/BLAKE3.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/EndianStream.h"
#include "llvm/Support/HashBuilder.h"
#include "llvm/ProfileData/MIBEntryDef.inc"

Go to the source code of this file.

Namespaces

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

Macros

#define MIBEntryDef(NameTag, Name, Type)   List.push_back(Meta::Name);
 

Functions

MemProfSchema llvm::memprof::getFullSchema ()
 
MemProfSchema llvm::memprof::getHotColdSchema ()
 
static size_t llvm::memprof::serializedSizeV2 (const IndexedAllocationInfo &IAI, const MemProfSchema &Schema)
 
static size_t llvm::memprof::serializedSizeV3 (const IndexedAllocationInfo &IAI, const MemProfSchema &Schema)
 
static size_t llvm::memprof::serializedSizeV2 (const IndexedMemProfRecord &Record, const MemProfSchema &Schema)
 
static size_t llvm::memprof::serializedSizeV3 (const IndexedMemProfRecord &Record, const MemProfSchema &Schema)
 
static void llvm::memprof::serializeV2 (const IndexedMemProfRecord &Record, const MemProfSchema &Schema, raw_ostream &OS)
 
static void llvm::memprof::serializeV3 (const IndexedMemProfRecord &Record, const MemProfSchema &Schema, raw_ostream &OS, llvm::DenseMap< CallStackId, LinearCallStackId > &MemProfCallStackIndexes)
 
static IndexedMemProfRecord llvm::memprof::deserializeV2 (const MemProfSchema &Schema, const unsigned char *Ptr)
 
static IndexedMemProfRecord llvm::memprof::deserializeV3 (const MemProfSchema &Schema, const unsigned char *Ptr)
 
Expected< MemProfSchema > llvm::memprof::readMemProfSchema (const unsigned char *&Buffer)
 
template<typename FrameIdTy >
llvm::DenseMap< FrameIdTy, FrameStat > llvm::memprof::computeFrameHistogram (llvm::MapVector< CallStackId, llvm::SmallVector< FrameIdTy > > &MemProfCallStackData)
 
template llvm::DenseMap< FrameId, FrameStat > llvm::memprof::computeFrameHistogram< FrameId > (llvm::MapVector< CallStackId, llvm::SmallVector< FrameId > > &MemProfCallStackData)
 
template llvm::DenseMap< LinearFrameId, FrameStat > llvm::memprof::computeFrameHistogram< LinearFrameId > (llvm::MapVector< CallStackId, llvm::SmallVector< LinearFrameId > > &MemProfCallStackData)
 

Macro Definition Documentation

◆ MIBEntryDef

#define MIBEntryDef (   NameTag,
  Name,
  Type 
)    List.push_back(Meta::Name);