Eric Christopher | f24446d | 2010-08-08 02:44:17 +0000 | [diff] [blame] | 1 | /*===-- llvm-c/Target.h - Target Lib C Iface --------------------*- C++ -*-===*/ |
| 2 | /* */ |
| 3 | /* The LLVM Compiler Infrastructure */ |
| 4 | /* */ |
| 5 | /* This file is distributed under the University of Illinois Open Source */ |
| 6 | /* License. See LICENSE.TXT for details. */ |
| 7 | /* */ |
| 8 | /*===----------------------------------------------------------------------===*/ |
| 9 | /* */ |
| 10 | /* This header declares the C interface to libLLVMTarget.a, which */ |
| 11 | /* implements target information. */ |
| 12 | /* */ |
| 13 | /* Many exotic languages can interoperate with C code but have a harder time */ |
| 14 | /* with C++ due to name mangling. So in addition to C, this interface enables */ |
| 15 | /* tools written in such languages. */ |
| 16 | /* */ |
| 17 | /*===----------------------------------------------------------------------===*/ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 18 | |
| 19 | #ifndef LLVM_C_TARGET_H |
| 20 | #define LLVM_C_TARGET_H |
| 21 | |
| 22 | #include "llvm-c/Core.h" |
Eric Christopher | f24446d | 2010-08-08 02:44:17 +0000 | [diff] [blame] | 23 | #include "llvm/Config/llvm-config.h" |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 24 | |
NAKAMURA Takumi | fb9c241 | 2013-10-23 17:56:52 +0000 | [diff] [blame^] | 25 | #if defined(_MSC_VER) && !defined(inline) |
| 26 | #define inline __inline |
| 27 | #endif |
| 28 | |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 29 | #ifdef __cplusplus |
| 30 | extern "C" { |
| 31 | #endif |
| 32 | |
Gregory Szorc | 34c863a | 2012-03-21 03:54:29 +0000 | [diff] [blame] | 33 | /** |
| 34 | * @defgroup LLVMCTarget Target information |
| 35 | * @ingroup LLVMC |
| 36 | * |
| 37 | * @{ |
| 38 | */ |
| 39 | |
Chris Lattner | 25963c6 | 2010-01-09 22:27:07 +0000 | [diff] [blame] | 40 | enum LLVMByteOrdering { LLVMBigEndian, LLVMLittleEndian }; |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 41 | |
| 42 | typedef struct LLVMOpaqueTargetData *LLVMTargetDataRef; |
Rafael Espindola | e96fd5a | 2011-07-25 21:20:54 +0000 | [diff] [blame] | 43 | typedef struct LLVMOpaqueTargetLibraryInfotData *LLVMTargetLibraryInfoRef; |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 44 | typedef struct LLVMStructLayout *LLVMStructLayoutRef; |
| 45 | |
Bob Wilson | 5a495fe | 2009-06-23 23:59:40 +0000 | [diff] [blame] | 46 | /* Declare all of the target-initialization functions that are available. */ |
Eric Christopher | 135de90 | 2010-07-12 05:13:35 +0000 | [diff] [blame] | 47 | #define LLVM_TARGET(TargetName) \ |
| 48 | void LLVMInitialize##TargetName##TargetInfo(void); |
Daniel Dunbar | f4e7b6c | 2009-08-18 03:03:27 +0000 | [diff] [blame] | 49 | #include "llvm/Config/Targets.def" |
Chris Lattner | a0a51c7 | 2009-12-21 07:52:40 +0000 | [diff] [blame] | 50 | #undef LLVM_TARGET /* Explicit undef to make SWIG happier */ |
NAKAMURA Takumi | a3a8135 | 2013-10-23 17:56:29 +0000 | [diff] [blame] | 51 | |
Chris Lattner | ee3576e | 2010-04-28 20:24:45 +0000 | [diff] [blame] | 52 | #define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##Target(void); |
Bob Wilson | 5a495fe | 2009-06-23 23:59:40 +0000 | [diff] [blame] | 53 | #include "llvm/Config/Targets.def" |
Chris Lattner | a0a51c7 | 2009-12-21 07:52:40 +0000 | [diff] [blame] | 54 | #undef LLVM_TARGET /* Explicit undef to make SWIG happier */ |
Bob Wilson | 5a495fe | 2009-06-23 23:59:40 +0000 | [diff] [blame] | 55 | |
Evan Cheng | 1705ab0 | 2011-07-14 23:50:31 +0000 | [diff] [blame] | 56 | #define LLVM_TARGET(TargetName) \ |
Evan Cheng | 8c886a4 | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 57 | void LLVMInitialize##TargetName##TargetMC(void); |
Evan Cheng | 2129f59 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 58 | #include "llvm/Config/Targets.def" |
| 59 | #undef LLVM_TARGET /* Explicit undef to make SWIG happier */ |
NAKAMURA Takumi | a3a8135 | 2013-10-23 17:56:29 +0000 | [diff] [blame] | 60 | |
Daniel Dunbar | 69987ab | 2011-11-29 00:06:55 +0000 | [diff] [blame] | 61 | /* Declare all of the available assembly printer initialization functions. */ |
| 62 | #define LLVM_ASM_PRINTER(TargetName) \ |
Anders Waldenborg | 38ce861 | 2012-05-02 16:15:32 +0000 | [diff] [blame] | 63 | void LLVMInitialize##TargetName##AsmPrinter(void); |
Daniel Dunbar | 69987ab | 2011-11-29 00:06:55 +0000 | [diff] [blame] | 64 | #include "llvm/Config/AsmPrinters.def" |
Bill Wendling | 12a98c9 | 2012-03-26 22:15:12 +0000 | [diff] [blame] | 65 | #undef LLVM_ASM_PRINTER /* Explicit undef to make SWIG happier */ |
Daniel Dunbar | 69987ab | 2011-11-29 00:06:55 +0000 | [diff] [blame] | 66 | |
| 67 | /* Declare all of the available assembly parser initialization functions. */ |
| 68 | #define LLVM_ASM_PARSER(TargetName) \ |
Anders Waldenborg | 38ce861 | 2012-05-02 16:15:32 +0000 | [diff] [blame] | 69 | void LLVMInitialize##TargetName##AsmParser(void); |
Daniel Dunbar | 69987ab | 2011-11-29 00:06:55 +0000 | [diff] [blame] | 70 | #include "llvm/Config/AsmParsers.def" |
Bill Wendling | 12a98c9 | 2012-03-26 22:15:12 +0000 | [diff] [blame] | 71 | #undef LLVM_ASM_PARSER /* Explicit undef to make SWIG happier */ |
Daniel Dunbar | 69987ab | 2011-11-29 00:06:55 +0000 | [diff] [blame] | 72 | |
| 73 | /* Declare all of the available disassembler initialization functions. */ |
| 74 | #define LLVM_DISASSEMBLER(TargetName) \ |
Anders Waldenborg | 38ce861 | 2012-05-02 16:15:32 +0000 | [diff] [blame] | 75 | void LLVMInitialize##TargetName##Disassembler(void); |
Daniel Dunbar | 69987ab | 2011-11-29 00:06:55 +0000 | [diff] [blame] | 76 | #include "llvm/Config/Disassemblers.def" |
Bill Wendling | 12a98c9 | 2012-03-26 22:15:12 +0000 | [diff] [blame] | 77 | #undef LLVM_DISASSEMBLER /* Explicit undef to make SWIG happier */ |
NAKAMURA Takumi | a3a8135 | 2013-10-23 17:56:29 +0000 | [diff] [blame] | 78 | |
Daniel Dunbar | f4e7b6c | 2009-08-18 03:03:27 +0000 | [diff] [blame] | 79 | /** LLVMInitializeAllTargetInfos - The main program should call this function if |
| 80 | it wants access to all available targets that LLVM is configured to |
| 81 | support. */ |
Anders Waldenborg | 0c3b653 | 2013-10-15 13:04:27 +0000 | [diff] [blame] | 82 | static inline void LLVMInitializeAllTargetInfos(void) { |
| 83 | #define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo(); |
| 84 | #include "llvm/Config/Targets.def" |
| 85 | #undef LLVM_TARGET /* Explicit undef to make SWIG happier */ |
| 86 | } |
Daniel Dunbar | f4e7b6c | 2009-08-18 03:03:27 +0000 | [diff] [blame] | 87 | |
Bob Wilson | 5a495fe | 2009-06-23 23:59:40 +0000 | [diff] [blame] | 88 | /** LLVMInitializeAllTargets - The main program should call this function if it |
| 89 | wants to link in all available targets that LLVM is configured to |
| 90 | support. */ |
Anders Waldenborg | 0c3b653 | 2013-10-15 13:04:27 +0000 | [diff] [blame] | 91 | static inline void LLVMInitializeAllTargets(void) { |
| 92 | #define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##Target(); |
| 93 | #include "llvm/Config/Targets.def" |
| 94 | #undef LLVM_TARGET /* Explicit undef to make SWIG happier */ |
| 95 | } |
Daniel Dunbar | 69987ab | 2011-11-29 00:06:55 +0000 | [diff] [blame] | 96 | |
| 97 | /** LLVMInitializeAllTargetMCs - The main program should call this function if |
| 98 | it wants access to all available target MC that LLVM is configured to |
| 99 | support. */ |
Anders Waldenborg | 0c3b653 | 2013-10-15 13:04:27 +0000 | [diff] [blame] | 100 | static inline void LLVMInitializeAllTargetMCs(void) { |
| 101 | #define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC(); |
| 102 | #include "llvm/Config/Targets.def" |
| 103 | #undef LLVM_TARGET /* Explicit undef to make SWIG happier */ |
| 104 | } |
NAKAMURA Takumi | a3a8135 | 2013-10-23 17:56:29 +0000 | [diff] [blame] | 105 | |
Daniel Dunbar | 69987ab | 2011-11-29 00:06:55 +0000 | [diff] [blame] | 106 | /** LLVMInitializeAllAsmPrinters - The main program should call this function if |
| 107 | it wants all asm printers that LLVM is configured to support, to make them |
| 108 | available via the TargetRegistry. */ |
Anders Waldenborg | 0c3b653 | 2013-10-15 13:04:27 +0000 | [diff] [blame] | 109 | static inline void LLVMInitializeAllAsmPrinters(void) { |
| 110 | #define LLVM_ASM_PRINTER(TargetName) LLVMInitialize##TargetName##AsmPrinter(); |
| 111 | #include "llvm/Config/AsmPrinters.def" |
| 112 | #undef LLVM_ASM_PRINTER /* Explicit undef to make SWIG happier */ |
| 113 | } |
NAKAMURA Takumi | a3a8135 | 2013-10-23 17:56:29 +0000 | [diff] [blame] | 114 | |
Daniel Dunbar | 69987ab | 2011-11-29 00:06:55 +0000 | [diff] [blame] | 115 | /** LLVMInitializeAllAsmParsers - The main program should call this function if |
| 116 | it wants all asm parsers that LLVM is configured to support, to make them |
| 117 | available via the TargetRegistry. */ |
Anders Waldenborg | 0c3b653 | 2013-10-15 13:04:27 +0000 | [diff] [blame] | 118 | static inline void LLVMInitializeAllAsmParsers(void) { |
| 119 | #define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser(); |
| 120 | #include "llvm/Config/AsmParsers.def" |
| 121 | #undef LLVM_ASM_PARSER /* Explicit undef to make SWIG happier */ |
| 122 | } |
NAKAMURA Takumi | a3a8135 | 2013-10-23 17:56:29 +0000 | [diff] [blame] | 123 | |
Daniel Dunbar | 69987ab | 2011-11-29 00:06:55 +0000 | [diff] [blame] | 124 | /** LLVMInitializeAllDisassemblers - The main program should call this function |
| 125 | if it wants all disassemblers that LLVM is configured to support, to make |
| 126 | them available via the TargetRegistry. */ |
Anders Waldenborg | 0c3b653 | 2013-10-15 13:04:27 +0000 | [diff] [blame] | 127 | static inline void LLVMInitializeAllDisassemblers(void) { |
| 128 | #define LLVM_DISASSEMBLER(TargetName) \ |
| 129 | LLVMInitialize##TargetName##Disassembler(); |
| 130 | #include "llvm/Config/Disassemblers.def" |
| 131 | #undef LLVM_DISASSEMBLER /* Explicit undef to make SWIG happier */ |
| 132 | } |
NAKAMURA Takumi | a3a8135 | 2013-10-23 17:56:29 +0000 | [diff] [blame] | 133 | |
Bob Wilson | 5a495fe | 2009-06-23 23:59:40 +0000 | [diff] [blame] | 134 | /** LLVMInitializeNativeTarget - The main program should call this function to |
NAKAMURA Takumi | a3a8135 | 2013-10-23 17:56:29 +0000 | [diff] [blame] | 135 | initialize the native target corresponding to the host. This is useful |
Bob Wilson | 5a495fe | 2009-06-23 23:59:40 +0000 | [diff] [blame] | 136 | for JIT applications to ensure that the target gets linked in correctly. */ |
Chris Lattner | 9d18647 | 2010-04-29 23:27:32 +0000 | [diff] [blame] | 137 | static inline LLVMBool LLVMInitializeNativeTarget(void) { |
Bob Wilson | 5a495fe | 2009-06-23 23:59:40 +0000 | [diff] [blame] | 138 | /* If we have a native target, initialize it to ensure it is linked in. */ |
Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 139 | #ifdef LLVM_NATIVE_TARGET |
| 140 | LLVM_NATIVE_TARGETINFO(); |
| 141 | LLVM_NATIVE_TARGET(); |
Evan Cheng | 8c886a4 | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 142 | LLVM_NATIVE_TARGETMC(); |
Bob Wilson | 5a495fe | 2009-06-23 23:59:40 +0000 | [diff] [blame] | 143 | return 0; |
Bob Wilson | 5a495fe | 2009-06-23 23:59:40 +0000 | [diff] [blame] | 144 | #else |
| 145 | return 1; |
| 146 | #endif |
NAKAMURA Takumi | a3a8135 | 2013-10-23 17:56:29 +0000 | [diff] [blame] | 147 | } |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 148 | |
| 149 | /*===-- Target Data -------------------------------------------------------===*/ |
| 150 | |
| 151 | /** Creates target data from a target layout string. |
Micah Villmow | cdfe20b | 2012-10-08 16:38:25 +0000 | [diff] [blame] | 152 | See the constructor llvm::DataLayout::DataLayout. */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 153 | LLVMTargetDataRef LLVMCreateTargetData(const char *StringRep); |
| 154 | |
| 155 | /** Adds target data information to a pass manager. This does not take ownership |
| 156 | of the target data. |
| 157 | See the method llvm::PassManagerBase::add. */ |
| 158 | void LLVMAddTargetData(LLVMTargetDataRef, LLVMPassManagerRef); |
| 159 | |
Rafael Espindola | e96fd5a | 2011-07-25 21:20:54 +0000 | [diff] [blame] | 160 | /** Adds target library information to a pass manager. This does not take |
| 161 | ownership of the target library info. |
| 162 | See the method llvm::PassManagerBase::add. */ |
| 163 | void LLVMAddTargetLibraryInfo(LLVMTargetLibraryInfoRef, LLVMPassManagerRef); |
| 164 | |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 165 | /** Converts target data to a target layout string. The string must be disposed |
| 166 | with LLVMDisposeMessage. |
Micah Villmow | cdfe20b | 2012-10-08 16:38:25 +0000 | [diff] [blame] | 167 | See the constructor llvm::DataLayout::DataLayout. */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 168 | char *LLVMCopyStringRepOfTargetData(LLVMTargetDataRef); |
| 169 | |
| 170 | /** Returns the byte order of a target, either LLVMBigEndian or |
| 171 | LLVMLittleEndian. |
Micah Villmow | cdfe20b | 2012-10-08 16:38:25 +0000 | [diff] [blame] | 172 | See the method llvm::DataLayout::isLittleEndian. */ |
Chris Lattner | 51c4996 | 2010-01-09 23:25:21 +0000 | [diff] [blame] | 173 | enum LLVMByteOrdering LLVMByteOrder(LLVMTargetDataRef); |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 174 | |
| 175 | /** Returns the pointer size in bytes for a target. |
Micah Villmow | cdfe20b | 2012-10-08 16:38:25 +0000 | [diff] [blame] | 176 | See the method llvm::DataLayout::getPointerSize. */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 177 | unsigned LLVMPointerSize(LLVMTargetDataRef); |
| 178 | |
Micah Villmow | 4bb926d | 2012-10-15 16:24:29 +0000 | [diff] [blame] | 179 | /** Returns the pointer size in bytes for a target for a specified |
| 180 | address space. |
| 181 | See the method llvm::DataLayout::getPointerSize. */ |
| 182 | unsigned LLVMPointerSizeForAS(LLVMTargetDataRef, unsigned AS); |
| 183 | |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 184 | /** Returns the integer type that is the same size as a pointer on a target. |
Micah Villmow | cdfe20b | 2012-10-08 16:38:25 +0000 | [diff] [blame] | 185 | See the method llvm::DataLayout::getIntPtrType. */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 186 | LLVMTypeRef LLVMIntPtrType(LLVMTargetDataRef); |
| 187 | |
Micah Villmow | 4bb926d | 2012-10-15 16:24:29 +0000 | [diff] [blame] | 188 | /** Returns the integer type that is the same size as a pointer on a target. |
| 189 | This version allows the address space to be specified. |
| 190 | See the method llvm::DataLayout::getIntPtrType. */ |
| 191 | LLVMTypeRef LLVMIntPtrTypeForAS(LLVMTargetDataRef, unsigned AS); |
| 192 | |
Anders Waldenborg | 959f040 | 2013-10-17 18:51:01 +0000 | [diff] [blame] | 193 | /** Returns the integer type that is the same size as a pointer on a target. |
| 194 | See the method llvm::DataLayout::getIntPtrType. */ |
| 195 | LLVMTypeRef LLVMIntPtrTypeInContext(LLVMContextRef, LLVMTargetDataRef); |
| 196 | |
| 197 | /** Returns the integer type that is the same size as a pointer on a target. |
| 198 | This version allows the address space to be specified. |
| 199 | See the method llvm::DataLayout::getIntPtrType. */ |
| 200 | LLVMTypeRef LLVMIntPtrTypeForASInContext(LLVMContextRef, LLVMTargetDataRef, unsigned AS); |
| 201 | |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 202 | /** Computes the size of a type in bytes for a target. |
Micah Villmow | cdfe20b | 2012-10-08 16:38:25 +0000 | [diff] [blame] | 203 | See the method llvm::DataLayout::getTypeSizeInBits. */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 204 | unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef, LLVMTypeRef); |
| 205 | |
| 206 | /** Computes the storage size of a type in bytes for a target. |
Micah Villmow | cdfe20b | 2012-10-08 16:38:25 +0000 | [diff] [blame] | 207 | See the method llvm::DataLayout::getTypeStoreSize. */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 208 | unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef, LLVMTypeRef); |
| 209 | |
| 210 | /** Computes the ABI size of a type in bytes for a target. |
Micah Villmow | cdfe20b | 2012-10-08 16:38:25 +0000 | [diff] [blame] | 211 | See the method llvm::DataLayout::getTypeAllocSize. */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 212 | unsigned long long LLVMABISizeOfType(LLVMTargetDataRef, LLVMTypeRef); |
| 213 | |
| 214 | /** Computes the ABI alignment of a type in bytes for a target. |
Micah Villmow | cdfe20b | 2012-10-08 16:38:25 +0000 | [diff] [blame] | 215 | See the method llvm::DataLayout::getTypeABISize. */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 216 | unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef, LLVMTypeRef); |
| 217 | |
| 218 | /** Computes the call frame alignment of a type in bytes for a target. |
Micah Villmow | cdfe20b | 2012-10-08 16:38:25 +0000 | [diff] [blame] | 219 | See the method llvm::DataLayout::getTypeABISize. */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 220 | unsigned LLVMCallFrameAlignmentOfType(LLVMTargetDataRef, LLVMTypeRef); |
| 221 | |
| 222 | /** Computes the preferred alignment of a type in bytes for a target. |
Micah Villmow | cdfe20b | 2012-10-08 16:38:25 +0000 | [diff] [blame] | 223 | See the method llvm::DataLayout::getTypeABISize. */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 224 | unsigned LLVMPreferredAlignmentOfType(LLVMTargetDataRef, LLVMTypeRef); |
| 225 | |
| 226 | /** Computes the preferred alignment of a global variable in bytes for a target. |
Micah Villmow | cdfe20b | 2012-10-08 16:38:25 +0000 | [diff] [blame] | 227 | See the method llvm::DataLayout::getPreferredAlignment. */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 228 | unsigned LLVMPreferredAlignmentOfGlobal(LLVMTargetDataRef, |
| 229 | LLVMValueRef GlobalVar); |
| 230 | |
| 231 | /** Computes the structure element that contains the byte offset for a target. |
| 232 | See the method llvm::StructLayout::getElementContainingOffset. */ |
| 233 | unsigned LLVMElementAtOffset(LLVMTargetDataRef, LLVMTypeRef StructTy, |
| 234 | unsigned long long Offset); |
| 235 | |
| 236 | /** Computes the byte offset of the indexed struct element for a target. |
| 237 | See the method llvm::StructLayout::getElementContainingOffset. */ |
| 238 | unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef, LLVMTypeRef StructTy, |
| 239 | unsigned Element); |
| 240 | |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 241 | /** Deallocates a TargetData. |
Micah Villmow | cdfe20b | 2012-10-08 16:38:25 +0000 | [diff] [blame] | 242 | See the destructor llvm::DataLayout::~DataLayout. */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 243 | void LLVMDisposeTargetData(LLVMTargetDataRef); |
| 244 | |
Gregory Szorc | 34c863a | 2012-03-21 03:54:29 +0000 | [diff] [blame] | 245 | /** |
| 246 | * @} |
| 247 | */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 248 | |
| 249 | #ifdef __cplusplus |
| 250 | } |
Evan Cheng | 2e254d0 | 2013-04-04 17:40:53 +0000 | [diff] [blame] | 251 | #endif /* defined(__cplusplus) */ |
Gordon Henriksen | ab4b7d3 | 2008-03-16 20:08:03 +0000 | [diff] [blame] | 252 | |
| 253 | #endif |