LLVM  10.0.0svn
Functions
BitstreamRemarkParser.cpp File Reference
#include "llvm/Remarks/BitstreamRemarkParser.h"
#include "BitstreamRemarkParser.h"
#include "llvm/Remarks/BitstreamRemarkContainer.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
Include dependency graph for BitstreamRemarkParser.cpp:

Go to the source code of this file.

Functions

static Error unknownRecord (const char *BlockName, unsigned RecordID)
 
static Error malformedRecord (const char *BlockName, const char *RecordName)
 
static Error parseRecord (BitstreamMetaParserHelper &Parser, unsigned Code)
 Parse a record and fill in the fields in the parser. More...
 
static Error parseRecord (BitstreamRemarkParserHelper &Parser, unsigned Code)
 Parse a record and fill in the fields in the parser. More...
 
template<typename T >
static Error parseBlock (T &ParserHelper, unsigned BlockID, const char *BlockName)
 
static Expected< boolisBlock (BitstreamCursor &Stream, unsigned BlockID)
 
static Error validateMagicNumber (StringRef Magic)
 
static Error advanceToMetaBlock (BitstreamParserHelper &Helper)
 
static Error processStrTab (BitstreamRemarkParser &P, Optional< StringRef > StrTabBuf)
 
static Error processRemarkVersion (BitstreamRemarkParser &P, Optional< uint64_t > RemarkVersion)
 

Function Documentation

◆ advanceToMetaBlock()

static Error advanceToMetaBlock ( BitstreamParserHelper Helper)
static

◆ isBlock()

static Expected<bool> isBlock ( BitstreamCursor Stream,
unsigned  BlockID 
)
static

◆ malformedRecord()

static Error malformedRecord ( const char BlockName,
const char RecordName 
)
static

Definition at line 30 of file BitstreamRemarkParser.cpp.

References llvm::createStringError(), and llvm::make_error_code().

Referenced by parseRecord().

◆ parseBlock()

template<typename T >
static Error parseBlock ( T ParserHelper,
unsigned  BlockID,
const char BlockName 
)
static

◆ parseRecord() [1/2]

static Error parseRecord ( BitstreamMetaParserHelper Parser,
unsigned  Code 
)
static

◆ parseRecord() [2/2]

static Error parseRecord ( BitstreamRemarkParserHelper Parser,
unsigned  Code 
)
static

◆ processRemarkVersion()

static Error processRemarkVersion ( BitstreamRemarkParser P,
Optional< uint64_t >  RemarkVersion 
)
static

◆ processStrTab()

static Error processStrTab ( BitstreamRemarkParser P,
Optional< StringRef StrTabBuf 
)
static

◆ unknownRecord()

static Error unknownRecord ( const char BlockName,
unsigned  RecordID 
)
static

Definition at line 23 of file BitstreamRemarkParser.cpp.

References llvm::createStringError(), and llvm::make_error_code().

Referenced by parseRecord().

◆ validateMagicNumber()

static Error validateMagicNumber ( StringRef  Magic)
static