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|*===----------------------------------------------------------------------===*| --- 21 unchanged lines hidden (view full) --- 30typedef int LLVMByteOrdering; 31 32typedef struct LLVMOpaqueTargetData *LLVMTargetDataRef; 33typedef struct LLVMStructLayout *LLVMStructLayoutRef; 34 35/* Declare all of the target-initialization functions that are available. */ 36#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##TargetInfo(); 37#include "llvm/Config/Targets.def" |
38#undef LLVM_TARGET /* Explicit undef to make SWIG happier */ 39 |
40#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##Target(); 41#include "llvm/Config/Targets.def" |
42#undef LLVM_TARGET /* Explicit undef to make SWIG happier */ |
43 44/** LLVMInitializeAllTargetInfos - The main program should call this function if 45 it wants access to all available targets that LLVM is configured to 46 support. */ 47static inline void LLVMInitializeAllTargetInfos() { 48#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo(); 49#include "llvm/Config/Targets.def" |
50#undef LLVM_TARGET /* Explicit undef to make SWIG happier */ |
51} 52 53/** LLVMInitializeAllTargets - The main program should call this function if it 54 wants to link in all available targets that LLVM is configured to 55 support. */ 56static inline void LLVMInitializeAllTargets() { 57#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##Target(); 58#include "llvm/Config/Targets.def" |
59#undef LLVM_TARGET /* Explicit undef to make SWIG happier */ |
60} 61 62/** LLVMInitializeNativeTarget - The main program should call this function to 63 initialize the native target corresponding to the host. This is useful 64 for JIT applications to ensure that the target gets linked in correctly. */ 65static inline int LLVMInitializeNativeTarget() { 66 /* If we have a native target, initialize it to ensure it is linked in. */ 67#ifdef LLVM_NATIVE_ARCH --- 110 unchanged lines hidden --- |