History log of /external/llvm/test/Bindings/Ocaml/vmcore.ml
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/test/Bindings/Ocaml/vmcore.ml
782ff3b70086bd3580f12228082ea998f152f9cd 09-Dec-2013 Manman Ren <manman.ren@gmail.com> Merging r196156:
------------------------------------------------------------------------
r196156 | mren | 2013-12-02 13:25:56 -0800 (Mon, 02 Dec 2013) | 2 lines

Update Ocaml/vmcore.ml to emit a "Debug Info Version" module flag.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@196821 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
ba0c7cd012b064e2d8009480f9ae6f7d75e00e13 06-Nov-2013 Peter Zotov <whitequark@whitequark.org> [OCaml] Implement Llvm.string_of_llvalue

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194136 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
c8ac229cc8349685117f68bc6f1da04f98015cd6 05-Nov-2013 Peter Zotov <whitequark@whitequark.org> [OCaml] (PR16318) Add missing argument to Llvm.const_intcast

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194065 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
150c95eab549e1d764eab7ed05b17fe09663fc6e 05-Nov-2013 Peter Zotov <whitequark@whitequark.org> [OCaml] (PR11717) Make declare_qualified_global respect address argument

Original patch by Jonathan Ragan-Kelley

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194064 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
8a3bdd6a3fa8312809a432579a5685d431ca8410 04-Nov-2013 Peter Zotov <whitequark@whitequark.org> [OCaml] Implement missing LLVMCore APIs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193966 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
f00a9e0f79541538df7e3af2e83de37f40d904cc 03-Nov-2013 Peter Zotov <whitequark@whitequark.org> [OCaml] Implement Llvm.MemoryBuffer.{of_string,as_string}

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193953 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
0a248bf714f18b1cdcda5d7b811303c232d6e885 23-Aug-2013 Daniel Dunbar <daniel@zuster.org> [PR11606] ocaml bindings tests produce binaries in source dir

- Workaround for ocamlopt producing outputs adjacent to its source inputs, by
having the tests copy the inputs into temporary directories in the output
paths before building.

- Patch by edward-san.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189081 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
ed094c32ff2683c07d8eec558ee9defa4f0c00f6 10-Jul-2013 Reid Kleckner <reid@kleckner.net> Fix %t typo in Ocaml bindings test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186027 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
9f23fe0ea51d781c1af2eb069a5f03c262243374 08-Jul-2013 Reid Kleckner <reid@kleckner.net> Convert an OCaml binding grep test to FileCheck

I shaved this yak because I mistakenly thought that this was one of the
last grep tests. Turns out my search was skipping .ll files, for which
there are ~1200 more tests using grep.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185819 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
d9c28d76af4c23e3a131ddd4ca28b64d929828a5 20-Feb-2013 Bill Wendling <isanbard@gmail.com> Use the attribute group reference instead of the attribute directly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175609 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
3ba5de6a6363d2eb3e80ace2413b03df3cd69801 02-Sep-2012 Nuno Lopes <nunoplopes@sapo.pt> fix test's RUN lines

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163097 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
1de43ede8904e08de37f601c9bab0b70f71156e1 02-Jul-2012 Chandler Carruth <chandlerc@gmail.com> Fix the remaining TCL-style quotes found in the testsuite. This is
another mechanical change accomplished though the power of terrible Perl
scripts.

I have manually switched some "s to 's to make escaping simpler.

While I started this to fix tests that aren't run in all configurations,
the massive number of tests is due to a really frustrating fragility of
our testing infrastructure: things like 'grep -v', 'not grep', and
'expected failures' can mask broken tests all too easily.

Essentially, I'm deeply disturbed that I can change the testsuite so
radically without causing any change in results for most platforms. =/

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159547 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
ff616cb440d696b2663d55494e0a5aedfab20726 14-Oct-2011 Torok Edwin <edwintorok@gmail.com> OCaml bindings: add some missing functions and testcases.

