LLVM 22.0.0git
llvm::memprof::CallStackWriterTrait Class Reference

#include "llvm/ProfileData/MemProf.h"

Public Types

using key_type = CallStackId
using key_type_ref = CallStackId
using data_type = llvm::SmallVector<FrameId>
using data_type_ref = llvm::SmallVector<FrameId> &
using hash_value_type = CallStackId
using offset_type = uint64_t

Public Member Functions

void EmitKey (raw_ostream &Out, key_type_ref K, offset_type)
void EmitData (raw_ostream &Out, key_type_ref, data_type_ref V, offset_type)

Static Public Member Functions

static hash_value_type ComputeHash (key_type_ref K)
static std::pair< offset_type, offset_typeEmitKeyDataLength (raw_ostream &Out, key_type_ref K, data_type_ref V)

Detailed Description

Definition at line 743 of file MemProf.h.

Member Typedef Documentation

◆ data_type

◆ data_type_ref

◆ hash_value_type

◆ key_type

◆ key_type_ref

◆ offset_type

Member Function Documentation

◆ ComputeHash()

hash_value_type llvm::memprof::CallStackWriterTrait::ComputeHash ( key_type_ref K)
inlinestatic

Definition at line 754 of file MemProf.h.

◆ EmitData()

void llvm::memprof::CallStackWriterTrait::EmitData ( raw_ostream & Out,
key_type_ref ,
data_type_ref V,
offset_type  )
inline

Definition at line 773 of file MemProf.h.

References F, and llvm::little.

◆ EmitKey()

void llvm::memprof::CallStackWriterTrait::EmitKey ( raw_ostream & Out,
key_type_ref K,
offset_type  )
inline

Definition at line 767 of file MemProf.h.

References llvm::little.

◆ EmitKeyDataLength()

std::pair< offset_type, offset_type > llvm::memprof::CallStackWriterTrait::EmitKeyDataLength ( raw_ostream & Out,
key_type_ref K,
data_type_ref V )
inlinestatic

Definition at line 757 of file MemProf.h.

References llvm::little, and N.


The documentation for this class was generated from the following file: