summaryrefslogtreecommitdiffstats
path: root/llvm/bindings/ocaml/executionengine/llvm_executionengine.mli
Commit message (Collapse)AuthorAgeFilesLines
* [OCaml] Expose Llvm_executionengine.get_{global_value,function}_address.Peter Zotov2014-12-241-6/+15
| | | | | | | | | 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-173/+68
| | | | | | | | | | | | | | | | | | | | | | | | 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] Drop support for 3.12.1 and earlier.Peter Zotov2014-10-291-8/+8
| | | | | | | | | | 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] Expose Llvm_executionengine.ExecutionEngine.create_mcjit.Peter Zotov2014-10-251-18/+51
| | | | llvm-svn: 220619
* [OCaml] Documentation improvements.Peter Zotov2014-06-301-0/+2
| | | | llvm-svn: 212048
* [OCaml] Refactor Llvm_target interfacePeter Zotov2013-11-151-3/+2
| | | | | | | | 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] FormattingPeter Zotov2013-11-041-9/+1
| | | | llvm-svn: 193965
* 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
* Move TargetData to DataLayout.Micah Villmow2012-10-081-1/+1
| | | | llvm-svn: 165403
* Fix OCaml bindings crash, PR8847.Torok Edwin2010-12-231-34/+34
| | | | | | | | | | | | | | | | | 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). llvm-svn: 122497
* Rename some ocaml functions.Erick Tryzelaar2010-03-031-4/+4
| | | | llvm-svn: 97684
* Expose the external functions for ocaml's execution engine as an optimization.Erick Tryzelaar2010-03-031-29/+36
| | | | llvm-svn: 97683
* Expose the optimization level for the jit in ocaml.Erick Tryzelaar2010-03-021-15/+6
| | | | llvm-svn: 97610
* Remove module providers from ocaml.Erick Tryzelaar2010-03-021-29/+28
| | | | llvm-svn: 97609
* Expose initializing the native target for the execution engine.Erick Tryzelaar2009-09-141-0/+3
| | | | llvm-svn: 81800
* Add EngineBuilder to ExecutionEngine in favor of the five optional argument ↵Reid Kleckner2009-07-181-4/+4
| | | | | | | | EE::create(). Also a test commit. llvm-svn: 76276
* Fix the LLVMCreateJITCompiler C binding.Gordon Henriksen2008-08-081-3/+12
| | | | | | | Evan broke it in r54523 by adding a parameter in the implementation without updating the header correspondingly. llvm-svn: 54555
* Expose ExecutionEngine::getTargetData() to c and ocaml bindings.Erick Tryzelaar2008-03-271-0/+4
| | | | llvm-svn: 48851
* This patch cleans up the OCaml bindings so that they format nicely withGordon Henriksen2008-03-091-36/+34
| | | | | | | | ocamldoc. It does not yet hook into the build system, though. Patch by Erick Tryzelaar! llvm-svn: 48095
* remove attribution from a variety of miscellaneous files.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45425
* C and Ocaml bindings for ExecutionEngine (i.e., the JIT compiler).Gordon Henriksen2007-12-231-0/+152
llvm-svn: 45335
OpenPOWER on IntegriCloud