1*9880d681SAndroid Build Coastguard Worker(*===-- llvm_irreader.mli - LLVM OCaml Interface --------------*- OCaml -*-===* 2*9880d681SAndroid Build Coastguard Worker * 3*9880d681SAndroid Build Coastguard Worker * The LLVM Compiler Infrastructure 4*9880d681SAndroid Build Coastguard Worker * 5*9880d681SAndroid Build Coastguard Worker * This file is distributed under the University of Illinois Open Source 6*9880d681SAndroid Build Coastguard Worker * License. See LICENSE.TXT for details. 7*9880d681SAndroid Build Coastguard Worker * 8*9880d681SAndroid Build Coastguard Worker *===----------------------------------------------------------------------===*) 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker(** IR reader. 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Worker This interface provides an OCaml API for the LLVM assembly reader, the 13*9880d681SAndroid Build Coastguard Worker classes in the IRReader library. *) 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workerexception Error of string 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Worker(** [parse_ir context mb] parses the IR for a new module [m] from the 18*9880d681SAndroid Build Coastguard Worker memory buffer [mb] in the context [context]. Returns [m] if successful, or 19*9880d681SAndroid Build Coastguard Worker raises [Error msg] otherwise, where [msg] is a description of the error 20*9880d681SAndroid Build Coastguard Worker encountered. See the function [llvm::ParseIR]. *) 21*9880d681SAndroid Build Coastguard Workerval parse_ir : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule 22