summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
Commit message (Collapse)AuthorAgeFilesLines
...
* Switch the bindings to use LLVMFoldingBuilder.Gordon Henriksen2007-12-271-8/+8
| | | | llvm-svn: 45367
* C and Ocaml bindings for ExecutionEngine (i.e., the JIT compiler).Gordon Henriksen2007-12-231-0/+115
| | | | llvm-svn: 45335
* Adding bindings for memory buffers and module providers. SwitchingGordon Henriksen2007-12-193-85/+60
| | | | | | to exceptions rather than variants for error handling in Ocaml. llvm-svn: 45226
* C and Ocaml bindings for address spaces, for that burgeoning marketGordon Henriksen2007-12-171-1/+2
| | | | | | for Ocaml-based compilers targeting embedded devices. :) llvm-svn: 45096
* Add (very basic) bindings for ModuleProvider.Gordon Henriksen2007-12-122-0/+34
| | | | llvm-svn: 44899
* Adding Ocaml bindings for the bitreader as requested by SarahGordon Henriksen2007-12-111-0/+43
| | | | | | | | | | | | | | | | | | | Thompson. Usage should be something like this: open Llvm open Llvm_bitreader match read_bitcode_file fn with | Bitreader_failure msg -> prerr_endline msg | Bitreader_success m -> ...; dispose_module m Compile with: ocamlc llvm.cma llvm_bitreader.cma ocamlopt llvm.cmxa llvm_bitreader.cmxa llvm-svn: 44824
* Adding a collector name attribute to Function in the IR. These Gordon Henriksen2007-12-101-0/+2
| | | | | | | | | | | | | | | | | | | | methods are new to Function: bool hasCollector() const; const std::string &getCollector() const; void setCollector(const std::string &); void clearCollector(); The assembly representation is as such: define void @f() gc "shadow-stack" { ... The implementation uses an on-the-side table to map Functions to collector names, such that there is no overhead. A StringPool is further used to unique collector names, which are extremely likely to be unique per process. llvm-svn: 44769
* C and Objective Caml bindings for PHINode::addIncoming etc.Gordon Henriksen2007-10-081-0/+6
| | | | llvm-svn: 42760
* C and Objective Caml bindings for getFunction and getNamedGlobal. Also enhancedGordon Henriksen2007-10-081-0/+2
| | | | | | | the Objective Caml 'declare_*' functions to behave more or less like getOrInsertFunction. llvm-svn: 42740
* C and Objective Caml bindings for GlobalVariable::isConstant.Gordon Henriksen2007-10-071-0/+2
| | | | llvm-svn: 42736
* C and Objective Caml bindings for PATypeHolder.Gordon Henriksen2007-10-071-0/+17
| | | | llvm-svn: 42713
* Bindings for the verifier.Gordon Henriksen2007-10-061-0/+53
| | | | llvm-svn: 42707
* Adopting a uniform naming convention for type constructors in bindings.Gordon Henriksen2007-10-061-10/+10
| | | | llvm-svn: 42698
* Adopting a uniform naming convention for constant constructors in bindings.Gordon Henriksen2007-10-061-13/+12
| | | | llvm-svn: 42697
* Adding C and Ocaml bindings for ConstantExpr.Gordon Henriksen2007-10-061-0/+49
| | | | llvm-svn: 42696
* Wrapping Value::dump.Gordon Henriksen2007-10-061-0/+1
| | | | llvm-svn: 42668
* Removing the silly CHelpers header by rolling wrap and unwrap into the CGordon Henriksen2007-10-051-2/+101
| | | | | | bindings headers themselves, hidden behind #ifdef __cplusplus. llvm-svn: 42666
* Added C and Ocaml bindings for functions, basic blocks, and Gordon Henriksen2007-09-261-14/+208
| | | | | | | | | instruction creation. No support yet for instruction introspection. Also eliminated allocas from the Ocaml bindings for portability, and avoided unnecessary casts. llvm-svn: 42367
* Tests of the ocaml (and thus C) bindings for constants.Gordon Henriksen2007-09-181-0/+2
| | | | llvm-svn: 42101
* C bindings for libLLVMCore.a and libLLVMBitWriter.a.Gordon Henriksen2007-09-182-0/+263
| | | | | | | | | | | | | | | | | | | | | | | | | | - The naming prefix is LLVM. - All types are represented using opaque references. - Functions are not named LLVM{Type}{Method}; the names became unreadable goop. Instead, they are named LLVM{ImperativeSentence}. - Where an attribute only appears once in the class hierarchy (e.g., linkage only applies to values; parameter types only apply to function types), the class is omitted from identifiers for brevity. Tastes like methods. - Strings are C strings or string/length tuples on a case-by-case basis. - APIs which give the caller ownership of an object are not mapped (removeFromParent, certain constructor overloads). This keeps keep memory management as simple as possible. For each library with bindings: llvm-c/<LIB>.h - Declares the bindings. lib/<LIB>/<LIB>.cpp - Implements the bindings. So just link with the library of your choice and use the C header instead of the C++ one. llvm-svn: 42077
* Add C wrappers for the LTO library (PR1081). Patch by Chandler Carruth!Chris Lattner2007-01-061-0/+58
llvm-svn: 32966
OpenPOWER on IntegriCloud