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::serializedSizeV0 (const IndexedAllocationInfo &IAI, const MemProfSchema &Schema)
 
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::serializedSizeV0 (const IndexedMemProfRecord &Record, 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::serializeV0 (const IndexedMemProfRecord &Record, const MemProfSchema &Schema, raw_ostream &OS)
 
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::deserializeV0 (const MemProfSchema &Schema, const unsigned char *Ptr)
 
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)
 
CallStackId llvm::memprof::hashCallStack (ArrayRef< FrameId > CS)
 
llvm::DenseMap< FrameId, FrameStat > llvm::memprof::computeFrameHistogram (llvm::MapVector< CallStackId, llvm::SmallVector< FrameId > > &MemProfCallStackData)
 
void llvm::memprof::verifyIndexedMemProfRecord (const IndexedMemProfRecord &Record)
 
void llvm::memprof::verifyFunctionProfileData (const llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecord > &FunctionProfileData)
 

Macro Definition Documentation

◆ MIBEntryDef

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