Deleted Added
full compact
Target.h (198090) Target.h (201360)
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"
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
38#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
39
39#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##Target();
40#include "llvm/Config/Targets.def"
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 */
41
42/** LLVMInitializeAllTargetInfos - The main program should call this function if
43 it wants access to all available targets that LLVM is configured to
44 support. */
45static inline void LLVMInitializeAllTargetInfos() {
46#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
47#include "llvm/Config/Targets.def"
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 */
48}
49
50/** LLVMInitializeAllTargets - The main program should call this function if it
51 wants to link in all available targets that LLVM is configured to
52 support. */
53static inline void LLVMInitializeAllTargets() {
54#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##Target();
55#include "llvm/Config/Targets.def"
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 */
56}
57
58/** LLVMInitializeNativeTarget - The main program should call this function to
59 initialize the native target corresponding to the host. This is useful
60 for JIT applications to ensure that the target gets linked in correctly. */
61static inline int LLVMInitializeNativeTarget() {
62 /* If we have a native target, initialize it to ensure it is linked in. */
63#ifdef LLVM_NATIVE_ARCH

--- 110 unchanged lines hidden ---
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 ---