struct BitstreamMetaParserHelper

Declaration

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

Description

Helper to parse a META_BLOCK for a bitstream remark container.

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

Member Variables

public llvm::BitstreamCursor& Stream
The Bitstream reader.
public llvm::BitstreamBlockInfo& BlockInfo
Reference to the storage for the block info.
public Optional<uint64_t> ContainerVersion
The parsed content: depending on the container type, some fields might be empty.
public Optional<uint8_t> ContainerType
public Optional<llvm::StringRef> StrTabBuf
public Optional<llvm::StringRef> ExternalFilePath
public Optional<uint64_t> RemarkVersion

Method Overview

Methods

BitstreamMetaParserHelper(
    llvm::BitstreamCursor& Stream,
    llvm::BitstreamBlockInfo& BlockInfo)

Description

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

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

Parameters

llvm::BitstreamCursor& Stream
llvm::BitstreamBlockInfo& BlockInfo

llvm::Error parse()

Description

Parse the META_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:50