OSDN Git Service

android: Fix out-of-tree clang build due to sysexits change
[android-x86/external-llvm-project.git] / llvm / include / llvm / Config / llvm-platform-config.h
1 #ifndef LLVM_NATIVE_CONFIG_H
2
3 /*===-- llvm/config/llvm-native-config.h --------------------------*- C -*-===*/
4 /*                                                                            */
5 /*                     The LLVM Compiler Infrastructure                       */
6 /*                                                                            */
7 /* This file is distributed under the University of Illinois Open Source      */
8 /* License. See LICENSE.TXT for details.                                      */
9 /*                                                                            */
10 /*===----------------------------------------------------------------------===*/
11
12 #if defined(__i386__) || defined(__x86_64__)
13
14 /* LLVM architecture name for the native architecture, if available */
15 #define LLVM_NATIVE_ARCH X86
16
17 /* Host triple LLVM will be executed on */
18 #define LLVM_HOST_TRIPLE "i686-unknown-linux-gnu"
19
20 /* LLVM name for the native AsmParser init function, if available */
21 #define LLVM_NATIVE_ASMPARSER LLVMInitializeX86AsmParser
22
23 /* LLVM name for the native AsmPrinter init function, if available */
24 #define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter
25
26 /* LLVM name for the native Disassembler init function, if available */
27 #define LLVM_NATIVE_DISASSEMBLER LLVMInitializeX86Disassembler
28
29 /* LLVM name for the native Target init function, if available */
30 #define LLVM_NATIVE_TARGET LLVMInitializeX86Target
31
32 /* LLVM name for the native TargetInfo init function, if available */
33 #define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo
34
35 /* LLVM name for the native target MC init function, if available */
36 #define LLVM_NATIVE_TARGETMC LLVMInitializeX86TargetMC
37
38
39 #elif defined(__arm__)
40
41 /* LLVM architecture name for the native architecture, if available */
42 #define LLVM_NATIVE_ARCH ARM
43
44 /* Host triple LLVM will be executed on */
45 #define LLVM_HOST_TRIPLE "arm-unknown-linux-gnu"
46
47 /* LLVM name for the native AsmParser init function, if available */
48 #define LLVM_NATIVE_ASMPARSER LLVMInitializeARMAsmParser
49
50 /* LLVM name for the native AsmPrinter init function, if available */
51 #define LLVM_NATIVE_ASMPRINTER LLVMInitializeARMAsmPrinter
52
53 /* LLVM name for the native Disassembler init function, if available */
54 #define LLVM_NATIVE_DISASSEMBLER LLVMInitializeARMDisassembler
55
56 /* LLVM name for the native Target init function, if available */
57 #define LLVM_NATIVE_TARGET LLVMInitializeARMTarget
58
59 /* LLVM name for the native TargetInfo init function, if available */
60 #define LLVM_NATIVE_TARGETINFO LLVMInitializeARMTargetInfo
61
62 /* LLVM name for the native target MC init function, if available */
63 #define LLVM_NATIVE_TARGETMC LLVMInitializeARMTargetMC
64
65
66 #elif defined(__mips__)
67
68 /* LLVM architecture name for the native architecture, if available */
69 #define LLVM_NATIVE_ARCH Mips
70
71 /* Host triple LLVM will be executed on */
72 #define LLVM_HOST_TRIPLE "mipsel-unknown-linux-gnu"
73
74 /* LLVM name for the native AsmParser init function, if available */
75 #define LLVM_NATIVE_ASMPARSER LLVMInitializeMipsAsmParser
76
77 /* LLVM name for the native AsmPrinter init function, if available */
78 #define LLVM_NATIVE_ASMPRINTER LLVMInitializeMipsAsmPrinter
79
80 /* LLVM name for the native Disassembler init function, if available */
81 #define LLVM_NATIVE_DISASSEMBLER LLVMInitializeMipsDisassembler
82
83 /* LLVM name for the native Target init function, if available */
84 #define LLVM_NATIVE_TARGET LLVMInitializeMipsTarget
85
86 /* LLVM name for the native TargetInfo init function, if available */
87 #define LLVM_NATIVE_TARGETINFO LLVMInitializeMipsTargetInfo
88
89 /* LLVM name for the native target MC init function, if available */
90 #define LLVM_NATIVE_TARGETMC LLVMInitializeMipsTargetMC
91
92 #elif defined(__aarch64__)
93
94 /* LLVM architecture name for the native architecture, if available */
95 #define LLVM_NATIVE_ARCH AArch64
96
97 /* Host triple LLVM will be executed on */
98 #define LLVM_HOST_TRIPLE "aarch64-none-linux-gnu"
99
100 /* LLVM name for the native AsmParser init function, if available */
101 #define LLVM_NATIVE_ASMPARSER LLVMInitializeAArch64AsmParser
102
103 /* LLVM name for the native AsmPrinter init function, if available */
104 #define LLVM_NATIVE_ASMPRINTER LLVMInitializeAArch64AsmPrinter
105
106 /* LLVM name for the native Disassembler init function, if available */
107 #define LLVM_NATIVE_DISASSEMBLER LLVMInitializeAArch64Disassembler
108
109 /* LLVM name for the native Target init function, if available */
110 #define LLVM_NATIVE_TARGET LLVMInitializeAArch64Target
111
112 /* LLVM name for the native TargetInfo init function, if available */
113 #define LLVM_NATIVE_TARGETINFO LLVMInitializeAArch64TargetInfo
114
115 /* LLVM name for the native target MC init function, if available */
116 #define LLVM_NATIVE_TARGETMC LLVMInitializeAArch64TargetMC
117
118 #else
119
120 #error "Unknown native architecture"
121
122 #endif
123
124
125
126 #if defined(_WIN32) || defined(_WIN64)
127
128 /* Define if this is Unixish platform */
129 /* #undef LLVM_ON_UNIX */
130
131 /* Define if this is Win32ish platform */
132 #define LLVM_ON_WIN32 1
133
134 /* Define to 1 if you have the <windows.h> header file. */
135 #define HAVE_WINDOWS_H 1
136
137 /* Define to 1 if you have the `psapi' library (-lpsapi). */
138 #define HAVE_LIBPSAPI 1
139
140 /* Define to 1 if you have the `imagehlp' library (-limagehlp). */
141 #define HAVE_LIBIMAGEHLP 1
142
143 /* Type of 1st arg on ELM Callback */
144 #define WIN32_ELMCB_PCSTR PCSTR
145
146
147 #else /* Linux, Mac OS X, ... Unixish platform */
148
149 /* Define if this is Unixish platform */
150 #define LLVM_ON_UNIX 1
151
152 /* Define to 1 if you have the <sysexits.h> header file. */
153 #define HAVE_SYSEXITS_H 1
154
155 /* Define if this is Win32ish platform */
156 /* #undef LLVM_ON_WIN32 */
157
158 /* Type of 1st arg on ELM Callback */
159 /* #undef WIN32_ELMCB_PCSTR */
160
161 #endif
162
163 #endif // LLVM_NATIVE_CONFIG_H