Parse a string Asm that starts with a type. Read[out] gives the number of characters that have been read to parse the type in Asm.
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 |
Slots |
The optional slot mapping that will restore the parsing state of the module. |
Asm |
Represent a constant reference to a string, i.e. a character array and a length, which need not be null terminated. |
Err |
Instances of this class encapsulate one diagnostic report, allowing printing to a raw_ostream as a caret diagnostic. |
M |
A Module instance is used to store all the information related to an LLVM module. Modules are the top level container of all other LLVM Intermediate Representation (IR) objects. Each module directly contains a list of globals variables, a list of functions, a list of libraries (or other modules) this module depends on, a symbol table, and various data about the target's characteristics. |
Created with MrDocs