LLVM 22.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/Endian.h"
#include "llvm/Support/EndianStream.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

LLVM_ABI MemProfSchema llvm::memprof::getFullSchema ()
 
LLVM_ABI 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 size_t llvm::memprof::serializedSizeV4 (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 void llvm::memprof::serializeV4 (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)
 
static IndexedMemProfRecord llvm::memprof::deserializeV4 (const MemProfSchema &Schema, const unsigned char *Ptr)
 
LLVM_ABI GlobalValue::GUID llvm::memprof::getGUID (const StringRef FunctionName)
 
LLVM_ABI Expected< MemProfSchema > llvm::memprof::readMemProfSchema (const unsigned char *&Buffer)
 

Macro Definition Documentation

◆ MIBEntryDef

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