| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
The latter variable is internal.
Original patch by Ramkumar Ramachandra <artagnon@gmail.com>
llvm-svn: 224977
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Fixes pr21901.
llvm-svn: 224782
|
| |
|
|
|
|
| |
Patch by Evangelos Foutras <evangelos@foutrelis.com>.
llvm-svn: 224766
|
| |
|
|
|
|
| |
Patch by Gideon Smeding <gideon.smeding@3ds.com>.
llvm-svn: 223129
|
| |
|
|
|
|
|
| |
This way most code won't link this (substantially large) library,
if compiled statically with LLVM.
llvm-svn: 223072
|
| |
|
|
|
|
| |
Closes PR15325.
llvm-svn: 223071
|
| |
|
|
|
|
|
| |
Also, revert r221142--it was an incorrect fix to this bug
which fixed tests by accident.
llvm-svn: 221149
|
| |
|
|
|
|
| |
Thanks echristo for pointing this out.
llvm-svn: 221145
|
| |
|
|
| |
llvm-svn: 221143
|
| |
|
|
|
|
| |
On 4.02, the OCaml unwinder otherwise gets confused and segfaults.
llvm-svn: 221142
|
| |
|
|
| |
llvm-svn: 221141
|
| |
|
|
| |
llvm-svn: 221140
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Bindings built out-of-tree, e.g. via OPAM, should append
a line to META.llvm like the following:
linkopts = "-cclib -L$libdir -cclib -Wl,-rpath,$libdir"
where $libdir is the lib/ directory where LLVM libraries are
installed.
llvm-svn: 221139
|
| |
|
|
|
|
|
| |
The default Makefile.rules BUILD_ARCHIVE machinery was
unintentionally enabled.
llvm-svn: 221138
|
| |
|
|
|
|
|
| |
ocamlfind ignores the predicates in this case, making the package
unavailable for batch compilation as well.
llvm-svn: 221136
|
| |
|
|
|
|
| |
Interpreter support was removed in r220957.
llvm-svn: 221135
|
| |
|
|
|
|
|
|
|
| |
Specifically:
* Directories match module names.
* Test names match module names.
* The language is called "OCaml", not "Ocaml".
llvm-svn: 220958
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 220903
|
| |
|
|
| |
llvm-svn: 220902
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit updates the OCaml bindings and tests to use ocamlfind.
The bindings are migrated in order to use ctypes, which are now
required for MCJIT-backed Llvm_executionengine.
The tests are migrated in order to use OUnit and to verify that
the distributed META.llvm allows to build working executables.
Every OCaml toolchain invocation is now chained through ocamlfind,
which (in theory) allows to cross-compile the OCaml bindings.
The configure script now checks for ctypes (>= 0.2.3) and
OUnit (>= 2). The code depending on these libraries will be added
later. The configure script does not check the package versions
in order to keep changes less invasive.
Additionally, OCaml bindings will now be automatically enabled
if ocamlfind is detected on the system, rather than ocamlc, as it
was before.
llvm-svn: 220899
|
| |
|
|
| |
llvm-svn: 220898
|
| |
|
|
| |
llvm-svn: 220847
|
| |
|
|
| |
llvm-svn: 220846
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 220844
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Also, rearrange the functions in a way that allows to quickly
compare C headers and .mli/glue files.
llvm-svn: 220842
|
| |
|
|
|
|
| |
Patch by Gabriel Radanne <drupyog@zoho.com>.
llvm-svn: 220818
|
| |
|
|
|
|
| |
Patch by Gabriel Radanne <drupyog@zoho.com>.
llvm-svn: 220815
|
| |
|
|
|
|
| |
We don't care about pre-3.12.1 anymore.
llvm-svn: 220767
|
| |
|
|
| |
llvm-svn: 220766
|
| |
|
|
|
|
| |
Patch by Gabriel Radanne <drupyog@zoho.com>.
llvm-svn: 220648
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 220619
|
| |
|
|
| |
llvm-svn: 220377
|
| |
|
|
| |
llvm-svn: 220008
|
| |
|
|
|
|
|
|
| |
Approved by Jim Grosbach, Lang Hames, Rafael Espindola.
This reinstates commits r215111, 215115, 215116, 215117, 215136.
llvm-svn: 216982
|
| |
|
|
|
|
| |
Patch by Gabriel Radanne <drupyog@zoho.com>
llvm-svn: 215420
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 215117
|
| |
|
|
| |
llvm-svn: 214677
|
| |
|
|
| |
llvm-svn: 213655
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Patch by Julien Sagot
llvm-svn: 212230
|
| |
|
|
| |
llvm-svn: 212048
|
| |
|
|
|
|
| |
Patch by Jacques-Pascal Deplaix
llvm-svn: 210480
|
| |
|
|
| |
llvm-svn: 210396
|
| |
|
|
|
|
|
|
|
| |
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
|