ΒΆllvm::Type* parseType(
    llvm::StringRef Asm,
    llvm::SMDiagnostic& Err,
    const llvm::Module& M,
    const llvm::SlotMapping* Slots = nullptr)

Description

Parse a type in the given string.

Declared at: llvm/include/llvm/AsmParser/Parser.h:176

Parameters

llvm::StringRef Asm
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.