ΒΆllvm::Type* parseTypeAtBeginning(
llvm::StringRef Asm,
unsigned int& Read,
llvm::SMDiagnostic& Err,
const llvm::Module& M,
const llvm::SlotMapping* Slots = nullptr)
llvm::Type* parseTypeAtBeginning(
llvm::StringRef Asm,
unsigned int& Read,
llvm::SMDiagnostic& Err,
const llvm::Module& M,
const llvm::SlotMapping* Slots = nullptr)
Description
Parse a string \p Asm that starts with a type.\p Read[out] gives the number of characters that have been read to parse the type in \p Asm.
Declared at: llvm/include/llvm/AsmParser/Parser.h:201
Parameters
- llvm::StringRef Asm
- unsigned int& Read
- llvm::SMDiagnostic& Err
- const llvm::Module& M
- const llvm::SlotMapping* Slots = nullptr
- The optional slot mapping that will restore the parsing state of the module.
Returns
null on error.