aboutsummaryrefslogtreecommitdiffstats
path: root/bindings
Commit message (Collapse)AuthorAgeFilesLines
* Update aosp/master LLVM for rebase to r235153Pirama Arumuga Nainar2015-05-181-36/+41
| | | | | Change-Id: I9bf53792f9fc30570e81a8d80d296c681d005ea7 (cherry picked from commit 0c7f116bb6950ef819323d855415b2f2b0aad987)
* Update aosp/master llvm for rebase to r233350Pirama Arumuga Nainar2015-04-095-4/+52
| | | | Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49
* Update aosp/master LLVM for rebase to r230699.Stephen Hines2015-03-2347-313/+725
| | | | Change-Id: I2b5be30509658cb8266be782de0ab24f9099f9b9
* Update aosp/master LLVM for rebase to r222494.Stephen Hines2014-12-0281-1377/+5570
| | | | Change-Id: Ic787f5e0124df789bd26f3f24680f45e678eef2d
* Update LLVM for rebase to r212749.Stephen Hines2014-07-214-39/+47
| | | | | | | Includes a cherry-pick of: r212948 - fixes a small issue with atomic calls Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
* Update LLVM for 3.5 rebase (r209712).Stephen Hines2014-05-298-16/+95
| | | | Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
* Update to LLVM 3.5a.Stephen Hines2014-04-245-43/+143
| | | | Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
* Merging r195912:Bill Wendling2013-12-021-1/+1
| | | | | | | | | | | ------------------------------------------------------------------------ r195912 | whitequark | 2013-11-28 01:03:28 -0800 (Thu, 28 Nov 2013) | 1 line [OCaml] Add a slash accidentally omitted from Makefile ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@196133 91177308-0d34-0410-b5e6-96231b3b80d8
* Merging r195834:Bill Wendling2013-11-271-3/+12
| | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ r195834 | whitequark | 2013-11-27 03:03:18 -0800 (Wed, 27 Nov 2013) | 11 lines [OCaml] Embed rpath into stub libraries and native executables 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. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@195873 91177308-0d34-0410-b5e6-96231b3b80d8
* Merging r195782:Bill Wendling2013-11-271-0/+1
| | | | | | | | | | | ------------------------------------------------------------------------ r195782 | whitequark | 2013-11-26 12:40:34 -0800 (Tue, 26 Nov 2013) | 1 line [OCaml] Embed the flags necessary for linking with libLLVM.so into .cmxa files ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@195871 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Unbreak make install by providing ocamldoc targetSylvestre Ledru2013-11-211-1/+6
| | | | | | | | Cherry-pick of Peter Zotov's commit in trunk (r195336) git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@195337 91177308-0d34-0410-b5e6-96231b3b80d8
* python: Fix check for disasm creation failureAnders Waldenborg2013-11-172-1/+5
| | | | | | | | | | | | | | 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194965 91177308-0d34-0410-b5e6-96231b3b80d8
* python: Properly initialize before trying to create disasmAnders Waldenborg2013-11-171-0/+26
| | | | | | | | | | | | | | | | | | | 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194964 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Add Target and TargetMachine bindings to Llvm_targetPeter Zotov2013-11-153-1/+464
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194774 91177308-0d34-0410-b5e6-96231b3b80d8
* [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194773 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Fix building of stub librariesPeter Zotov2013-11-153-8/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194772 91177308-0d34-0410-b5e6-96231b3b80d8
* [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194670 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Expose LLVM's fatal error and stacktrace APIsPeter Zotov2013-11-143-0/+47
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194669 91177308-0d34-0410-b5e6-96231b3b80d8
* [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194509 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Fix a typoPeter Zotov2013-11-121-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194508 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Add missing Llvm_target functionsPeter Zotov2013-11-113-0/+28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194382 91177308-0d34-0410-b5e6-96231b3b80d8
* [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194381 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Make Llvm_target.DataLayout.t automatically managedPeter Zotov2013-11-115-43/+68
| | | | | | This breaks the API by removing Llvm_target.DataLayout.dispose. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194380 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Impement Llvm_irreader, bindings to LLVM assembly parserPeter Zotov2013-11-066-1/+126
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194138 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Implement Llvm.string_of_llvaluePeter Zotov2013-11-063-0/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194136 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] (PR16190) Add ValueKinds for ConstantDataSequential and subclassesPeter Zotov2013-11-053-0/+8
| | | | | | Original patch by David Monniaux git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194075 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] (PR16318) Add missing argument to Llvm.const_intcastPeter Zotov2013-11-053-5/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194065 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] (PR11717) Make declare_qualified_global respect address argumentPeter Zotov2013-11-051-1/+2
| | | | | | Original patch by Jonathan Ragan-Kelley git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194064 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Properly tag the custom operations of Llvm.llbuilderPeter Zotov2013-11-051-1/+1
| | | | | | All other custom operations tags have LLVM prefix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194058 91177308-0d34-0410-b5e6-96231b3b80d8
* [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194057 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] implement Llvm_passmgr_builder, bindings for PassManagerBuilderPeter Zotov2013-11-046-1/+227
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193968 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] DocumentationPeter Zotov2013-11-042-7/+19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193967 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Implement missing LLVMCore APIsPeter Zotov2013-11-043-62/+349
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193966 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] FormattingPeter Zotov2013-11-043-172/+48
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193965 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Implement Llvm.MemoryBuffer.{of_string,as_string}Peter Zotov2013-11-033-0/+33
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193953 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Fix ABI incompatibilityPeter Zotov2013-11-032-1/+8
| | | | | | OCaml's type unit is not compatible with C's type void. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193952 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Implement Llvm_linker, bindings for the IR linkerPeter Zotov2013-11-036-1/+131
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193951 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Implement Llvm_vectorize bindingsPeter Zotov2013-11-036-1/+106
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193950 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Llvm_target: fix typo (Int_val instead of Int64_val)Peter Zotov2013-11-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193948 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Llvm_scalar_opts: add missing transformsPeter Zotov2013-11-033-0/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193946 91177308-0d34-0410-b5e6-96231b3b80d8
* [OCaml] Llvm_ipo: add missing transformsPeter Zotov2013-11-033-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193945 91177308-0d34-0410-b5e6-96231b3b80d8
* OCaml bindings: fix typoSylvestre Ledru2013-11-011-1/+1
| | | | | | | | Patch by Peter Zotov git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193851 91177308-0d34-0410-b5e6-96231b3b80d8
* OCaml bindings: remove unused DONT_BUILD_RELINKED from MakefilesSylvestre Ledru2013-11-012-2/+0
| | | | | | | | | Patch by Peter Zotov git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193847 91177308-0d34-0410-b5e6-96231b3b80d8
* OCaml bindings: fix typoSylvestre Ledru2013-11-012-2/+2
| | | | | | | | Patch by Peter Zotov git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193845 91177308-0d34-0410-b5e6-96231b3b80d8
* OCaml bindings: fix typo in documentationSylvestre Ledru2013-11-011-1/+1
| | | | | | | | Patch by Peter Zotov git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193838 91177308-0d34-0410-b5e6-96231b3b80d8
* OCaml bindings: formattingSylvestre Ledru2013-11-0124-74/+44
| | | | | | | | | | 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193836 91177308-0d34-0410-b5e6-96231b3b80d8
* [python-bindings] Added support for getting/setting operands of values and ↵Michael Gottesman2013-09-112-3/+39
| | | | | | | | getting the number of operands of a value. Also in the process did some cleanups for BasicBlock. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190477 91177308-0d34-0410-b5e6-96231b3b80d8
* [python-bindings] Added support for iterating over a basic blocks ↵Michael Gottesman2013-09-112-0/+99
| | | | | | | | instructions, getting their name/dumping them, f/b iteration. Tests are included. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190475 91177308-0d34-0410-b5e6-96231b3b80d8
* [python-bindings] Added support for iterating over a function's basic ↵Michael Gottesman2013-09-112-0/+105
| | | | | | | | blocks, dumping/getting names of those bb, f/w iteration. Tests are included. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190473 91177308-0d34-0410-b5e6-96231b3b80d8
* [python-bindings] Added support for getting a module's functions, iterating ↵Michael Gottesman2013-09-112-0/+101
| | | | | | | | f/b over said functions, dumping/print name of functions. Tests are included as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190471 91177308-0d34-0410-b5e6-96231b3b80d8