b4f6095bae5edfe9d6cabfe4802e6f6187e073f2 |
|
09-Jul-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Remove tests for APIs that were removed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/bitwriter.ml
|
874f021bc16aaf4619fd818da150f1b63e408c80 |
|
09-Sep-2010 |
Daniel Dunbar <daniel@zuster.org> |
tests: XFAIL a handful of tests on the vg_leak builder, so we can get back to green. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113491 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/bitwriter.ml
|
2a7d731828ab87bba42f7ecac8db509646cd2cdd |
|
20-Aug-2010 |
Bob Wilson <bob.wilson@apple.com> |
Fix some Ocaml tests: the %t substitution now returns an absolute path. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111623 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/bitwriter.ml
|
e623050048e56a512e77c28b69925e7dc1efa6ad |
|
06-Mar-2010 |
Erick Tryzelaar <idadesub@users.sourceforge.net> |
Add a LLVMWriteBitcodeToFD that exposes the raw_fd_ostream options. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97858 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/bitwriter.ml
|
b405bbe6648d24b0cb5b03dc43c3997ac4f50a9b |
|
04-Sep-2009 |
Erick Tryzelaar <idadesub@users.sourceforge.net> |
Replace ocamlc tests with ocamlopt tests since they're less noisy. There's a bug with ocamlc that uses "char*" instead of "const char*" for global string variables. This causes g++ to be very noisy when linking ocamlc programs. That's why the ocaml test used to cat to /dev/null. ocamlopt doesn't have this problem, so we can get rid of the >/dev/null, which may obscure some problems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80968 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/bitwriter.ml
|
b02b87882788e57e180c6b903a37ced0db1ce828 |
|
19-Aug-2009 |
Erick Tryzelaar <idadesub@users.sourceforge.net> |
Convert the rest of the ocaml types and functions to use context. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79430 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/bitwriter.ml
|
5371aa2a1c9a4eeecffdb9ab7b2175732e49475b |
|
19-Aug-2009 |
Erick Tryzelaar <idadesub@users.sourceforge.net> |
Allow passing around LLVMContext in ocaml. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79410 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/bitwriter.ml
|
1cf93952f404c0d786cd590799eb437ed6f3ae6e |
|
22-Oct-2008 |
Gordon Henriksen <gordonhenriksen@mac.com> |
[PR2886] Ignore stderr from ocamlc since it prints unresolvable warnings on some platforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57976 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/bitwriter.ml
|
7a653cb24d4dda283d34c984e81514ac1547796e |
|
22-Dec-2007 |
Gordon Henriksen <gordonhenriksen@mac.com> |
Fix a partial application typo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45317 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/bitwriter.ml
|
46abf91f7378fb7bb118d66fe6d69b5d3af1e9d5 |
|
26-Sep-2007 |
Gordon Henriksen <gordonhenriksen@mac.com> |
Added C and Ocaml bindings for functions, basic blocks, and instruction creation. No support yet for instruction introspection. Also eliminated allocas from the Ocaml bindings for portability, and avoided unnecessary casts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/bitwriter.ml
|
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/test/Bindings/Ocaml/bitwriter.ml
|