Parse a type at the beginning of the given string.

Synopsis

Declared in <llvm/AsmParser/Parser.h>

Type*
parseTypeAtBeginning(
    StringRef Asm,
    unsigned int& Read,
    SMDiagnostic& Err,
    Module const& M,
    SlotMapping const* Slots = nullptr);

Return Value

null on error.

Parameters

Name

Description

Asm

The string that starts with a type.

Read

The number of characters consumed while parsing the type.

Err

Error result info.

M

The module providing context for named types.

Slots

The optional slot mapping that will restore the parsing state of the module.

Created with MrDocs