llvm_sys/ir_reader.rs
1//! The IR reader
2
3use super::prelude::*;
4
5extern "C" {
6 /// Read LLVM IR from a memory buffer and convert it to an in-memory Module.
7 ///
8 /// Returns 0 on success, and an optional human-readable description of any
9 /// errors that occurred.
10 pub fn LLVMParseIRInContext(
11 ContextRef: LLVMContextRef,
12 MemBuf: LLVMMemoryBufferRef,
13 OutM: *mut LLVMModuleRef,
14 OutMessage: *mut *mut ::libc::c_char,
15 ) -> LLVMBool;
16}