llvm::parseAndVerify

Try to parse module and verify it. May output verification errors to the errs().

Synopsis

Declared in <llvm/FuzzMutate/IRMutator.h>

std::unique_ptr<Module>
parseAndVerify(
    uint8_t const* Data,
    size_t Size,
    LLVMContext& Context);

Return Value

New module or nullptr in case of error.

Parameters

NameDescription
ContextThis is an important class for using LLVM in a threaded context. It (opaquely) owns and manages the core "global" data of LLVM's core infrastructure, including the type and constant uniquing tables. LLVMContext itself provides no locking guarantees, so you should be careful to have one context per thread.