LLVM API Documentation

Public Member Functions
llvm::TextInstrProfReader Class Reference

#include <InstrProfReader.h>

Inheritance diagram for llvm::TextInstrProfReader:
Inheritance graph
[legend]
Collaboration diagram for llvm::TextInstrProfReader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TextInstrProfReader (std::unique_ptr< MemoryBuffer > DataBuffer_)
std::error_code readHeader () override
 Read the header.
std::error_code readNextRecord (InstrProfRecord &Record) override
 Read a single record.

Detailed Description

Reader for the simple text based instrprof format.

This format is a simple text format that's suitable for test data. Records are separated by one or more blank lines, and record fields are separated by new lines.

Each record consists of a function name, a function hash, a number of counters, and then each counter value, in that order.

Definition at line 109 of file InstrProfReader.h.


Constructor & Destructor Documentation

llvm::TextInstrProfReader::TextInstrProfReader ( std::unique_ptr< MemoryBuffer DataBuffer_) [inline]

Definition at line 122 of file InstrProfReader.h.


Member Function Documentation

std::error_code llvm::TextInstrProfReader::readHeader ( ) [inline, override, virtual]

Read the header.

Implements llvm::InstrProfReader.

Definition at line 126 of file InstrProfReader.h.

References llvm::InstrProfReader::success().

std::error_code TextInstrProfReader::readNextRecord ( InstrProfRecord Record) [override, virtual]

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