The C bindings exposed some APIs that weren't covered by the OCaml bindings

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141997 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
2c4ae181c4c3d93684bb5926cd73c6b3a8370c42 14-Oct-2011 Torok Edwin <edwintorok@gmail.com> OCaml bindings: fix infinite recursion on string_of_lltype

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141994 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
0e68e90175e859c45c7d9bac6165fb1d264e439f 06-Oct-2011 Torok Edwin <edwintorok@gmail.com> add more tests for the OCaml bindings

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141283 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
48488a64fadb2f99706029e51ae4c06fcfac5cdb 03-Oct-2011 Torok Edwin <edwintorok@gmail.com> attempt to fix ocaml bindings: landing pads

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140991 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
e1686b08e4b9c570197633afc09f4fe32d664f0d 10-Aug-2011 Peter Collingbourne <peter@pcc.me.uk> Remove the build_unwind function from the OCaml bindings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137193 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
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/vmcore.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/vmcore.ml
9df0a0a8711596eaa3c7dd3413c0835ad99d3929 28-Aug-2010 Benjamin Kramer <benny.kra@googlemail.com> Update ocaml test.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112364 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
e82e7700ea37a38e2e059c95420caec8dbc172c4 20-Aug-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Fix vmcore.ml test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111664 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
8a78ff63c017796d699d297d5ab67064e8914542 20-Aug-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Fix the running of ocaml tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111626 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
f7af931930dfab74b8a72b195e53df34b4ea2480 20-Aug-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Expose LLVMSetOperand and LLVMGetNumOperands to llvm-c and ocaml.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111625 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.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/vmcore.ml
16609f3c5c26ba34603ae0d7ebab86fb11a72722 03-Mar-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Remove module providers from ocaml.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97609 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
705443ffd3f67018c1ec387014262566502a9ee3 02-Mar-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Add support for use to ocaml.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97586 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
b65c5f2ec347db8342cb7e42d072b0088b74fa73 28-Feb-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Add support getting the operands of a User to ocaml.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97414 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
6ba5c56cf5b1609ec4af45f4901118865a8ed9b6 28-Feb-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Add support for global aliases to ocaml.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97413 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
ce89b4e66f7ec82b2b621c94b072f0b22827a3cd 28-Feb-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Add support for inserting inline asm to ocaml.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97412 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
5b0a7741ad262315d6365250a2da2edb8ba37e69 28-Feb-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Add support for getting a null pointer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97380 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
d80ce75687c22e63d746d732b4e28fd5a1207a9d 28-Feb-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Add a way to look up a type by it's name in a module.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
8e130b1d0d53346e05d0a1161a52c6d62de163c4 28-Feb-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Add support for global variables in an address space for llvm-c and ocaml.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97377 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
c59286bff1cca8c4fa15f390c9002db94117614e 28-Feb-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Add indirect br support to llvm-c and ocaml.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97376 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
46c80e0c5653e11ada7cebcb46f9a8f7df758e41 28-Feb-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Add metadata functions to llvm-c and ocaml.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97375 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
19f047f5f6c44d1cd5681f9314b3ff5e7bae122d 28-Feb-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Add the new builder arthmetic instructions to llvm-c and ocaml.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97372 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
1940dd10dd6b79e3332f384756c268b85d0ad400 28-Feb-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Add the new union arthmetic instructions to llvm-c and ocaml.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97371 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
6e2ee569c57338c193083f511cdc2c85622da20a 28-Feb-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Rename ocaml vmcore tests to make it easier to insert tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97369 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
d2b4aff4bca23ff5dadf180281a74902a18fcf73 28-Feb-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Remove malloc and free from the ocaml bindings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
3fc35c594cbe48070ad69eaa2fdca1e9424c9fd4 18-Oct-2009 Nick Lewycky <nicholas@mxc.ca> Fix test/Bindings/Ocaml/vmcore.ml. When IRBuilder::CreateMalloc was removed,
LLVMBuildMalloc was reimplemented but with the bug that it didn't insert the
resulting instruction.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84374 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.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/vmcore.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/vmcore.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/vmcore.ml
45d6ac2cc13f7881687c2d7f03f9b9892fd85e6e 17-Aug-2009 Erick Tryzelaar <idadesub@users.sourceforge.net> Expose creating constant ints and floats from strings to ocaml.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79214 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
6b018979da52c9760363b8b74951bbe259044ea8 12-Aug-2009 Dan Gohman <gohman@apple.com> Fix whitespace expectations to match the new AsmWriter behavior.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78819 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
ba842e387f0f89cbba45fb057a1913f8c5f789c8 06-May-2009 Duncan Sands <baldrick@free.fr> Nounwind is not valid for function return values.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71082 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
e149e9960ba0726f4b084763f7ef95afa12d9a88 06-May-2009 Duncan Sands <baldrick@free.fr> OCaml parameter attribute bindings from PR2752.
Incomplete, but better than nothing.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71081 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
890484984bd0d3a5f9d80808b0d251424c7ddf7a 01-Mar-2009 Chris Lattner <sabre@nondot.org> tweak this to accept asmprinter changes. I have no way to verify this, hopefully
the buildbot will work.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65750 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
dce5e74162e7ad16dc787057941a7b9147a70117 11-Feb-2009 Daniel Dunbar <daniel@zuster.org> Update to match space changes in .ll


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64322 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.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/vmcore.ml
07cabf6102800aa701bc4d1bd282fafb63b8a416 30-Aug-2008 Gordon Henriksen <gordonhenriksen@mac.com> PR2731: C and Ocaml bindings for setTailCall and isTailCall.

