[PowerPC] Materialize more constants with CR-field set in late peephole
[llvm-core.git] / bindings / ocaml / bitreader / llvm_bitreader.mli
blob435134337e076d7730dc0731391740f30585cda4
1 (*===-- llvm_bitreader.mli - LLVM OCaml Interface -------------*- OCaml -*-===*
3 * The LLVM Compiler Infrastructure
5 * This file is distributed under the University of Illinois Open Source
6 * License. See LICENSE.TXT for details.
8 *===----------------------------------------------------------------------===*)
10 (** Bitcode reader.
12 This interface provides an OCaml API for the LLVM bitcode reader, the
13 classes in the Bitreader library. *)
15 exception Error of string
17 (** [get_module context mb] reads the bitcode for a new module [m] from the
18 memory buffer [mb] in the context [context]. Returns [m] if successful, or
19 raises [Error msg] otherwise, where [msg] is a description of the error
20 encountered. See the function [llvm::getBitcodeModule]. *)
21 val get_module : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule
23 (** [parse_bitcode context mb] parses the bitcode for a new module [m] from the
24 memory buffer [mb] in the context [context]. Returns [m] if successful, or
25 raises [Error msg] otherwise, where [msg] is a description of the error
26 encountered. See the function [llvm::ParseBitcodeFile]. *)
27 val parse_bitcode : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule