2013-11-06 17:21:25 +08:00
|
|
|
(*===-- llvm_irreader.ml - LLVM OCaml Interface ---------------*- OCaml -*-===*
|
|
|
|
*
|
2019-01-19 16:50:56 +08:00
|
|
|
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
* See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2013-11-06 17:21:25 +08:00
|
|
|
*
|
|
|
|
*===----------------------------------------------------------------------===*)
|
|
|
|
|
|
|
|
|
|
|
|
exception Error of string
|
|
|
|
|
2014-10-29 16:15:54 +08:00
|
|
|
let _ = Callback.register_exception "Llvm_irreader.Error" (Error "")
|
2013-11-06 17:21:25 +08:00
|
|
|
|
|
|
|
external parse_ir : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule
|
|
|
|
= "llvm_parse_ir"
|