Based on patch by Giorgos Korfiatis.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55570 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
5eca075b74d62c621b160aa216b4cd50829a2cc7 17-Aug-2008 Gordon Henriksen <gordonhenriksen@mac.com> Rename some GC classes so that their roll will hopefully be clearer.

In particular, Collector was confusing to implementors. Several
thought that this compile-time class was the place to implement
their runtime GC heap. Of course, it doesn't even exist at runtime.
Specifically, the renames are:

Collector -> GCStrategy
CollectorMetadata -> GCFunctionInfo
CollectorModuleMetadata -> GCModuleInfo
CollectorRegistry -> GCRegistry
Function::getCollector -> getGC (setGC, hasGC, clearGC)

Several accessors and nested types have also been renamed to be
consistent. These changes should be obvious.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54899 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
21491edbf4027df4db559eb1a9aa8fbf3779cfab 09-Aug-2008 Gordon Henriksen <gordonhenriksen@mac.com> [PR-2610] Adding Ocaml bindings for Switch::addCase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54571 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
4468440a2a92fecd57f002b1b9c0683d2b9c4aea 11-Jun-2008 Gordon Henriksen <gordonhenriksen@mac.com> Don't send checkpoints to stderr for the vmcore.ml test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52218 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
1d21395f4ce152e7bf14d9ba6ea23549de6badd4 25-Mar-2008 Gordon Henriksen <gordonhenriksen@mac.com> Tests for the instruction iterator bindings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48775 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
4733be38930ae81716bba9ae75a8281bcb180634 23-Mar-2008 Gordon Henriksen <gordonhenriksen@mac.com> Objective Caml bindings for basic block, function, global, and arg iterators.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48711 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
dc1ce7bdc6e32e7a4c4a110caa32834730183c1b 19-Mar-2008 Gordon Henriksen <gordonhenriksen@mac.com> C and Objective Caml bindings for the various getParent methods of the IR.

