Parse a type at the beginning of the given string.
Declared in <llvm/AsmParser/Parser.h>
Type*
parseTypeAtBeginning(
StringRef Asm,
unsigned int& Read,
SMDiagnostic& Err,
Module const& M,
SlotMapping const* Slots = nullptr);
null on error.
| 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. |