History log of /external/llvm/bindings/ocaml/Makefile
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/bindings/ocaml/Makefile
68f4dae1c078df09c9b19a0bda9bc8b8d0aae9be 15-Nov-2013 Peter Zotov <whitequark@whitequark.org> [OCaml] Fix building of stub libraries

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194772 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/ocaml/Makefile
ec7270c966b4a49840b1801bfbb11977d76cb333 06-Nov-2013 Peter Zotov <whitequark@whitequark.org> [OCaml] Impement Llvm_irreader, bindings to LLVM assembly parser

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194138 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/ocaml/Makefile
9d33bf70c228a5c3b57b1d9bf86ea5949bb77293 03-Nov-2013 Peter Zotov <whitequark@whitequark.org> [OCaml] Implement Llvm_linker, bindings for the IR linker

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193951 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/ocaml/Makefile
3e0c83559397c87e06ef29c41385e7adc34573c2 16-Mar-2008 Gordon Henriksen <gordonhenriksen@mac.com> C and Objective Caml bindings for the TargetData class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48422 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/ocaml/Makefile
41ba1546eb46030e9994ee14f8052a1981ae2c54 16-Mar-2008 Gordon Henriksen <gordonhenriksen@mac.com> C and Objective Caml bindings for several scalar transforms.

Patch originally by Erick Tryzelaar, but has been modified somewhat.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48419 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/ocaml/Makefile
7252dc0efc16111f1eed60d5e0810e5f8663b457 10-Mar-2008 Gordon Henriksen <gordonhenriksen@mac.com> Refresh Makefile.ocaml in objdir if it is modified in srcdir.

Patch by Erick Tryzelaar!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48149 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/ocaml/Makefile
b04776696359e54153e20c426419fe54b6766473 10-Mar-2008 Gordon Henriksen <gordonhenriksen@mac.com> Adding ocamldoc generation.

Patch by Erick Tryzelaar.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48147 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/ocaml/Makefile
57360d1f1cede3b26744d0ce3ade814fcc0f332d 29-Dec-2007 Chris Lattner <sabre@nondot.org> remove attributions from the rest of the llvm makefiles.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45416 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/ocaml/Makefile
2e855e68d861224c9b61e2bc9cecad1536b1534b 23-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> C and Ocaml bindings for ExecutionEngine (i.e., the JIT compiler).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45335 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/ocaml/Makefile
bbc6597f02d108f32b5bdc7711cc67386196017b 11-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> Adding Ocaml bindings for the bitreader as requested by Sarah
Thompson. Usage should be something like this:

open Llvm
open Llvm_bitreader

match read_bitcode_file fn with
| Bitreader_failure msg ->
prerr_endline msg
| Bitreader_success m ->
...;
dispose_module m

Compile with: ocamlc llvm.cma llvm_bitreader.cma
ocamlopt llvm.cmxa llvm_bitreader.cmxa


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44824 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/ocaml/Makefile
c0491ac8b6c24a7d0db8c0a60f76cfb1d66f84ab 06-Oct-2007 Gordon Henriksen <gordonhenriksen@mac.com> Bindings for the verifier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42707 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/ocaml/Makefile
8ef426baa36639458f6777309db25c1768dc9c8a 18-Sep-2007 Gordon Henriksen <gordonhenriksen@mac.com> Adding ocaml language bindings for the vmcore and bitwriter libraries. These are
built atop the C language bindings, and user programs can link with them as
such:

# Bytecode
ocamlc -cc g++ llvm.cma llvmbitwriter.cma -o example example.ml
# Native
ocamlopt -cc g++ llvm.cmxa llvmbitwriter.cmxa -o example.opt example.ml

The vmcore.ml test exercises most/all of the APIs thus far bound. Unfortunately,
they're not yet numerous enough to write hello world. But:

$ cat example.ml
(* example.ml *)

open Llvm
open Llvm_bitwriter

let _ =
let filename = Sys.argv.(1) in
let m = create_module filename in

let v = make_int_constant i32_type 42 false in
let g = define_global "hello_world" v m in

if not (write_bitcode_file m filename) then exit 1;

dispose_module m;

$ ocamlc -cc g++ llvm.cma llvm_bitwriter.cma -o example example.ml
File "example.ml", line 11, characters 6-7:
Warning Y: unused variable g.
$ ./example example.bc
$ llvm-dis < example.bc
; ModuleID = '<stdin>'
@hello_world = global i32 42 ; <i32*> [#uses=0]

The ocaml test cases provide effective tests for the C interfaces.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42093 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/ocaml/Makefile