Based on Erick Tryzelaar's patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48523 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
d78c0f5a7255e4347cbd82f7435c51401096652c 16-Mar-2008 Gordon Henriksen <gordonhenriksen@mac.com> C and Objective Caml bindings for PassManagers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48413 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
e62a8a353c3b21b551c00b9025800d3352e5349e 02-Feb-2008 Gordon Henriksen <gordonhenriksen@mac.com> Fixing a bug creating floating point constants of type other
than double through the C bindings. Thanks to Tomas Lindquist
Olsen for reporting it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46656 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
cc0928ff22d9f3e8f2930874f6727db8c700ec35 29-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> Bindings for instruction calling conventions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45422 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
a353ffa7e556bfd2864474911174da691117f691 27-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> Adding bindings for target triple and data layout.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45369 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.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/vmcore.ml
1475142b93a618da72ec471e5ad7c1510c2feb37 20-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> Use a module to group calling convention values, too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45236 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
404a1942e43ca967700cc2608eb97b863add2677 19-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> Using modules to group enumerations in Ocaml bindings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45229 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
da1435f86ebc9886dd7704294e01d192d79e069c 19-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> Adding bindings for memory buffers and module providers. Switching
to exceptions rather than variants for error handling in Ocaml.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45226 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
ef989a275c1191f583178c6934f3594e7a9fd3a6 18-Dec-2007 Christopher Lamb <christopher.lamb@gmail.com> Don't forget to print address space qualifiers when printing out the type table! Thanks to Gordon Henriksen for pointing this out.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45147 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
0a1f248f28c8f61d535e796344d6f988c3107615 17-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> Disabling a RUN line that's broken until addrspace roundtrips
through llvm-as|llvm-dis.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45097 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
57cebeec7ba08b55f29f5bf98ad0a3a17e9d0c71 17-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> C and Ocaml bindings for address spaces, for that burgeoning market
for Ocaml-based compilers targeting embedded devices. :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45096 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
1ae6135fa37eb061499d079b9b33dc82dcc1283f 12-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> Add (very basic) bindings for ModuleProvider.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44899 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
80a75bfae980df96f969f1c05b0c4a80ce975240 10-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> Adding a collector name attribute to Function in the IR. These
methods are new to Function:

bool hasCollector() const;
const std::string &getCollector() const;
void setCollector(const std::string &);
void clearCollector();

The assembly representation is as such:

define void @f() gc "shadow-stack" { ...

The implementation uses an on-the-side table to map Functions to
collector names, such that there is no overhead. A StringPool is
further used to unique collector names, which are extremely
likely to be unique per process.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44769 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
2618a6c1122d5d2007787fb56156be44b21ab32a 08-Oct-2007 Gordon Henriksen <gordonhenriksen@mac.com> C and Objective Caml bindings for PHINode::addIncoming etc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42760 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
6d6203dff3560a2cc3ac8ec620ac3b105b0c7cc7 08-Oct-2007 Gordon Henriksen <gordonhenriksen@mac.com> C and Objective Caml bindings for getFunction and getNamedGlobal. Also enhanced
the Objective Caml 'declare_*' functions to behave more or less like
getOrInsertFunction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42740 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
c84c16be9b29b4f805b92bfc2d93e2dfaa952f8f 07-Oct-2007 Gordon Henriksen <gordonhenriksen@mac.com> C and Objective Caml bindings for GlobalVariable::isConstant.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42736 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
1cf08fddc7413076dedad58dbb8d8d67e69a490f 07-Oct-2007 Gordon Henriksen <gordonhenriksen@mac.com> C and Objective Caml bindings for PATypeHolder.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42713 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
957f9fe1cce0957bcde4a1093da83e17aaec6764 06-Oct-2007 Gordon Henriksen <gordonhenriksen@mac.com> Adopting a uniform naming convention for type constructors in
bindings (part le deux).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42701 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
e3b989d4a4ba47f77d5d38c35ff17e9673d9f87b 06-Oct-2007 Gordon Henriksen <gordonhenriksen@mac.com> Adopting a uniform naming convention for constant constructors in bindings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42697 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
4647569fe7706e76135a08ca0e5f90a447ccc5b4 06-Oct-2007 Gordon Henriksen <gordonhenriksen@mac.com> Adding C and Ocaml bindings for ConstantExpr.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42696 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.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/vmcore.ml
a8c3660c1a4be5d4887f1899bc3c8e62b875c6c0 20-Sep-2007 Gordon Henriksen <gordonhenriksen@mac.com> Incorporating review feedback for GC verifier patch.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42163 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.ml
344be5fbecec9908bab611eafeae0549ba3be6d7 18-Sep-2007 Gordon Henriksen <gordonhenriksen@mac.com> Tests of the ocaml (and thus C) bindings for constants.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42101 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/Bindings/Ocaml/vmcore.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/vmcore.ml