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

#include "llvm/ProfileData/MemProf.h"

Collaboration diagram for llvm::memprof::RecordWriterTrait:
Collaboration graph
[legend]

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 ()=default
 
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)
 

Public Attributes

MemProfSchemaSchema = nullptr
 

Detailed Description

Definition at line 492 of file MemProf.h.

Member Typedef Documentation

◆ data_type

Definition at line 497 of file MemProf.h.

◆ data_type_ref

Definition at line 498 of file MemProf.h.

◆ hash_value_type

Definition at line 500 of file MemProf.h.

◆ key_type

Definition at line 494 of file MemProf.h.

◆ key_type_ref

Definition at line 495 of file MemProf.h.

◆ offset_type

Definition at line 501 of file MemProf.h.

Constructor & Destructor Documentation

◆ RecordWriterTrait()

llvm::memprof::RecordWriterTrait::RecordWriterTrait ( )
default

Member Function Documentation

◆ ComputeHash()

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

Definition at line 510 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 530 of file MemProf.h.

References assert(), and llvm::memprof::IndexedMemProfRecord::serialize().

◆ EmitKey()

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

Definition at line 524 of file MemProf.h.

References llvm::AArch64CC::LE, llvm::support::little, and support().

◆ EmitKeyDataLength()

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

Member Data Documentation

◆ Schema

MemProfSchema* llvm::memprof::RecordWriterTrait::Schema = nullptr

Definition at line 506 of file MemProf.h.


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