summaryrefslogtreecommitdiffstats
path: root/llvm/bindings/ocaml
Commit message (Collapse)AuthorAgeFilesLines
...
* [OCaml] Expose Llvm_target.TargetMachine.add_analysis_passes.Peter Zotov2014-10-293-0/+13
| | | | llvm-svn: 220846
* [OCaml] If compiled without --enable-shared, hide packages from toplevel.Peter Zotov2014-10-292-0/+2
| | | | | | | | | | | Pretend they do not exist using exists_if. This is better than the current situation, which is the error: Error: The external function `llvm_global_succ' is not available but still somewhat confusing. llvm-svn: 220845
* [OCaml] Expose Llvm_bitwriter.write_bitcode_to_memory_buffer.Peter Zotov2014-10-293-13/+28
| | | | llvm-svn: 220844
* [OCaml] Drop support for 3.12.1 and earlier.Peter Zotov2014-10-2928-262/+166
| | | | | | | | | | 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] Synchronize transformations with LLVM-C.Peter Zotov2014-10-299-385/+479
| | | | | | | Also, rearrange the functions in a way that allows to quickly compare C headers and .mli/glue files. llvm-svn: 220842
* [OCaml] PR19859: Add functions to query and modify branches.Peter Zotov2014-10-283-0/+140
| | | | | | Patch by Gabriel Radanne <drupyog@zoho.com>. llvm-svn: 220818
* [OCaml] PR19859: Add Llvm.{fcmp_predicate,float_of_const}.Peter Zotov2014-10-283-0/+40
| | | | | | Patch by Gabriel Radanne <drupyog@zoho.com>. llvm-svn: 220815
* [OCaml] Enable -g for debug builds.Peter Zotov2014-10-281-4/+3
| | | | | | We don't care about pre-3.12.1 anymore. llvm-svn: 220767
* [OCaml] Fix whitespace.Peter Zotov2014-10-2813-65/+65
| | | | llvm-svn: 220766
* [OCaml] Expose existing documentation in ocamldoc.Peter Zotov2014-10-261-43/+43
| | | | | | Patch by Gabriel Radanne <drupyog@zoho.com>. llvm-svn: 220648
* [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-253-27/+103
| | | | llvm-svn: 220619
* [OCaml] Fix a typo in documentation.Peter Zotov2014-10-221-1/+1
| | | | llvm-svn: 220377
* [OCaml] Add Llvm.instr_clone.Peter Zotov2014-10-173-0/+13
| | | | llvm-svn: 220008
* Reinstate "Nuke the old JIT."Eric Christopher2014-09-022-2/+2
| | | | | | | | Approved by Jim Grosbach, Lang Hames, Rafael Espindola. This reinstates commits r215111, 215115, 215116, 215117, 215136. llvm-svn: 216982
* [OCaml] Expose Llvm.get_operand_use.Peter Zotov2014-08-123-0/+11
| | | | | | Patch by Gabriel Radanne <drupyog@zoho.com> llvm-svn: 215420
* Temporarily Revert "Nuke the old JIT." as it's not quite ready toEric Christopher2014-08-072-2/+2
| | | | | | | | | | | 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-072-2/+2
| | | | llvm-svn: 215117
* [OCaml] Add Llvm.{string_of_const,const_element}.Peter Zotov2014-08-033-1/+35
| | | | llvm-svn: 214677
* [OCaml] Don't truncate constants over 32 bits in Llvm.const_int.Peter Zotov2014-07-221-1/+1
| | | | llvm-svn: 213655
* MergedLoadStoreMotion passGerolf Hoflehner2014-07-181-0/+6
| | | | | | | | | | | Merges equivalent loads on both sides of a hammock/diamond and hoists into into the header. Merges equivalent stores on both sides of a hammock/diamond and sinks it to the footer. Can enable if conversion and tolerate better load misses and store operand latencies. llvm-svn: 213396
* [OCaml] Documentation improvements.Peter Zotov2014-07-021-26/+28
| | | | | | Patch by Julien Sagot llvm-svn: 212230
* [OCaml] Documentation improvements.Peter Zotov2014-06-302-3/+5
| | | | llvm-svn: 212048
* [OCaml] Unbreak Llvm_target.TargetMachine.set_verbose_asmPeter Zotov2014-06-091-2/+2
| | | | | | Patch by Jacques-Pascal Deplaix llvm-svn: 210480
* [OCaml] Commit missing parts of r210395Peter Zotov2014-06-071-1/+1
| | | | llvm-svn: 210396
* [OCaml] Introduce an llmdkind abstract type.Peter Zotov2014-06-072-7/+11
| | | | | | | | | Patch by Gabriel Radanne. While this commit technically breaks API, no code should have supplied the integer IDs directly, and thus no code should break. llvm-svn: 210395
* [OCaml] Add an ocamlfind package llvm.all_backends.Peter Zotov2014-05-016-1/+83
| | | | | | | | This package is useful for architecture-independent tools like llc. Patch by Jacques-Pascal Deplaix. llvm-svn: 207793
* Makefile.ocaml: Tweak to use --system-libs.NAKAMURA Takumi2013-12-201-1/+1
| | | | llvm-svn: 197758
* Fix documentation typosAlp Toker2013-12-201-1/+1
| | | | llvm-svn: 197757
* [OCaml] Add a slash accidentally omitted from MakefilePeter Zotov2013-11-281-1/+1
| | | | llvm-svn: 195912
* [OCaml] Embed rpath into stub libraries and native executablesPeter Zotov2013-11-271-3/+12
| | | | | | | | | | | | | | This commit embeds a set of linker flags with hardcoded paths to the LLVM shared library on --enable-shared builds into .cmxa files and stub dynamic libraries. This solution closely follows existing rules for rpath in the LLVM tools, which had to be modified because of differences in toolchain. Without this patch, OCaml tests as well as opam bindings broke, as neither of those updates LD_LIBRARY_PATH to include the $prefix/lib directory. llvm-svn: 195834
* [OCaml] Embed the flags necessary for linking with libLLVM.so into .cmxa filesPeter Zotov2013-11-261-0/+1
| | | | llvm-svn: 195782
* [OCaml] Unbreak make install by providing ocamldoc targetPeter Zotov2013-11-211-1/+6
| | | | llvm-svn: 195336
* [OCaml] Add Target and TargetMachine bindings to Llvm_targetPeter Zotov2013-11-153-1/+464
| | | | llvm-svn: 194774
* [OCaml] Refactor Llvm_target interfacePeter Zotov2013-11-156-180/+186
| | | | | | | | 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] Fix building of stub librariesPeter Zotov2013-11-153-8/+8
| | | | llvm-svn: 194772
* [OCaml] Build stub OCaml libraries for all configured targetsPeter Zotov2013-11-146-0/+195
| | | | | | | | | | | | This allows to only link in the needed targets, reducing binary size and more importantly link time. Note that this is an incomplete implementation: currently, LLVM does not have the plumbing which would allow to conditionally link in AsmPrinter, AsmParser and Disassembler for the targets which support them. This should be improved in the future. llvm-svn: 194670
* [OCaml] Expose LLVM's fatal error and stacktrace APIsPeter Zotov2013-11-143-0/+47
| | | | llvm-svn: 194669
* [OCaml] Dynamically link LLVM on --enable-shared buildsPeter Zotov2013-11-121-1/+67
| | | | | | | | | | This commit significantly speeds up both bytecode and native builds of LLVM clients (from ~20 second to sub-second link time), and allows to invoke LLVM functions from OCaml toplevel. The behavior for --disable-shared builds is unchanged. llvm-svn: 194509
* [OCaml] Fix a typoPeter Zotov2013-11-121-6/+6
| | | | llvm-svn: 194508
* [OCaml] Add missing Llvm_target functionsPeter Zotov2013-11-113-0/+28
| | | | llvm-svn: 194382
* [OCaml] Accept context explicitly in Llvm_target functionsPeter Zotov2013-11-113-5/+7
| | | | | | | | 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. llvm-svn: 194381
* [OCaml] Make Llvm_target.DataLayout.t automatically managedPeter Zotov2013-11-115-43/+68
| | | | | | This breaks the API by removing Llvm_target.DataLayout.dispose. llvm-svn: 194380
* [OCaml] Impement Llvm_irreader, bindings to LLVM assembly parserPeter Zotov2013-11-066-1/+126
| | | | llvm-svn: 194138
* [OCaml] Implement Llvm.string_of_llvaluePeter Zotov2013-11-063-0/+15
| | | | llvm-svn: 194136
* [OCaml] (PR16190) Add ValueKinds for ConstantDataSequential and subclassesPeter Zotov2013-11-053-0/+8
| | | | | | Original patch by David Monniaux llvm-svn: 194075
* [OCaml] (PR16318) Add missing argument to Llvm.const_intcastPeter Zotov2013-11-053-5/+14
| | | | llvm-svn: 194065
* [OCaml] (PR11717) Make declare_qualified_global respect address argumentPeter Zotov2013-11-051-1/+2
| | | | | | Original patch by Jonathan Ragan-Kelley llvm-svn: 194064
* [OCaml] Properly tag the custom operations of Llvm.llbuilderPeter Zotov2013-11-051-1/+1
| | | | | | All other custom operations tags have LLVM prefix. llvm-svn: 194058
* [OCaml] Llvm_linker: do not use external in module interfacePeter Zotov2013-11-051-2/+1
| | | | | | | Workaround for an OCaml bug: http://caml.inria.fr/mantis/view.php?id=4166 llvm-svn: 194057
OpenPOWER on IntegriCloud