LLVM 19.0.0git
Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::memprof::RecordWriterTrait Class Reference

#include "llvm/ProfileData/MemProf.h"

Public Types

using key_type = uint64_t
 
using key_type_ref = uint64_t
 
using data_type = IndexedMemProfRecord
 
using data_type_ref = IndexedMemProfRecord &
 
using hash_value_type = uint64_t
 
using offset_type = uint64_t
 

Public Member Functions

 RecordWriterTrait ()=delete
 
 RecordWriterTrait (const MemProfSchema *Schema, IndexedVersion V)
 
std::pair< offset_type, offset_typeEmitKeyDataLength (raw_ostream &Out, key_type_ref K, data_type_ref V)
 
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)
 

Detailed Description

Definition at line 519 of file MemProf.h.

Member Typedef Documentation

◆ data_type

Definition at line 524 of file MemProf.h.

◆ data_type_ref

Definition at line 525 of file MemProf.h.

◆ hash_value_type

Definition at line 527 of file MemProf.h.

◆ key_type

Definition at line 521 of file MemProf.h.

◆ key_type_ref

Definition at line 522 of file MemProf.h.

◆ offset_type

Definition at line 528 of file MemProf.h.

Constructor & Destructor Documentation

◆ RecordWriterTrait() [1/2]

llvm::memprof::RecordWriterTrait::RecordWriterTrait ( )
delete

◆ RecordWriterTrait() [2/2]

llvm::memprof::RecordWriterTrait::RecordWriterTrait ( const MemProfSchema Schema,
IndexedVersion  V 
)
inline

Definition at line 539 of file MemProf.h.

Member Function Documentation

◆ ComputeHash()

static hash_value_type llvm::memprof::RecordWriterTrait::ComputeHash ( key_type_ref  K)
inlinestatic

Definition at line 542 of file MemProf.h.

◆ EmitData()

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

Definition at line 562 of file MemProf.h.

References assert().

◆ EmitKey()

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

Definition at line 556 of file MemProf.h.

References llvm::little.

◆ EmitKeyDataLength()

std::pair< offset_type, offset_type > llvm::memprof::RecordWriterTrait::EmitKeyDataLength ( raw_ostream Out,
key_type_ref  K,
data_type_ref  V 
)
inline

Definition at line 545 of file MemProf.h.

References llvm::little, and N.


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