summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/Target.h
Commit message (Collapse)AuthorAgeFilesLines
* Move LLVMCreateTargetData and LLVMDisposeTargetData together. NFCAmaury Sechet2016-02-171-4/+4
| | | | llvm-svn: 261172
* Restore the capability to manipulate datalayout from the C APIAmaury Sechet2016-02-161-0/+14
| | | | | | | | | | | | | | | | | Summary: This consist in variosu addition to the C API: LLVMTargetDataRef LLVMGetModuleDataLayout(LLVMModuleRef M); void LLVMSetModuleDataLayout(LLVMModuleRef M, LLVMTargetDataRef DL); LLVMTargetDataRef LLVMCreateTargetMachineData(LLVMTargetMachineRef T); Reviewers: joker.eph, Wallbraker, echristo Subscribers: axw Differential Revision: http://reviews.llvm.org/D17255 llvm-svn: 260936
* Kill LLVMAddTargetDataAmaury Sechet2016-02-161-5/+0
| | | | | | | | | | | | Summary: It's red, it's dead. Reviewers: joker.eph, Wallbraker, echristo Subscribers: llvm-commits, axw Differential Revision: http://reviews.llvm.org/D17282 llvm-svn: 260919
* Reorganize the C API headers to improve build times.Eric Christopher2015-12-181-1/+1
| | | | | | | | | Type specific declarations have been moved to Type.h and error handling routines have been moved to ErrorHandling.h. Both are included in Core.h so nothing should change for projects directly including the headers, but transitive dependencies may be affected. llvm-svn: 255965
* [llvm-c] Remove dead typedefPeter Zotov2013-11-111-1/+0
| | | | llvm-svn: 194379
* [llvm-c] Add parameter names in Target.h for C99 compliancePeter Zotov2013-11-061-21/+23
| | | | llvm-svn: 194146
* [llvm-c] Correctly check for existence of native AsmParser, AsmPrinter, ↵Peter Zotov2013-11-061-6/+6
| | | | | | | | Disassembler Also, properly name the functions. llvm-svn: 194141
* [llvm-c] Add functions for initializing native AsmPrinter, AsmParser & ↵Peter Zotov2013-11-061-0/+36
| | | | | | | | Disassembler Original patch by Chris Wailes llvm-svn: 194140
* llvm-c/Target.h: Tweak "inline" for msvc to use __inline instead.NAKAMURA Takumi2013-10-231-0/+4
| | | | | FIXME: I don't think it'd be smart. llvm-svn: 193256
* include/llvm-c: Whitespace.NAKAMURA Takumi2013-10-231-9/+9
| | | | llvm-svn: 193253
* llvm-c: Add LLVMIntPtrType{,ForAS}InContextAnders Waldenborg2013-10-171-0/+9
| | | | | | | | | | | | All of the Core API functions have versions which accept explicit context, in addition to ones which work on global context. This commit adds functions which accept explicit context to the Target API for consistency. Patch by Peter Zotov Differential Revision: http://llvm-reviews.chandlerc.com/D1912 llvm-svn: 192913
* Revert "Add AllTargetsBindings sublibrary" as it breaks cmake build on ↵Anders Waldenborg2013-10-151-11/+36
| | | | | | (atleast) windows and darwin. llvm-svn: 192697
* Add AllTargetsBindings sublibrary instead of having static inlines in the ↵Anders Waldenborg2013-10-151-36/+11
| | | | | | | | | | | | | llvm-c headers. This new library will be linked in when using the "all-targets" component and contains the LLVMInitializeAll* functions. This means that those functions will exist as real symbols in the shared library, and can therefore can be called from bindings that are using ffi the shared library. llvm-svn: 192690
* Revert "llvm-c: Make target initializer functions external functions in lib."Rui Ueyama2013-10-091-11/+36
| | | | | | | | This reverts commit r192316. The original change introduced circular dependencies between libTarget and backends. That would broke a build unless link everything into one big binary. llvm-svn: 192329
* llvm-c: Make target initializer functions external functions in lib.Anders Waldenborg2013-10-091-36/+11
| | | | | | | | | | | | | Making them proper functions defined in the (shared)lib instead of static inlines defined in the header files makes it possible to actually distribute a binary compiled against the shared library without having to worry about getting undefined symbol errors when calling e.g LLVMInitializeAllTargetInfos because the shared library on the other system was compiled with different targets. Differential Revision: http://llvm-reviews.chandlerc.com/D1714 llvm-svn: 192316
* Move C++ code out of the C headers and into either C++ headersEric Christopher2013-04-221-23/+0
| | | | | | | or the C++ files themselves. This enables people to use just a C compiler to interoperate with LLVM. llvm-svn: 180063
* Revert r178713Evan Cheng2013-04-041-3/+2
| | | | llvm-svn: 178769
* Make it possible to include llvm-c without including C++ headers. Patch by ↵Evan Cheng2013-04-031-2/+3
| | | | | | Filip Pizlo. llvm-svn: 178713
* Resubmit the changes to llvm core to update the functions to support ↵Micah Villmow2012-10-151-0/+10
| | | | | | different pointer sizes on a per address space basis. llvm-svn: 165941
* Revert 165732 for further review.Micah Villmow2012-10-111-10/+0
| | | | llvm-svn: 165747
* Add in the first iteration of support for llvm/clang/lldb to allow variable ↵Micah Villmow2012-10-111-0/+10
| | | | | | per address space pointer sizes to be optimized correctly. llvm-svn: 165726
* Move TargetData to DataLayout.Micah Villmow2012-10-081-18/+18
| | | | llvm-svn: 165402
* [llvm-c] Make a few function declarations proper prototypesAnders Waldenborg2012-05-021-6/+6
| | | | | | | | | This avoids warnings when included in a application that uses -Wstrict-prototypes. e.g: AsmPrinters.def:27:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] llvm-svn: 155997
* Add 'undef's to make SWIG happier. Patch by Baozeng Ding.Bill Wendling2012-03-261-0/+3
| | | | llvm-svn: 153479
* Organize LLVM C API docs into doxygen modules; add docsGregory Szorc2012-03-211-0/+10
| | | | | | | | | | | | | | | | This gives a lot of love to the docs for the C API. Like Clang's documentation, the C API is now organized into a Doxygen "module" (LLVMC). Each C header file is a child of the main module. Some modules (like Core) have a hierarchy of there own. The produced documentation is thus better organized (before everything was in one monolithic list). This patch also includes a lot of new documentation for APIs in Core.h. It doesn't document them all, but is better than none. Function docs are missing @param and @return annotation, but the documentation body now commonly provides help details (like the expected llvm::Value sub-type to expect). llvm-svn: 153157
* llvm-c: Add a few missing InitializeAll* functions.Daniel Dunbar2011-11-291-0/+52
| | | | llvm-svn: 145330
* Add LLVMAddTargetLibraryInfo to the C API.Rafael Espindola2011-07-251-0/+16
| | | | llvm-svn: 135975
* Combine all MC initialization routines into one. e.g. InitializeX86MCAsmInfo,Evan Cheng2011-07-221-8/+2
| | | | | | InitializeX86MCInstrInfo, etc. are combined into InitializeX86TargetMC. llvm-svn: 135812
* Introduce MCCodeGenInfo, which keeps information that can affect codegenEvan Cheng2011-07-191-0/+6
| | | | | | | (including compilation, assembly). Move relocation model Reloc::Model from TargetMachine to MCCodeGenInfo so it's accessible even without TargetMachine. llvm-svn: 135468
* remove the InvalidateStructLayoutInfo API, which is dead and unnecessary nowChris Lattner2011-07-151-6/+0
| | | | | | that type refinement is toast. llvm-svn: 135245
* Rename createAsmInfo to createMCAsmInfo and move registration code to ↵Evan Cheng2011-07-141-0/+6
| | | | | | MCTargetDesc to prepare for next round of changes. llvm-svn: 135219
* Fix LLVM target initialization to deal with sociopathic outside projectsEric Christopher2010-08-301-8/+3
| | | | | | | | | | | that like to randomly define things like "X86", regenerate autoconf bits and update cmake. Fixes PR7852. Patch by Xerxes Rånby! llvm-svn: 112499
* Fix PR7809 by creating a header for just llvm variables that can beEric Christopher2010-08-081-18/+18
| | | | | | included in exported interfaces. Update a couple of exported interfaces. llvm-svn: 110532
* 80 columns.Eric Christopher2010-07-121-1/+2
| | | | llvm-svn: 108126
* add some more (void)'s to prototypes for PR6961Chris Lattner2010-04-291-3/+3
| | | | llvm-svn: 102667
* declare targets with (void) instead of () since this is a C header.Chris Lattner2010-04-281-2/+2
| | | | | | Patch by Lars R in PR6961. llvm-svn: 102523
* hopefully unbreak the ocaml bindings.Chris Lattner2010-01-091-1/+1
| | | | llvm-svn: 93082
* "In order to ease automatic bindings generation, it would be helpful if ↵Chris Lattner2010-01-091-3/+2
| | | | | | | | 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
* improve compatibility with SWIG, patch by James Knight!Chris Lattner2009-12-211-1/+5
| | | | llvm-svn: 91822
* Add LLVMInitializeAllTargetInfos for C api, and updateDaniel Dunbar2009-08-181-1/+14
| | | | | | | LLVMInitializeNativeTarget to initialize target info. - Patch by Jose Fonseca. llvm-svn: 79307
* 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
* 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
* Rename getABITypeSize to getTypePaddedSize, asDuncan Sands2009-01-121-1/+1
| | | | | | suggested by Chris. llvm-svn: 62099
* C and Objective Caml bindings for the TargetData class.Gordon Henriksen2008-03-161-0/+131
llvm-svn: 48422
OpenPOWER on IntegriCloud