summaryrefslogtreecommitdiffstats
path: root/llvm/bindings/ocaml/executionengine/executionengine_ocaml.c
Commit message (Collapse)AuthorAgeFilesLines
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+4
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* Silence warnings in OCaml bindingsJeroen Ketema2016-03-311-0/+1
| | | | | | | | | * LLVMDisposeMessage lives in llvm-c/Core.h, include this file where necessary * LLVMAddTargetData has been removed, follow suit in the bindings Differential Revision: http://reviews.llvm.org/D18633 llvm-svn: 265001
* [OCaml] Expose Llvm_executionengine.get_{global_value,function}_address.Peter Zotov2014-12-241-4/+8
| | | | | | | | | Patch by Ramkumar Ramachandra <artagnon@gmail.com>. Also remove Llvm_executionengine.get_pointer_to_global, as it is actually deprecated and didn't appear in a stable release. llvm-svn: 224801
* [OCaml] Rework Llvm_executionengine using ctypes.Peter Zotov2014-10-311-240/+26
| | | | | | | | | | | | | | | | | | | | | | | | Since JIT->MCJIT migration, most of the ExecutionEngine interface became deprecated and/or broken. This especially affected the OCaml bindings, as runFunction is no longer available, and unlike in C, it is not possible to coerce a pointer to a function and call it in OCaml. In practice, LLVM 3.5 shipped completely unusable Llvm_executionengine. The GenericValue interface and runFunction were essentially a poor man's FFI. As such, this interface was removed and instead a dependency on ctypes >=0.3 added, which handled platform-specific aspects of accessing data and calling functions. The new interface does not expose JIT (which is a shim around MCJIT), as well as the interpreter (which can't handle a lot of valid IR). Llvm_executionengine.add_global_mapping is currently unusable due to PR20656. llvm-svn: 220957
* [OCaml] De-duplicate llvm_raise and llvm_string_of_message.Peter Zotov2014-10-301-10/+1
| | | | llvm-svn: 220898
* [OCaml] Drop support for 3.12.1 and earlier.Peter Zotov2014-10-291-49/+33
| | | | | | | | | | In practice this means: * Always using -g flag. * Embedding -cclib -lstdc++ into the corresponding cma/cmxa file. This also moves -lstdc++ in a single place. * Using caml_named_value instead of a homegrown mechanism. llvm-svn: 220843
* [OCaml] Unbreak Llvm_executionengine.initialize_native_target.Peter Zotov2014-10-251-14/+16
| | | | | | | | | | | | | First, return true on success, as it is the OCaml convention. Second, also initialize the native assembly printer, which is, despite the name, required for MCJIT operation. Since this function did not initialize the assembly printer earlier and no function to initialize native assembly printer was available elsewhere, it is safe to break its interface: it means that it simply could not be used successfully before. llvm-svn: 220620
* [OCaml] Expose Llvm_executionengine.ExecutionEngine.create_mcjit.Peter Zotov2014-10-251-0/+18
| | | | llvm-svn: 220619
* Reinstate "Nuke the old JIT."Eric Christopher2014-09-021-1/+1
| | | | | | | | Approved by Jim Grosbach, Lang Hames, Rafael Espindola. This reinstates commits r215111, 215115, 215116, 215117, 215136. llvm-svn: 216982
* Temporarily Revert "Nuke the old JIT." as it's not quite ready toEric Christopher2014-08-071-1/+1
| | | | | | | | | | | be deleted. This will be reapplied as soon as possible and before the 3.6 branch date at any rate. Approved by Jim Grosbach, Lang Hames, Rafael Espindola. This reverts commits r215111, 215115, 215116, 215117, 215136. llvm-svn: 215154
* Fix the ocaml bindings.Rafael Espindola2014-08-071-1/+1
| | | | llvm-svn: 215117
* [OCaml] Refactor Llvm_target interfacePeter Zotov2013-11-151-5/+13
| | | | | | | | 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. llvm-svn: 194773
* [OCaml] Make Llvm_target.DataLayout.t automatically managedPeter Zotov2013-11-111-0/+7
| | | | | | This breaks the API by removing Llvm_target.DataLayout.dispose. llvm-svn: 194380
* OCaml bindings: formattingSylvestre Ledru2013-11-011-2/+2
| | | | | | | | This commit only changes comments and documentation in OCaml bindings. The official name of the language is OCaml, and the usage is now consistent. Patch by Peter Zotov llvm-svn: 193836
* add support for ocaml 3.12Nuno Lopes2012-09-021-0/+3
| | | | llvm-svn: 163096
* Rename some ocaml functions.Erick Tryzelaar2010-03-031-5/+5
| | | | llvm-svn: 97684
* Use the ocaml tag 0 since we are just returning an option value.Erick Tryzelaar2010-03-021-1/+1
| | | | llvm-svn: 97612
* Expose the optimization level for the jit in ocaml.Erick Tryzelaar2010-03-021-13/+3
| | | | llvm-svn: 97610
* Remove module providers from ocaml.Erick Tryzelaar2010-03-021-19/+18
| | | | llvm-svn: 97609
* Expose initializing the native target for the execution engine.Erick Tryzelaar2009-09-141-2/+6
| | | | llvm-svn: 81800
* Fix the Ocaml bindings for the ExecutionEngine: with the change to buildBob Wilson2009-06-241-0/+7
| | | | | | | | libraries instead of relinked objects, the interpreter, JIT, and native target libraries were not being linked in to an ocaml program using the ExecutionEngine. llvm-svn: 74117
* Fix the JIT bindings for ocaml.Bill Wendling2009-04-301-2/+2
| | | | llvm-svn: 70454
* Fix the LLVMCreateJITCompiler C binding.Gordon Henriksen2008-08-081-1/+11
| | | | | | | Evan broke it in r54523 by adding a parameter in the implementation without updating the header correspondingly. llvm-svn: 54555
* Minor documentation fix.Gordon Henriksen2008-03-151-1/+1
| | | | | | Patch by Erick Tryzelaar. llvm-svn: 48382
* Trying r45451 again, but this time warning-free on 3.10.x.Gordon Henriksen2007-12-301-0/+3
| | | | llvm-svn: 45452
* Remove some lines that are nonportable to Ocaml 3.06.Gordon Henriksen2007-12-301-1/+0
| | | | llvm-svn: 45451
* remove attribution from a variety of miscellaneous files.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45425
* Fix some Ocaml GC errors noticed upon review.Gordon Henriksen2007-12-231-13/+23
| | | | llvm-svn: 45336
* C and Ocaml bindings for ExecutionEngine (i.e., the JIT compiler).Gordon Henriksen2007-12-231-0/+301
llvm-svn: 45335
OpenPOWER on IntegriCloud