| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
This tool lets us build LLVM components within the tree by setting up a
$GOPATH that resembles a tree fetched in the normal way with "go get".
It is intended that components such as the Go frontend will be built in-tree
using this tool.
Differential Revision: http://reviews.llvm.org/D5902
llvm-svn: 220462
|
|
|
|
| |
llvm-svn: 220416
|
|
|
|
| |
llvm-svn: 220377
|
|
|
|
| |
llvm-svn: 220027
|
|
|
|
| |
llvm-svn: 220008
|
|
|
|
|
|
|
|
|
|
|
|
| |
This code is based on the existing LLVM Go bindings project hosted at:
https://github.com/go-llvm/llvm
Note that all contributors to the gollvm project have agreed to relicense
their changes under the LLVM license and submit them to the LLVM project.
Differential Revision: http://reviews.llvm.org/D5684
llvm-svn: 219976
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
This package is useful for architecture-independent tools like llc.
Patch by Jacques-Pascal Deplaix.
llvm-svn: 207793
|
|
|
|
|
|
|
|
|
|
|
| |
The returnvalue was handled as c_char_p which ment that ctypes
handled it as a NUL-terminated string making it cut the contents
at first NUL (or even worse - overrunning the buffer if it doesn't
contain a NUL).
Differential Revision: http://reviews.llvm.org/D3474
llvm-svn: 207199
|
|
|
|
|
|
|
| |
Broke after the changes related to the LLVMGetSymbolFileOffset
removal in r206750
llvm-svn: 207018
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We normally don't drop functions from the C API's, but in this case I think we
can:
* The old implementation of getFileOffset was fairly broken
* The introduction of LLVMGetSymbolFileOffset was itself a C api breaking
change as it removed LLVMGetSymbolOffset.
* It is an incredibly specialized use case. The only reason MCJIT needs it is
because of its odd position of being a dynamic linker of .o files.
llvm-svn: 206750
|
|
|
|
| |
llvm-svn: 201966
|
|
|
|
|
|
| |
Also fixed some trailing whitespace issues.
llvm-svn: 201929
|
|
|
|
| |
llvm-svn: 197758
|
|
|
|
| |
llvm-svn: 197757
|
|
|
|
| |
llvm-svn: 195912
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 195782
|
|
|
|
| |
llvm-svn: 195336
|
|
|
|
|
|
|
|
|
|
|
|
| |
Check should be for pointer being NULL, not what it points to.
Also adds a test for this case.
Reviewed By: indygreg
Differential Revision: http://llvm-reviews.chandlerc.com/D1878
llvm-svn: 194965
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As the "LLVMInitializeAll*" functions are not available as symbols in
the shared library they can't be used, and as a workaround a list of
the targets is kept and the individual symbols tried. As soon as the
"All"-functions are changed to proper symbols (as opposed to static
inlines in the headers) this hack will be replace with simple calls
to the corresponding "LLVMInitializeAll*" functions.
Reviewed By: indygreg
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1879
llvm-svn: 194964
|
|
|
|
| |
llvm-svn: 194774
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 194772
|