class InstrProfRecordWriterTrait

Declaration

class InstrProfRecordWriterTrait { /* full declaration omitted */ };

Description

Writer for instrumentation based profile data.

Declared at: llvm/lib/ProfileData/InstrProfWriter.cpp:96

Member Variables

public support::endianness ValueProfDataEndianness = support::little
public llvm::InstrProfSummaryBuilder* SummaryBuilder
public llvm::InstrProfSummaryBuilder* CSSummaryBuilder

Method Overview

  • public static llvm::InstrProfRecordWriterTrait::hash_value_type ComputeHash(llvm::InstrProfRecordWriterTrait::key_type_ref K)
  • public void EmitData(llvm::raw_ostream & Out, llvm::InstrProfRecordWriterTrait::key_type_ref, llvm::InstrProfRecordWriterTrait::data_type_ref V, llvm::InstrProfRecordWriterTrait::offset_type)
  • public void EmitKey(llvm::raw_ostream & Out, llvm::InstrProfRecordWriterTrait::key_type_ref K, llvm::InstrProfRecordWriterTrait::offset_type N)
  • public static std::pair<offset_type, offset_type> EmitKeyDataLength(llvm::raw_ostream & Out, llvm::InstrProfRecordWriterTrait::key_type_ref K, llvm::InstrProfRecordWriterTrait::data_type_ref V)
  • public InstrProfRecordWriterTrait()

Methods

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

Declared at: llvm/lib/ProfileData/InstrProfWriter.cpp:113

Parameters

llvm::InstrProfRecordWriterTrait::key_type_ref K

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

Declared at: llvm/lib/ProfileData/InstrProfWriter.cpp:145

Parameters

llvm::raw_ostream& Out
llvm::InstrProfRecordWriterTrait::key_type_ref
llvm::InstrProfRecordWriterTrait::data_type_ref V
llvm::InstrProfRecordWriterTrait::offset_type

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

Declared at: llvm/lib/ProfileData/InstrProfWriter.cpp:141

Parameters

llvm::raw_ostream& Out
llvm::InstrProfRecordWriterTrait::key_type_ref K
llvm::InstrProfRecordWriterTrait::offset_type N

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

Declared at: llvm/lib/ProfileData/InstrProfWriter.cpp:118

Parameters

llvm::raw_ostream& Out
llvm::InstrProfRecordWriterTrait::key_type_ref K
llvm::InstrProfRecordWriterTrait::data_type_ref V

InstrProfRecordWriterTrait()

Declared at: llvm/lib/ProfileData/InstrProfWriter.cpp:111