LLVM  5.0.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::InstrProfRecordWriterTrait Class Reference
Collaboration diagram for llvm::InstrProfRecordWriterTrait:
[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_type > 
EmitKeyDataLength (raw_ostream &Out, key_type_ref K, data_type_ref V)
 

Public Attributes

support::endianness ValueProfDataEndianness = support::little
 
InstrProfSummaryBuilder * SummaryBuilder
 

Detailed Description

Definition at line 91 of file InstrProfWriter.cpp.

Member Typedef Documentation

Definition at line 96 of file InstrProfWriter.cpp.

Definition at line 97 of file InstrProfWriter.cpp.

Definition at line 99 of file InstrProfWriter.cpp.

Definition at line 93 of file InstrProfWriter.cpp.

Definition at line 94 of file InstrProfWriter.cpp.

Definition at line 100 of file InstrProfWriter.cpp.

Constructor & Destructor Documentation

llvm::InstrProfRecordWriterTrait::InstrProfRecordWriterTrait ( )
default

Member Function Documentation

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

Definition at line 107 of file InstrProfWriter.cpp.

References llvm::IndexedInstrProf::ComputeHash().

void llvm::InstrProfRecordWriterTrait::EmitData ( raw_ostream &  Out,
key_type_ref  ,
data_type_ref  V,
offset_type   
)
inline
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().

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

InstrProfSummaryBuilder* llvm::InstrProfRecordWriterTrait::SummaryBuilder

Definition at line 103 of file InstrProfWriter.cpp.

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

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