llvm::parseTypeAtBeginning

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

NameDescription
AsmThe string that starts with a type.
ReadThe number of characters consumed while parsing the type.
ErrError result info.
MThe module providing context for named types.
SlotsThe optional slot mapping that will restore the parsing state of the module.