llvm_sys::ir_reader

Function LLVMParseIRInContext

Source
pub unsafe extern "C" fn LLVMParseIRInContext(
    ContextRef: LLVMContextRef,
    MemBuf: LLVMMemoryBufferRef,
    OutM: *mut LLVMModuleRef,
    OutMessage: *mut *mut c_char,
) -> LLVMBool
Expand description

Read LLVM IR from a memory buffer and convert it to an in-memory Module.

Returns 0 on success, and an optional human-readable description of any errors that occurred.