[#llvm-parseType] = xref:llvm.adoc[llvm]::parseType :relfileprefix: ../ :mrdocs: Parse a type in the given string. == Synopsis Declared in `<llvm/AsmParser/Parser.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/Type.adoc[Type]* parseType( xref:llvm/StringRef.adoc[StringRef] Asm, xref:llvm/SMDiagnostic.adoc[SMDiagnostic]& Err, xref:llvm/Module.adoc[Module] const& M, xref:llvm/SlotMapping.adoc[SlotMapping] const* Slots = nullptr); ---- == Return Value null on error. == Parameters [cols="1,4"] |=== | Name| Description | *Asm* | The string containing 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#