summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
Commit message (Collapse)AuthorAgeFilesLines
...
* Change llvm-c's ordering of contexts to make it consistent.Erick Tryzelaar2009-08-111-4/+4
| | | | llvm-svn: 78656
* Put new enum at end of list to avoid changing ABI.Bill Wendling2009-07-201-2/+2
| | | | llvm-svn: 76447
* Add plumbing for the `linker_private' linkage type. This type is meant forBill Wendling2009-07-201-0/+1
| | | | | | | | | "private" symbols which the assember shouldn't strip, but which the linker may remove after evaluation. This is mostly useful for Objective-C metadata. This is plumbing, so we don't have a use of it yet. More to come, etc. llvm-svn: 76385
* Fix copy & paste errorsAnton Korobeynikov2009-07-171-8/+8
| | | | llvm-svn: 76216
* Add missed attributes to C bindingsAnton Korobeynikov2009-07-171-0/+8
| | | | llvm-svn: 76214
* Add support for naked functionsAnton Korobeynikov2009-07-171-1/+2
| | | | llvm-svn: 76198
* Update the C bindings to keep the LLVMTypeKind up to date between the C/C++Chris Lattner2009-07-151-1/+2
| | | | | | stuff. Patch by Zoltan Varga! llvm-svn: 75842
* llvm-c/Core.h is no longer needed in lto.h, and it brings inDan Gohman2009-07-151-1/+0
| | | | | | several unwanted dependencies. llvm-svn: 75717
* Match declaration to definition.Daniel Dunbar2009-07-121-1/+1
| | | | llvm-svn: 75440
* add missing *, patch by Peter O'Gorman!Chris Lattner2009-07-101-1/+1
| | | | llvm-svn: 75259
* Remove the vicmp and vfcmp instructions. Because we never had a release withNick Lewycky2009-07-081-2/+0
| | | | | | | these instructions, no autoupgrade or backwards compatibility support is provided. llvm-svn: 74991
* Add two new accessors to the C bindings, patch by Wladimir van der Laan!Chris Lattner2009-07-061-0/+2
| | | | llvm-svn: 74836
* Restore other bits of the C API that I tore up. All pre-existing APIs ↵Owen Anderson2009-07-022-2/+12
| | | | | | | | | | default to using the default global context, while new *InContext() APIs have been added that take a LLVMContextRef parameter. Apologies to anyone affected by this breakage. llvm-svn: 74694
* Maintain the old LTO API, by using the global context.Owen Anderson2009-07-021-6/+3
| | | | llvm-svn: 74678
* Add a C wrapper for accessing the global default context.Owen Anderson2009-07-021-0/+1
| | | | llvm-svn: 74675
* Fix the LTO header for LLVMContext changes.Owen Anderson2009-07-011-3/+5
| | | | llvm-svn: 74663
* Hold the LLVMContext by reference rather than by pointer.Owen Anderson2009-07-011-1/+1
| | | | llvm-svn: 74640
* Add a pointer to the owning LLVMContext to Module. This requires threading ↵Owen Anderson2009-07-012-1/+12
| | | | | | | | | | LLVMContext through a lot of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools. Patches for Clang and LLVM-GCC to follow. llvm-svn: 74614
* Fix the Ocaml bindings for the ExecutionEngine: with the change to buildBob Wilson2009-06-241-0/+3
| | | | | | | | libraries instead of relinked objects, the interpreter, JIT, and native target libraries were not being linked in to an ocaml program using the ExecutionEngine. llvm-svn: 74117
* Provide InitializeAllTargets and InitializeNativeTarget functions in theBob Wilson2009-06-231-0/+29
| | | | | | | | C bindings. Change all the backend "Initialize" functions to have C linkage. Change the "llvm/Config/Targets.def" header to use C-style comments to avoid compile warnings. llvm-svn: 74026
* <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
OpenPOWER on IntegriCloud