ΒΆstd::unique_ptr<MIRParser> createMIRParser(
    std::unique_ptr<MemoryBuffer> Contents,
    llvm::LLVMContext& Context,
    std::function<void(Function&)>
        ProcessIRFunction = nullptr)

Description

This function is another interface to the MIR serialization format parser. It returns a MIR parser that works with the given memory buffer and that can parse the embedded LLVM IR module and initialize the machine functions by parsing the machine function's state.

Declared at: llvm/include/llvm/CodeGen/MIRParser/MIRParser.h:90

Parameters

std::unique_ptr<MemoryBuffer> Contents
- The MemoryBuffer containing the machine level IR.
llvm::LLVMContext& Context
- Context which will be used for the parsed LLVM IR module.
std::function<void(Function&)> ProcessIRFunction = nullptr