1578267fbSPeter Zotov(*===-- llvm_irreader.ml - LLVM OCaml Interface ---------------*- OCaml -*-===* 2578267fbSPeter Zotov * 3*2946cd70SChandler Carruth * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*2946cd70SChandler Carruth * See https://llvm.org/LICENSE.txt for license information. 5*2946cd70SChandler Carruth * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6578267fbSPeter Zotov * 7578267fbSPeter Zotov *===----------------------------------------------------------------------===*) 8578267fbSPeter Zotov 9578267fbSPeter Zotov 10578267fbSPeter Zotovexception Error of string 11578267fbSPeter Zotov 12662538acSPeter Zotovlet _ = Callback.register_exception "Llvm_irreader.Error" (Error "") 13578267fbSPeter Zotov 14578267fbSPeter Zotovexternal parse_ir : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule 15578267fbSPeter Zotov = "llvm_parse_ir" 16