ΒΆLLVMBool LLVMParseIRInContext(
    LLVMContextRef ContextRef,
    LLVMMemoryBufferRef MemBuf,
    LLVMModuleRef* OutM,
    char** OutMessage)

Description

Read LLVM IR from a memory buffer and convert it into an in-memory Module object. Returns 0 on success. Optionally returns a human-readable description of any errors that occurred during parsing IR. OutMessage must be disposed with LLVMDisposeMessage.

Declared at: llvm/include/llvm-c/IRReader.h:38

Parameters

LLVMContextRef ContextRef
LLVMMemoryBufferRef MemBuf
LLVMModuleRef* OutM
char** OutMessage