summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
Commit message (Collapse)AuthorAgeFilesLines
* "In order to ease automatic bindings generation, it would be helpful if ↵Chris Lattner2010-01-095-70/+71
| | | | | | | | boolean values were distinguishable from integers. The attached patch introduces "typedef int LLVMBool;", and uses LLVMBool instead of int throughout the C API, wherever a boolean value is called for." Patch by James Y Knight! llvm-svn: 93079
* Remove dead debug info intrinsics.Devang Patel2010-01-051-4/+0
| | | | | | | | | | Intrinsic::dbg_stoppoint Intrinsic::dbg_region_start Intrinsic::dbg_region_end Intrinsic::dbg_func_start AutoUpgrade simply ignores these intrinsics now. llvm-svn: 92557
* improve compatibility with SWIG, patch by James Knight!Chris Lattner2009-12-211-1/+5
| | | | llvm-svn: 91822
* I forgot to update the prototype for LLVMBuildIntCast when correctingDuncan Sands2009-11-231-1/+1
| | | | | | | | | | | | the body to not pass the name for the isSigned parameter. However it seems that changing prototypes is a big-no-no, so here I revert the previous change and pass "true" for isSigned, meaning this always does a signed cast, which was the previous behaviour assuming the name was not NULL! Some other C function needs to be introduced for the general case of signed or unsigned casts. This hopefully unbreaks the ocaml binding. llvm-svn: 89648
* remove the now dead condprop pass, PR3906.Chris Lattner2009-11-111-3/+0
| | | | llvm-svn: 86810
* Remove FreeInst.Victor Hernandez2009-10-261-1/+0
| | | | | | | Remove LowerAllocations pass. Update some more passes to treate free calls just like they were treating FreeInst. llvm-svn: 85176
* Move DataTypes.h to include/llvm/System, update all users. This breaks the lastChandler Carruth2009-10-261-1/+1
| | | | | | direct inclusion edge from System to Support. llvm-svn: 85086
* Auto-upgrade free instructions to calls to the builtin free function.Victor Hernandez2009-10-241-1/+1
| | | | | | | Update all analysis passes and transforms to treat free calls just like FreeInst. Remove RaiseAllocations and all its tests since FreeInst no longer needs to be raised. llvm-svn: 84987
* Remove AllocationInst. Since MallocInst went away, AllocaInst is the only ↵Victor Hernandez2009-10-231-2/+1
| | | | | | subclass of AllocationInst, so it no longer is necessary. llvm-svn: 84969
* Remove MallocInst from LLVM Instructions.Victor Hernandez2009-10-171-1/+0
| | | | llvm-svn: 84299
* add some more hooks to the C bindings, patch by Kenneth Uildriks!Chris Lattner2009-10-121-0/+78
| | | | llvm-svn: 83821
* Add C API calls for building FNeg operations. Patch by KS Sreeram!Dan Gohman2009-09-281-0/+1
| | | | llvm-svn: 83021
* Revert 80959. It isn't sufficient to solve the full problem. And itDan Gohman2009-09-031-0/+5
| | | | | | introduced regressions in the Ocaml bindings tests. llvm-svn: 80969
* Remove the API for creating ConstantExprs with the nsw, nuw, inbounds,Dan Gohman2009-09-031-5/+0
| | | | | | | | | | | | | | | and exact flags. Because ConstantExprs are uniqued, creating an expression with this flag causes all expressions with the same operands to have the same flag, which may not be safe. Add, sub, mul, and sdiv ConstantExprs are usually folded anyway, so the main interesting flag here is inbounds, and the constant folder already knows how to set the inbounds flag automatically in most cases, so there isn't an urgent need for the API support. This can be reconsidered in the future, but for now just removing these API bits eliminates a source of potential trouble with little downside. llvm-svn: 80959
* Make sure we specify no arguments for context functions.Erick Tryzelaar2009-08-301-2/+2
| | | | llvm-svn: 80525
* Add an 'inline hint' attribute to represent sourceDale Johannesen2009-08-261-1/+2
| | | | | | | | code hints that it would be a good idea to inline a function ("inline" keyword). No functional change yet; FEs do not emit this and inliner does not use it. llvm-svn: 80063
* Expose some extra functions to llvm-cErick Tryzelaar2009-08-191-1/+2
| | | | llvm-svn: 79413
* Add LLVMInitializeAllTargetInfos for C api, and updateDaniel Dunbar2009-08-181-1/+14
| | | | | | | LLVMInitializeNativeTarget to initialize target info. - Patch by Jose Fonseca. llvm-svn: 79307
* Expose creating constant ints and floats from strings in llvm-c.Erick Tryzelaar2009-08-161-0/+9
| | | | llvm-svn: 79213
* Add an llvm-c function that lets you insert an instruction with a name.Erick Tryzelaar2009-08-161-0/+2
| | | | llvm-svn: 79163
* Expose most of the Constant creation functions to llvm-c.Erick Tryzelaar2009-08-161-0/+20
| | | | llvm-svn: 79160
* Expose most of the rest of IRBuilder's functions to llvm-c.Erick Tryzelaar2009-08-161-0/+40
| | | | llvm-svn: 79159
* Expose LLVMContext to llvm-c.Erick Tryzelaar2009-08-141-2/+49
| | | | llvm-svn: 78964
* 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
OpenPOWER on IntegriCloud