struct BitstreamRemarkParserHelper

Declaration

struct BitstreamRemarkParserHelper { /* full declaration omitted */ };

Description

Helper to parse a REMARK_BLOCK for a bitstream remark container.

Declared at: llvm/include/llvm/Remarks/BitstreamRemarkParser.h:54

Member Variables

public llvm::BitstreamCursor& Stream
The Bitstream reader.
public Optional<uint8_t> Type
The parsed content: depending on the remark, some fields might be empty.
public Optional<uint64_t> RemarkNameIdx
public Optional<uint64_t> PassNameIdx
public Optional<uint64_t> FunctionNameIdx
public Optional<uint64_t> SourceFileNameIdx
public Optional<uint32_t> SourceLine
public Optional<uint32_t> SourceColumn
public Optional<uint64_t> Hotness
public Optional<ArrayRef< llvm::remarks::BitstreamRemarkParserHelper:: Argument>> Args
public SmallVector< llvm::remarks::BitstreamRemarkParserHelper:: Argument, 8> TmpArgs
Avoid re-allocating a vector every time.

Method Overview

Methods

BitstreamRemarkParserHelper(
    llvm::BitstreamCursor& Stream)

Description

Continue parsing with \p Stream. \p Stream is expected to contain a ENTER_SUBBLOCK to the REMARK_BLOCK at the current position.\p Stream is expected to have a BLOCKINFO_BLOCK set and to have already parsed the META_BLOCK.

Declared at: llvm/include/llvm/Remarks/BitstreamRemarkParser.h:81

Parameters

llvm::BitstreamCursor& Stream

llvm::Error parse()

Description

Parse the REMARK_BLOCK and fill the available entries. This helper does not check for the validity of the fields.

Declared at: llvm/include/llvm/Remarks/BitstreamRemarkParser.h:85