cd81d94322a39503e4a3e87b6ee03d4fcb3465fb |
21-Jul-2014 |
Stephen Hines <srhines@google.com> |
Update LLVM for rebase to r212749. Includes a cherry-pick of: r212948 - fixes a small issue with atomic calls Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
caml/target.ml
lvm-c/lit.local.cfg
|
36b56886974eae4f9c5ebc96befd3e7bfe5de338 |
24-Apr-2014 |
Stephen Hines <srhines@google.com> |
Update to LLVM 3.5a. Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
caml/target.ml
caml/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
caml/vmcore.ml
|
a0846f414366462d24e65b48deea6b2b85f6616b |
15-Nov-2013 |
Peter Zotov <whitequark@whitequark.org> |
[OCaml] Add REQUIRES: native, object-emission to the Target test While the test would work with any compiled in target with object emission support, it's nontrivial to formulate this condition in lit, so a conservative restriction is used instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194781 91177308-0d34-0410-b5e6-96231b3b80d8
caml/target.ml
|
b53c129da1f5552a5918adba3839de4da6d5ca5d |
15-Nov-2013 |
Peter Zotov <whitequark@whitequark.org> |
[OCaml] Use native target in testsuite instead of hardcoding X86 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194778 91177308-0d34-0410-b5e6-96231b3b80d8
caml/lit.local.cfg
caml/target.ml
|
b6703ff81b4739be67ae7b07f1bfcfb6f157f891 |
15-Nov-2013 |
Peter Zotov <whitequark@whitequark.org> |
[OCaml] Add Target and TargetMachine bindings to Llvm_target git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194774 91177308-0d34-0410-b5e6-96231b3b80d8
caml/target.ml
|
04deb4957ab253c02bce9d982d69396954744a41 |
15-Nov-2013 |
Peter Zotov <whitequark@whitequark.org> |
[OCaml] Refactor Llvm_target interface This commit brings the module structure, argument order and primitive names in Llvm_target in order with the rest of the bindings, in preparation for adding TargetMachine API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194773 91177308-0d34-0410-b5e6-96231b3b80d8
caml/executionengine.ml
caml/ipo_opts.ml
caml/scalar_opts.ml
caml/target.ml
caml/vectorize_opts.ml
|
fa6ab4393ebb7add77a4a957dc50453d07b54a62 |
11-Nov-2013 |
Peter Zotov <whitequark@whitequark.org> |
[OCaml] Add missing Llvm_target functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194382 91177308-0d34-0410-b5e6-96231b3b80d8
caml/target.ml
|
786a43e2d8f98034046b7fd3a78d94e57a466895 |
11-Nov-2013 |
Peter Zotov <whitequark@whitequark.org> |
[OCaml] Accept context explicitly in Llvm_target functions Llvm_target.intptr_type used to implicitly use global context. As none of other functions in OCaml bindings do, it is changed to accept context explicitly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194381 91177308-0d34-0410-b5e6-96231b3b80d8
caml/executionengine.ml
caml/target.ml
|
26f3bd89660e46a76a3b0267b23b00d917a45404 |
11-Nov-2013 |
Peter Zotov <whitequark@whitequark.org> |
[OCaml] Make Llvm_target.DataLayout.t automatically managed This breaks the API by removing Llvm_target.DataLayout.dispose. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194380 91177308-0d34-0410-b5e6-96231b3b80d8
caml/ipo_opts.ml
caml/scalar_opts.ml
caml/target.ml
caml/vectorize_opts.ml
|
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
caml/irreader.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
caml/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
caml/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
caml/vmcore.ml
|
4ebe64ae7ec729b29964b355face33af0c4ce424 |
04-Nov-2013 |
Peter Zotov <whitequark@whitequark.org> |
[OCaml] implement Llvm_passmgr_builder, bindings for PassManagerBuilder git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193968 91177308-0d34-0410-b5e6-96231b3b80d8
caml/passmgr_builder.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
caml/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
caml/vmcore.ml
|
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
caml/linker.ml
|
1185582dfd542883194d262c5bf92b16e1e037c2 |
03-Nov-2013 |
Peter Zotov <whitequark@whitequark.org> |
[OCaml] Implement Llvm_vectorize bindings git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193950 91177308-0d34-0410-b5e6-96231b3b80d8
caml/vectorize_opts.ml
|
6ca1789ac6aad8043ac68c9bb05785d569db5c80 |
03-Nov-2013 |
Peter Zotov <whitequark@whitequark.org> |
[OCaml] Refactor Llvm_target tests Llvm_target tests did not check for return values. This actually caused them to miss a bug. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193949 91177308-0d34-0410-b5e6-96231b3b80d8
caml/target.ml
|
30288ac4020138a09ae2a0e4c989b1003340150b |
03-Nov-2013 |
Peter Zotov <whitequark@whitequark.org> |
[OCaml] Llvm_scalar_opts: add missing transforms git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193946 91177308-0d34-0410-b5e6-96231b3b80d8
caml/scalar_opts.ml
|
630109d30c5808121957afce029c27952a90a72c |
03-Nov-2013 |
Peter Zotov <whitequark@whitequark.org> |
[OCaml] Llvm_ipo: add missing transforms git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193945 91177308-0d34-0410-b5e6-96231b3b80d8
caml/ipo_opts.ml
|
2c6e1cf1dd4d0789118f9761e23885dda94296e1 |
23-Oct-2013 |
Anders Waldenborg <anders@0x63.nu> |
Fix check for supported targets in llvm-c lit.local.cfg git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193235 91177308-0d34-0410-b5e6-96231b3b80d8
lvm-c/lit.local.cfg
|
2bef1a6b25d938210547cd0f5ba4a08abdad2583 |
23-Oct-2013 |
Anders Waldenborg <anders@0x63.nu> |
Add llvm-c-test tool for testing llvm-c This provides rudimentary testing of the llvm-c api. The following commands are implemented: * --module-dump Read bytecode from stdin - print ir * --module-list-functions Read bytecode from stdin - list summary of functions * --module-list-globals Read bytecode from stdin - list summary of globals * --targets-list List available targets * --object-list-sections Read object file from stdin - list sections * --object-list-symbols Read object file from stdin - list symbols (like nm) * --disassemble Read lines of triple, hex ascii machine code from stdin - print disassembly * --calc Read lines of name, rpn from stdin - print generated module ir Differential-Revision: http://llvm-reviews.chandlerc.com/D1776 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193233 91177308-0d34-0410-b5e6-96231b3b80d8
lvm-c/calc.test
lvm-c/disassemble.test
lvm-c/functions.ll
lvm-c/globals.ll
lvm-c/lit.local.cfg
|
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
caml/analysis.ml
caml/bitreader.ml
caml/bitwriter.ml
caml/executionengine.ml
caml/ext_exc.ml
caml/ipo_opts.ml
caml/scalar_opts.ml
caml/target.ml
caml/vmcore.ml
|
24ec2e5a72d7fca58f8ae2b3c01501a9927ef04e |
16-Aug-2013 |
Daniel Dunbar <daniel@zuster.org> |
[tests] Cleanup initialization of test suffixes. - Instead of setting the suffixes in a bunch of places, just set one master list in the top-level config. We now only modify the suffix list in a few suites that have one particular unique suffix (.ml, .mc, .yaml, .td, .py). - Aside from removing the need for a bunch of lit.local.cfg files, this enables 4 tests that were inadvertently being skipped (one in Transforms/BranchFolding, a .s file each in DebugInfo/AArch64 and CodeGen/PowerPC, and one in CodeGen/SI which is now failing and has been XFAILED). - This commit also fixes a bunch of config files to use config.root instead of older copy-pasted code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188513 91177308-0d34-0410-b5e6-96231b3b80d8
caml/lit.local.cfg
|
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
caml/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
caml/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
caml/vmcore.ml
|
791cfc211a9801002bfda6b3eb4de7e041f04f53 |
08-Oct-2012 |
Micah Villmow <villmow@gmail.com> |
Move TargetData to DataLayout. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165403 91177308-0d34-0410-b5e6-96231b3b80d8
caml/ipo_opts.ml
caml/scalar_opts.ml
caml/target.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
caml/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
caml/vmcore.ml
|
cc85160672e3b2d5ec363cc4e151e5b944a60454 |
25-Mar-2012 |
Eli Bendersky <eli.bendersky@intel.com> |
Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu * Removed test/lib/llvm.exp - it is no longer needed * Deleted the dg.exp reading code from test/lit.cfg. There are no dg.exp files left in the test suite so this code is no longer required. test/lit.cfg is now much shorter and clearer * Removed a lot of duplicate code in lit.local.cfg files that need access to the root configuration, by adding a "root" attribute to the TestingConfig object. This attribute is dynamically computed to provide the same information as was previously provided by the custom getRoot functions. * Documented the config.root attribute in docs/CommandGuide/lit.pod git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153408 91177308-0d34-0410-b5e6-96231b3b80d8
caml/lit.local.cfg
|
0f0c411079cd21bb3a81a1b70bf8c67539a16c22 |
16-Feb-2012 |
Eli Bendersky <eli.bendersky@intel.com> |
Replace all instances of dg.exp file with lit.local.cfg, since all tests are run with LIT now and now Dejagnu. dg.exp is no longer needed. Patch reviewed by Daniel Dunbar. It will be followed by additional cleanup patches. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150664 91177308-0d34-0410-b5e6-96231b3b80d8
caml/dg.exp
caml/lit.local.cfg
|
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
caml/scalar_opts.ml
caml/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
caml/vmcore.ml
|
624c5edcd485a210faa61113f38938bdb6a0cc58 |
06-Oct-2011 |
Torok Edwin <edwintorok@gmail.com> |
ocaml bindings: add llvm_ipo based on IPO.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141284 91177308-0d34-0410-b5e6-96231b3b80d8
caml/ipo_opts.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
caml/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
caml/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
caml/vmcore.ml
|
e2721f75503d9195d02b8d2dc4d196b9256873e9 |
31-Jul-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Remove InvalidateStructLayoutInfo from the ocaml bindings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136582 91177308-0d34-0410-b5e6-96231b3b80d8
caml/target.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
caml/bitreader.ml
caml/bitwriter.ml
caml/vmcore.ml
|
78982611d8686976e7c329e10cb60eaaa64590e2 |
23-Dec-2010 |
Torok Edwin <edwintorok@gmail.com> |
XFAIL vg_leak the new test as the rest. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122517 91177308-0d34-0410-b5e6-96231b3b80d8
caml/ext_exc.ml
|
a156efdf71bc668093e31593713694cf076db895 |
23-Dec-2010 |
Torok Edwin <edwintorok@gmail.com> |
Fix OCaml bindings crash, PR8847. See http://caml.inria.fr/mantis/view.php?id=4166 If we call only external functions from a module, then its 'let _' bindings don't get executed, which means that the exceptions don't get registered for use in the C code. This in turn causes llvm_raise to call raise_with_arg() with a NULL pointer and cause a segmentation fault. The workaround is to declare all 'external' functions as 'val' in these .mli files. Also added a separate testcase (the testcase must call only external functions for the bug to occur). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122497 91177308-0d34-0410-b5e6-96231b3b80d8
caml/ext_exc.ml
|
2e09a25c0b1ee91b6a9c95779649c2f9bba210dd |
09-Oct-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Don't test a removed function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116154 91177308-0d34-0410-b5e6-96231b3b80d8
caml/scalar_opts.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
caml/analysis.ml
caml/bitreader.ml
caml/bitwriter.ml
caml/executionengine.ml
caml/scalar_opts.ml
caml/target.ml
caml/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
caml/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
caml/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
caml/analysis.ml
caml/executionengine.ml
caml/scalar_opts.ml
caml/target.ml
caml/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
caml/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
caml/analysis.ml
caml/bitreader.ml
caml/bitwriter.ml
caml/executionengine.ml
caml/vmcore.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
caml/bitwriter.ml
|
7eb4beb4cd545c78e911add2c4497c0d1b4cf1ee |
04-Mar-2010 |
Erick Tryzelaar <idadesub@users.sourceforge.net> |
Expose the rest of the llvm-c scalar opts to ocaml. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97685 91177308-0d34-0410-b5e6-96231b3b80d8
caml/scalar_opts.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
caml/bitreader.ml
caml/executionengine.ml
caml/scalar_opts.ml
caml/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
caml/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
caml/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
caml/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
caml/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
caml/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
caml/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
caml/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
caml/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
caml/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
caml/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
caml/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
caml/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
caml/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
caml/vmcore.ml
|
0b88ed9dece0e73380d7ec58f24f8ff0c7eeb478 |
13-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Switch Ocaml to use llvm_supports_binding. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81665 91177308-0d34-0410-b5e6-96231b3b80d8
caml/dg.exp
caml/ocaml.exp
|
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
caml/analysis.ml
caml/bitreader.ml
caml/bitwriter.ml
caml/executionengine.ml
caml/scalar_opts.ml
caml/target.ml
caml/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
caml/analysis.ml
caml/bitreader.ml
caml/bitwriter.ml
caml/executionengine.ml
caml/scalar_opts.ml
caml/target.ml
caml/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
caml/analysis.ml
caml/bitreader.ml
caml/bitwriter.ml
caml/executionengine.ml
caml/scalar_opts.ml
caml/target.ml
caml/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
caml/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
caml/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
caml/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
caml/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
caml/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
caml/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
caml/analysis.ml
caml/bitreader.ml
caml/bitwriter.ml
caml/executionengine.ml
caml/scalar_opts.ml
caml/target.ml
caml/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
caml/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
caml/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
caml/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
caml/vmcore.ml
|
3bf19e4c42203a8691d8d3fbdb5fcf8ab2f6597b |
23-May-2008 |
Dan Gohman <gohman@apple.com> |
Remove lingering references to .llx and .tr in the tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51500 91177308-0d34-0410-b5e6-96231b3b80d8
caml/ocaml.exp
|
7c1483bc6f009318ce66c4d37d1ba930e01a6d13 |
27-Mar-2008 |
Erick Tryzelaar <idadesub@users.sourceforge.net> |
Expose ExecutionEngine::getTargetData() to c and ocaml bindings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48851 91177308-0d34-0410-b5e6-96231b3b80d8
caml/executionengine.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
caml/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
caml/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
caml/vmcore.ml
|
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
caml/scalar_opts.ml
caml/target.ml
|
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
caml/scalar_opts.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
caml/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
caml/vmcore.ml
|
78d34664e7935a3c0e8f0fc7a345b94314a1b3b8 |
30-Dec-2007 |
Gordon Henriksen <gordonhenriksen@mac.com> |
Another backwards compatibility fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45463 91177308-0d34-0410-b5e6-96231b3b80d8
caml/executionengine.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
caml/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
caml/vmcore.ml
|
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
caml/executionengine.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
caml/analysis.ml
caml/bitreader.ml
caml/bitwriter.ml
caml/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
caml/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
caml/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
caml/bitreader.ml
caml/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
caml/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
caml/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
caml/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
caml/vmcore.ml
|
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
caml/bitreader.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
caml/vmcore.ml
|
c8d7194b481cbdf859e3ce8ad49cd40ec86b06fe |
01-Dec-2007 |
Gordon Henriksen <gordonhenriksen@mac.com> |
Fix a typo noticed by Alain Frisch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44493 91177308-0d34-0410-b5e6-96231b3b80d8
caml/analysis.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
caml/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
caml/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
caml/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
caml/vmcore.ml
|
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
caml/analysis.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
caml/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
caml/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
caml/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
caml/bitwriter.ml
caml/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
caml/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
caml/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
caml/bitwriter.ml
caml/ocaml.exp
caml/vmcore.ml
|