summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
Commit message (Collapse)AuthorAgeFilesLines
* <rdar://problem/6940611> libLTO.dylib needs to let linker specify path to ↵Nick Kledzik2009-06-041-0/+10
| | | | | | | | | | | assembler Add lto_codegen_set_assembler_path() API which allows the linker to specify the path to the assembler tool to run. When assembler is used (instead of compiler) different command line options are used. Add LTO_API_VERSION #define so clients (linkers) can conditionalize use of new APIs. llvm-svn: 72823
* Rename PaddedSize to AllocSize, in the hope that thisDuncan Sands2009-05-091-1/+1
| | | | | | | will make it more obvious what it represents, and stop it being confused with the StoreSize. llvm-svn: 71349
* OCaml parameter attribute bindings from PR2752.Duncan Sands2009-05-061-0/+2
| | | | | | Incomplete, but better than nothing. llvm-svn: 71081
* Oops! Missed a file in my last commit.Nick Lewycky2009-04-301-0/+8
| | | | llvm-svn: 70491
* The second part of the change from -fast to -O#. This changes the JIT to acceptBill Wendling2009-04-291-1/+1
| | | | | | | an optimization level instead of a simple boolean telling it to generate code "fast" or the other type of "fast". llvm-svn: 70347
* Add LTO_SYMBOL_DEFINITION_WEAKUNDEF, use that on the gold plugin.Rafael Espindola2009-04-241-0/+1
| | | | llvm-svn: 69972
* add AvailableExternally linkage to C bindings.Chris Lattner2009-04-131-0/+1
| | | | llvm-svn: 68942
* It makes no sense to have a ODR version of commonDuncan Sands2009-03-111-3/+1
| | | | | | linkage, so remove it. llvm-svn: 66690
* Remove the one-definition-rule version of extern_weakDuncan Sands2009-03-111-3/+1
| | | | | | | linkage: this linkage type only applies to declarations, but ODR is only relevant to globals with definitions. llvm-svn: 66650
* Introduce new linkage types linkonce_odr, weak_odr, common_odrDuncan Sands2009-03-071-4/+14
| | | | | | | | | | | | | | | | | | | | | and extern_weak_odr. These are the same as the non-odr versions, except that they indicate that the global will only be overridden by an *equivalent* global. In C, a function with weak linkage can be overridden by a function which behaves completely differently. This means that IP passes have to skip weak functions, since any deductions made from the function definition might be wrong, since the definition could be replaced by something completely different at link time. This is not allowed in C++, thanks to the ODR (One-Definition-Rule): if a function is replaced by another at link-time, then the new function must be the same as the original function. If a language knows that a function or other global can only be overridden by an equivalent global, it can give it the weak_odr linkage type, and the optimizers will understand that it is alright to make deductions based on the function body. The code generators on the other hand map weak and weak_odr linkage to the same thing. llvm-svn: 66339
* fix header comment and include guard.Chris Lattner2009-03-061-9/+5
| | | | llvm-svn: 66273
* add a bunch more passes to the C bindings (PR3734), patch byChris Lattner2009-03-062-9/+131
| | | | | | Lennart Augustsson! llvm-svn: 66272
* Correct strange whitespace.Nick Lewycky2009-02-061-1/+1
| | | | llvm-svn: 63927
* add getPointerToGlobal to the C bindings, patch by Lennart Augustsson!Chris Lattner2009-01-211-0/+2
| | | | | | PR3364 llvm-svn: 62697
* Rename getABITypeSize to getTypePaddedSize, asDuncan Sands2009-01-121-1/+1
| | | | | | suggested by Chris. llvm-svn: 62099
* Add dyn_cast_or_null bindings for some additional classes missed in r61252.Gordon Henriksen2008-12-191-1/+18
| | | | llvm-svn: 61253
* C bindings for dyn_cast_or_null.Gordon Henriksen2008-12-191-10/+65
| | | | | | This operation can be used to build dyn_cast, isa, and cast. llvm-svn: 61252
* This adds some missing functions to the C binding:Chris Lattner2008-12-171-0/+9
| | | | | | | | | | - ability to insert previously created instructions using a builder - creation of aliases - creation of inline asm constants Patch by Zoltan Varga! llvm-svn: 61153
* Add protected visibility to libLTO.Nick Lewycky2008-11-291-1/+2
| | | | llvm-svn: 60257
* Add C bindings for extractvalue and insertvalue. Patch by Frits van Bommel!Dan Gohman2008-11-031-0/+10
| | | | llvm-svn: 58650
* Large mechanical patch.Devang Patel2008-09-251-17/+17
| | | | | | | | | | | | | | | s/ParamAttr/Attribute/g s/PAList/AttrList/g s/FnAttributeWithIndex/AttributeWithIndex/g s/FnAttr/Attribute/g This sets the stage - to implement function notes as function attributes and - to distinguish between function attributes and return value attributes. This requires corresponding changes in llvm-gcc and clang. llvm-svn: 56622
* PR2731: C and Ocaml bindings for setTailCall and isTailCall.Gordon Henriksen2008-08-301-0/+4
| | | | | | Based on patch by Giorgos Korfiatis. llvm-svn: 55570
* Rename some GC classes so that their roll will hopefully be clearer.Gordon Henriksen2008-08-171-2/+2
| | | | | | | | | | | | | | | | | | In particular, Collector was confusing to implementors. Several thought that this compile-time class was the place to implement their runtime GC heap. Of course, it doesn't even exist at runtime. Specifically, the renames are: Collector -> GCStrategy CollectorMetadata -> GCFunctionInfo CollectorModuleMetadata -> GCModuleInfo CollectorRegistry -> GCRegistry Function::getCollector -> getGC (setGC, hasGC, clearGC) Several accessors and nested types have also been renamed to be consistent. These changes should be obvious. llvm-svn: 54899
* Delete a redundant binding, LLVMHasInitializer.Gordon Henriksen2008-08-091-1/+0
| | | | | | Please use !LLVMIsDeclaration instead. llvm-svn: 54572
* Fix the LLVMCreateJITCompiler C binding.Gordon Henriksen2008-08-081-0/+1
| | | | | | | Evan broke it in r54523 by adding a parameter in the implementation without updating the header correspondingly. llvm-svn: 54555
* Have IRBuilder take a template argument on whether or not to preserveEric Christopher2008-08-081-1/+1
| | | | | | | names. This can save a lot of allocations if you aren't going to be looking at the output. llvm-svn: 54546
* Provide a hook to set the code generation debug options to investigate lto ↵Devang Patel2008-07-031-0/+5
| | | | | | failures. llvm-svn: 53119
* Add C binding for ExecutionEngine::addGlobalMapping.Gordon Henriksen2008-06-201-0/+3
| | | | llvm-svn: 52523
* Remove a duplicative binding. Patch by Mahadevan R.Gordon Henriksen2008-05-191-3/+0
| | | | llvm-svn: 51238
* Improve documentation.Gordon Henriksen2008-05-061-1/+2
| | | | llvm-svn: 50768
* Use (void) instead of () in C code.Gordon Henriksen2008-05-042-18/+18
| | | | llvm-svn: 50620
* Correct parameter attributes encoding for C bindings.Anton Korobeynikov2008-04-281-4/+4
| | | | | | Patch by Anders Johnsen! llvm-svn: 50375
* Expose parameter attributes via C bindings.Gordon Henriksen2008-04-281-0/+22
| | | | | | Patch by Anders Johnsen! llvm-svn: 50360
* PR2245: Misleading parameter name in llvm-c/Core.h:LLVMConstArrayGordon Henriksen2008-04-251-1/+1
| | | | | | Applying fix by Frits van Bommel. llvm-svn: 50250
* Merge LLVMBuilder and FoldingBuilder, callingDuncan Sands2008-04-131-2/+2
| | | | | | the result IRBuilder. Patch by Dominic Hamon. llvm-svn: 49604
* Expose Function::viewCFG and Function::viewCFGOnly to bindings.Erick Tryzelaar2008-03-311-0/+4
| | | | llvm-svn: 48982
* Expose ExecutionEngine::getTargetData() to c and ocaml bindings.Erick Tryzelaar2008-03-271-0/+3
| | | | llvm-svn: 48851
* Objective Caml bindings for basic block, function, global, and arg iterators.Gordon Henriksen2008-03-231-2/+10
| | | | llvm-svn: 48711
* C and Objective Caml bindings for mem2reg and reg2mem.Gordon Henriksen2008-03-201-0/+6
| | | | | | Patch by Erick Tryzelaar. llvm-svn: 48602
* C bindings for Module-, Function-, and BasicBlock::iterator.Gordon Henriksen2008-03-191-0/+14
| | | | llvm-svn: 48528
* C and Objective Caml bindings for the various getParent methods of the IR.Gordon Henriksen2008-03-191-3/+12
| | | | | | Based on Erick Tryzelaar's patch. llvm-svn: 48523
* C and Objective Caml bindings for the TargetData class.Gordon Henriksen2008-03-161-0/+131
| | | | llvm-svn: 48422
* C and Objective Caml bindings for several scalar transforms.Gordon Henriksen2008-03-161-0/+47
| | | | | | Patch originally by Erick Tryzelaar, but has been modified somewhat. llvm-svn: 48419
* Remove unnecessary includes.Gordon Henriksen2008-03-161-2/+1
| | | | llvm-svn: 48418
* C and Objective Caml bindings for PassManagers.Gordon Henriksen2008-03-161-12/+69
| | | | llvm-svn: 48413
* Expose Module::dump via C and Ocaml.Gordon Henriksen2008-03-141-0/+3
| | | | | | Patch by Erick Tryzelaar. llvm-svn: 48379
* Cleanup some comments in the OCaml bindings.Gordon Henriksen2008-03-071-8/+14
| | | | | | Patch by Erick Tryzelaar. llvm-svn: 48014
* fixes from review of first commitNick Kledzik2008-02-271-3/+4
| | | | llvm-svn: 47695
* first commit of new LTO system. It is not hooked up in the ↵Nick Kledzik2008-02-261-0/+234
| | | | | | llvm/tools/Makefile, so no one will build it be default yet llvm-svn: 47621
* Fixing a bug creating floating point constants of type otherGordon Henriksen2008-02-021-0/+1
| | | | | | | than double through the C bindings. Thanks to Tomas Lindquist Olsen for reporting it. llvm-svn: 46656
OpenPOWER on IntegriCloud