LLVM  6.0.0svn
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 91 of file InstrProfWriter.cpp.

Member Typedef Documentation

◆ data_type

Definition at line 96 of file InstrProfWriter.cpp.

◆ data_type_ref

Definition at line 97 of file InstrProfWriter.cpp.

◆ hash_value_type

Definition at line 99 of file InstrProfWriter.cpp.

◆ key_type

Definition at line 93 of file InstrProfWriter.cpp.

◆ key_type_ref

Definition at line 94 of file InstrProfWriter.cpp.

◆ offset_type

Definition at line 100 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 107 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 135 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 103 of file InstrProfWriter.cpp.

◆ ValueProfDataEndianness

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

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