LLVM  8.0.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::InstrProfRecordWriterTrait Class Reference
Collaboration diagram for llvm::InstrProfRecordWriterTrait:
Collaboration graph
[legend]

Public Types

using key_type = StringRef
 
using key_type_ref = StringRef
 
using data_type = const InstrProfWriter::ProfilingData *const
 
using data_type_ref = const InstrProfWriter::ProfilingData *const
 
using hash_value_type = uint64_t
 
using offset_type = uint64_t
 

Public Member Functions

 InstrProfRecordWriterTrait ()=default
 
void EmitKey (raw_ostream &Out, key_type_ref K, offset_type N)
 
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

support::endianness ValueProfDataEndianness = support::little
 
InstrProfSummaryBuilderSummaryBuilder
 

Detailed Description

Definition at line 92 of file InstrProfWriter.cpp.

Member Typedef Documentation

◆ data_type

Definition at line 97 of file InstrProfWriter.cpp.

◆ data_type_ref

Definition at line 98 of file InstrProfWriter.cpp.

◆ hash_value_type

Definition at line 100 of file InstrProfWriter.cpp.

◆ key_type

Definition at line 94 of file InstrProfWriter.cpp.

◆ key_type_ref

Definition at line 95 of file InstrProfWriter.cpp.

◆ offset_type

Definition at line 101 of file InstrProfWriter.cpp.

Constructor & Destructor Documentation

◆ InstrProfRecordWriterTrait()

llvm::InstrProfRecordWriterTrait::InstrProfRecordWriterTrait ( )
default

Member Function Documentation

◆ ComputeHash()

static hash_value_type llvm::InstrProfRecordWriterTrait::ComputeHash ( key_type_ref  K)
inlinestatic

Definition at line 108 of file InstrProfWriter.cpp.

References llvm::IndexedInstrProf::ComputeHash().

◆ EmitData()

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

◆ EmitKey()

void llvm::InstrProfRecordWriterTrait::EmitKey ( raw_ostream Out,
key_type_ref  K,
offset_type  N 
)
inline

Definition at line 136 of file InstrProfWriter.cpp.

References llvm::StringRef::data(), N, and llvm::raw_ostream::write().

◆ EmitKeyDataLength()

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

Member Data Documentation

◆ SummaryBuilder

InstrProfSummaryBuilder* llvm::InstrProfRecordWriterTrait::SummaryBuilder

Definition at line 104 of file InstrProfWriter.cpp.

◆ ValueProfDataEndianness

support::endianness llvm::InstrProfRecordWriterTrait::ValueProfDataEndianness = support::little

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