1 From 75d1e0c4b102d6c244e10b83427ca5a52b89cab6 Mon Sep 17 00:00:00 2001
2 From: Tim Murray <timmurray@google.com>
3 Date: Thu, 27 Mar 2014 14:04:43 -0700
4 Subject: [PATCH 2/5] Add basic Android configuration.
6 Change-Id: I0102d75a076e96e15606cbecc86b069c0fc43bf1
8 device/include/llvm/Config/AsmParsers.def | 39 ++
9 device/include/llvm/Config/AsmPrinters.def | 39 ++
10 device/include/llvm/Config/Disassemblers.def | 39 ++
11 device/include/llvm/Config/Targets.def | 38 ++
12 device/include/llvm/Config/config.h | 689 +++++++++++++++++++++++++
13 device/include/llvm/Config/llvm-config.h | 94 ++++
14 host/include/llvm/Config/AsmParsers.def | 32 ++
15 host/include/llvm/Config/AsmPrinters.def | 32 ++
16 host/include/llvm/Config/Disassemblers.def | 32 ++
17 host/include/llvm/Config/Targets.def | 31 ++
18 host/include/llvm/Config/config.h | 725 +++++++++++++++++++++++++++
19 host/include/llvm/Config/llvm-config.h | 102 ++++
20 include/llvm/Config/llvm-platform-config.h | 160 ++++++
21 include/llvm/Support/DataTypes.h | 213 ++++++++
22 14 files changed, 2265 insertions(+)
23 create mode 100644 device/include/llvm/Config/AsmParsers.def
24 create mode 100644 device/include/llvm/Config/AsmPrinters.def
25 create mode 100644 device/include/llvm/Config/Disassemblers.def
26 create mode 100644 device/include/llvm/Config/Targets.def
27 create mode 100644 device/include/llvm/Config/config.h
28 create mode 100644 device/include/llvm/Config/llvm-config.h
29 create mode 100644 host/include/llvm/Config/AsmParsers.def
30 create mode 100644 host/include/llvm/Config/AsmPrinters.def
31 create mode 100644 host/include/llvm/Config/Disassemblers.def
32 create mode 100644 host/include/llvm/Config/Targets.def
33 create mode 100644 host/include/llvm/Config/config.h
34 create mode 100644 host/include/llvm/Config/llvm-config.h
35 create mode 100644 include/llvm/Config/llvm-platform-config.h
36 create mode 100644 include/llvm/Support/DataTypes.h
38 diff --git a/device/include/llvm/Config/AsmParsers.def b/device/include/llvm/Config/AsmParsers.def
40 index 0000000..ca3af2c
42 +++ b/device/include/llvm/Config/AsmParsers.def
44 +//===- llvm/Config/AsmParsers.def - LLVM Assembly Parsers -------*- C++ -*-===//
46 +// The LLVM Compiler Infrastructure
48 +// This file is distributed under the University of Illinois Open Source
49 +// License. See LICENSE.TXT for details.
51 +//===----------------------------------------------------------------------===//
53 +// This file enumerates all of the assembly-language parsers
54 +// supported by this build of LLVM. Clients of this file should define
55 +// the LLVM_ASM_PARSER macro to be a function-like macro with a
56 +// single parameter (the name of the target whose assembly can be
57 +// generated); including this file will then enumerate all of the
58 +// targets with assembly parsers.
60 +// The set of targets supported by LLVM is generated at configuration
61 +// time, at which point this header is generated. Do not modify this
64 +//===----------------------------------------------------------------------===//
66 +#ifndef LLVM_ASM_PARSER
67 +# error Please define the macro LLVM_ASM_PARSER(TargetName)
71 + LLVM_ASM_PARSER(ARM)
72 +#elif defined(__mips__)
73 + LLVM_ASM_PARSER(Mips)
74 +#elif defined(__i386__) || defined(__x86_64__)
75 + LLVM_ASM_PARSER(X86)
76 +#elif defined(__aarch64__)
77 + LLVM_ASM_PARSER(AArch64)
79 +# error Unsupported TARGET_ARCH for LLVM_ASM_PARSER
82 +#undef LLVM_ASM_PARSER
83 diff --git a/device/include/llvm/Config/AsmPrinters.def b/device/include/llvm/Config/AsmPrinters.def
85 index 0000000..3a396c2
87 +++ b/device/include/llvm/Config/AsmPrinters.def
89 +//===- llvm/Config/AsmPrinters.def - LLVM Assembly Printers -----*- C++ -*-===//
91 +// The LLVM Compiler Infrastructure
93 +// This file is distributed under the University of Illinois Open Source
94 +// License. See LICENSE.TXT for details.
96 +//===----------------------------------------------------------------------===//
98 +// This file enumerates all of the assembly-language printers
99 +// supported by this build of LLVM. Clients of this file should define
100 +// the LLVM_ASM_PRINTER macro to be a function-like macro with a
101 +// single parameter (the name of the target whose assembly can be
102 +// generated); including this file will then enumerate all of the
103 +// targets with assembly printers.
105 +// The set of targets supported by LLVM is generated at configuration
106 +// time, at which point this header is generated. Do not modify this
109 +//===----------------------------------------------------------------------===//
111 +#ifndef LLVM_ASM_PRINTER
112 +# error Please define the macro LLVM_ASM_PRINTER(TargetName)
115 +#if defined(__arm__)
116 + LLVM_ASM_PRINTER(ARM)
117 +#elif defined(__mips__)
118 + LLVM_ASM_PRINTER(Mips)
119 +#elif defined(__i386__) || defined(__x86_64__)
120 + LLVM_ASM_PRINTER(X86)
121 +#elif defined(__aarch64__)
122 + LLVM_ASM_PRINTER(AArch64)
124 +# error Unsupported TARGET_ARCH for LLVM_ASM_PRINTER
127 +#undef LLVM_ASM_PRINTER
128 diff --git a/device/include/llvm/Config/Disassemblers.def b/device/include/llvm/Config/Disassemblers.def
130 index 0000000..aba88f8
132 +++ b/device/include/llvm/Config/Disassemblers.def
134 +//===- llvm/Config/Disassemblers.def - LLVM Assembly Parsers ----*- C++ -*-===//
136 +// The LLVM Compiler Infrastructure
138 +// This file is distributed under the University of Illinois Open Source
139 +// License. See LICENSE.TXT for details.
141 +//===----------------------------------------------------------------------===//
143 +// This file enumerates all of the assembly-language parsers
144 +// supported by this build of LLVM. Clients of this file should define
145 +// the LLVM_ASM_PARSER macro to be a function-like macro with a
146 +// single parameter (the name of the target whose assembly can be
147 +// generated); including this file will then enumerate all of the
148 +// targets with assembly parsers.
150 +// The set of targets supported by LLVM is generated at configuration
151 +// time, at which point this header is generated. Do not modify this
154 +//===----------------------------------------------------------------------===//
156 +#ifndef LLVM_DISASSEMBLER
157 +# error Please define the macro LLVM_DISASSEMBLER(TargetName)
160 +#if defined(__arm__)
161 + LLVM_DISASSEMBLER(ARM)
162 +#elif defined(__mips__)
163 + LLVM_DISASSEMBLER(Mips)
164 +#elif defined(__i386__) || defined(__x86_64__)
165 + LLVM_DISASSEMBLER(X86)
166 +#elif defined(__aarch64__)
167 + LLVM_DISASSEMBLER(AArch64)
169 +# error Unsupported TARGET_ARCH for LLVM_DISASSEMBLER
172 +#undef LLVM_DISASSEMBLER
173 diff --git a/device/include/llvm/Config/Targets.def b/device/include/llvm/Config/Targets.def
175 index 0000000..f30c81f
177 +++ b/device/include/llvm/Config/Targets.def
179 +/*===- llvm/Config/Targets.def - LLVM Target Architectures ------*- C++ -*-===*\
181 +|* The LLVM Compiler Infrastructure *|
183 +|* This file is distributed under the University of Illinois Open Source *|
184 +|* License. See LICENSE.TXT for details. *|
186 +|*===----------------------------------------------------------------------===*|
188 +|* This file enumerates all of the target architectures supported by *|
189 +|* this build of LLVM. Clients of this file should define the *|
190 +|* LLVM_TARGET macro to be a function-like macro with a single *|
191 +|* parameter (the name of the target); including this file will then *|
192 +|* enumerate all of the targets. *|
194 +|* The set of targets supported by LLVM is generated at configuration *|
195 +|* time, at which point this header is generated. Do not modify this *|
196 +|* header directly. *|
198 +\*===----------------------------------------------------------------------===*/
201 +# error Please define the macro LLVM_TARGET(TargetName)
204 +#if defined(__arm__)
206 +#elif defined(__mips__)
208 +#elif defined(__i386__) || defined(__x86_64__)
210 +#elif defined(__aarch64__)
211 + LLVM_TARGET(AArch64)
213 +# error Unsupported TARGET_ARCH for LLVM_TARGET
217 diff --git a/device/include/llvm/Config/config.h b/device/include/llvm/Config/config.h
219 index 0000000..f76132a
221 +++ b/device/include/llvm/Config/config.h
223 +/* include/llvm/Config/config.h. Generated from config.h.in by configure. */
224 +/* include/llvm/Config/config.h.in. Generated from autoconf/configure.ac by autoheader. */
229 +/* Bug report URL. */
230 +#define BUG_REPORT_URL "http://llvm.org/bugs/"
232 +/* Relative directory for resource files */
233 +#define CLANG_RESOURCE_DIR ""
235 +/* Directories clang will search for headers */
236 +#define C_INCLUDE_DIRS ""
238 +/* Default <path> to all compiler invocations for --sysroot=<path>. */
239 +#define DEFAULT_SYSROOT ""
241 +/* Define if position independent code is enabled */
242 +#define ENABLE_PIC 1
244 +/* Define if timestamp information (e.g., __DATE___) is allowed */
245 +#define ENABLE_TIMESTAMPS 1
247 +/* Directory where gcc is installed. */
248 +#define GCC_INSTALL_PREFIX ""
250 +/* Define to 1 if you have the `argz_append' function. */
251 +/* #undef HAVE_ARGZ_APPEND */
253 +/* Define to 1 if you have the `argz_create_sep' function. */
254 +/* #undef HAVE_ARGZ_CREATE_SEP */
256 +/* Define to 1 if you have the <argz.h> header file. */
257 +/* #undef HAVE_ARGZ_H */
259 +/* Define to 1 if you have the `argz_insert' function. */
260 +/* #undef HAVE_ARGZ_INSERT */
262 +/* Define to 1 if you have the `argz_next' function. */
263 +/* #undef HAVE_ARGZ_NEXT */
265 +/* Define to 1 if you have the `argz_stringify' function. */
266 +/* #undef HAVE_ARGZ_STRINGIFY */
268 +/* Define to 1 if you have the <assert.h> header file. */
269 +#define HAVE_ASSERT_H 1
271 +/* Define to 1 if you have the `backtrace' function. */
272 +#if defined(HAVE_BACKTRACE) && HAVE_BACKTRACE == 0
273 +/* Defined by AndroidConfig.h as 0 */
274 +#undef HAVE_BACKTRACE
277 +/* Define to 1 if you have the `bcopy' function. */
278 +/* #undef HAVE_BCOPY */
280 +/* Define to 1 if you have the `ceilf' function. */
281 +#define HAVE_CEILF 1
283 +/* Define if the neat program is available */
284 +/* #undef HAVE_CIRCO */
286 +/* Define to 1 if you have the `closedir' function. */
287 +#define HAVE_CLOSEDIR 1
289 +/* Define to 1 if you have the <CrashReporterClient.h> header file. */
290 +/* #undef HAVE_CRASHREPORTERCLIENT_H */
292 +/* Define if __crashreporter_info__ exists. */
293 +/* #undef HAVE_CRASHREPORTER_INFO */
295 +/* Define to 1 if you have the <ctype.h> header file. */
296 +#define HAVE_CTYPE_H 1
298 +/* Define to 1 if you have the <cxxabi.h> header file. */
299 +#define HAVE_CXXABI_H 0
301 +/* Define to 1 if you have the declaration of `strerror_s', and to 0 if you
303 +#define HAVE_DECL_STRERROR_S 0
305 +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
307 +#define HAVE_DIRENT_H 1
309 +/* Define if you have the GNU dld library. */
310 +/* #undef HAVE_DLD */
312 +/* Define to 1 if you have the <dld.h> header file. */
313 +/* #undef HAVE_DLD_H */
315 +/* Define to 1 if you have the `dlerror' function. */
316 +#define HAVE_DLERROR 1
318 +/* Define to 1 if you have the <dlfcn.h> header file. */
319 +#define HAVE_DLFCN_H 1
321 +/* Define if dlopen() is available on this platform. */
322 +#define HAVE_DLOPEN 1
324 +/* Define to 1 if you have the <dl.h> header file. */
325 +/* #undef HAVE_DL_H */
327 +/* Define if the dot program is available */
328 +/* #undef HAVE_DOT */
330 +/* Define if the dotty program is available */
331 +/* #undef HAVE_DOTTY */
333 +/* Define if you have the _dyld_func_lookup function. */
334 +/* #undef HAVE_DYLD */
336 +/* Define to 1 if you have the <errno.h> header file. */
337 +#define HAVE_ERRNO_H 1
339 +/* Define to 1 if the system has the type `error_t'. */
340 +#define HAVE_ERROR_T 1
342 +/* Define to 1 if you have the <execinfo.h> header file. */
343 +#define HAVE_EXECINFO_H 0
345 +/* Define to 1 if you have the <fcntl.h> header file. */
346 +#define HAVE_FCNTL_H 1
348 +/* Define if the neat program is available */
349 +/* #undef HAVE_FDP */
351 +/* Define to 1 if you have the <fenv.h> header file. */
352 +#define HAVE_FENV_H 1
354 +/* Define if libffi is available on this platform. */
355 +/* #undef HAVE_FFI_CALL */
357 +/* Define to 1 if you have the <ffi/ffi.h> header file. */
358 +/* #undef HAVE_FFI_FFI_H */
360 +/* Define to 1 if you have the <ffi.h> header file. */
361 +/* #undef HAVE_FFI_H */
363 +/* Set to 1 if the finite function is found in <ieeefp.h> */
364 +/* #undef HAVE_FINITE_IN_IEEEFP_H */
366 +/* Define to 1 if you have the `floorf' function. */
367 +#define HAVE_FLOORF 1
369 +/* Define to 1 if you have the `fmodf' function. */
370 +#define HAVE_FMODF 1
372 +/* Define to 1 if you have the `futimens' function. */
373 +#define HAVE_FUTIMENS 1
375 +/* Define to 1 if you have the `getcwd' function. */
376 +#define HAVE_GETCWD 1
378 +/* Define to 1 if you have the `getpagesize' function. */
379 +#define HAVE_GETPAGESIZE 1
381 +/* Define to 1 if you have the `getrlimit' function. */
382 +#define HAVE_GETRLIMIT 1
384 +/* Define to 1 if you have the `getrusage' function. */
385 +#define HAVE_GETRUSAGE 1
387 +/* Define to 1 if you have the `gettimeofday' function. */
388 +#define HAVE_GETTIMEOFDAY 1
390 +/* Define if the Graphviz program is available */
391 +/* #undef HAVE_GRAPHVIZ */
393 +/* Define if the gv program is available */
394 +/* #undef HAVE_GV */
396 +/* Define to 1 if you have the `index' function. */
397 +/* #undef HAVE_INDEX */
399 +/* Define to 1 if the system has the type `int64_t'. */
400 +#define HAVE_INT64_T 1
402 +/* Define to 1 if you have the <inttypes.h> header file. */
403 +#define HAVE_INTTYPES_H 1
405 +/* Define to 1 if you have the `isatty' function. */
406 +#define HAVE_ISATTY 1
408 +/* Set to 1 if the isinf function is found in <cmath> */
409 +#define HAVE_ISINF_IN_CMATH 1
411 +/* Set to 1 if the isinf function is found in <math.h> */
412 +#define HAVE_ISINF_IN_MATH_H 1
414 +/* Set to 1 if the isnan function is found in <cmath> */
415 +#define HAVE_ISNAN_IN_CMATH 1
417 +/* Set to 1 if the isnan function is found in <math.h> */
418 +#define HAVE_ISNAN_IN_MATH_H 1
420 +/* Define if you have the libdl library or equivalent. */
421 +#define HAVE_LIBDL 1
423 +/* Define to 1 if you have the `imagehlp' library (-limagehlp). */
424 +/* #undef HAVE_LIBIMAGEHLP */
426 +/* Define to 1 if you have the `m' library (-lm). */
429 +/* Define to 1 if you have the `psapi' library (-lpsapi). */
430 +/* #undef HAVE_LIBPSAPI */
432 +/* Define to 1 if you have the `pthread' library (-lpthread). */
433 +#define HAVE_LIBPTHREAD 1
435 +/* Define to 1 if you have the `udis86' library (-ludis86). */
436 +/* #undef HAVE_LIBUDIS86 */
438 +/* Define to 1 if you have the <limits.h> header file. */
439 +#define HAVE_LIMITS_H 1
441 +/* Define if you can use -Wl,-export-dynamic. */
442 +#define HAVE_LINK_EXPORT_DYNAMIC 1
444 +/* Define to 1 if you have the <link.h> header file. */
445 +#define HAVE_LINK_H 1
447 +/* Define if you can use -Wl,-R. to pass -R. to the linker, in order to add
448 + the current directory to the dynamic linker search path. */
449 +#define HAVE_LINK_R 1
451 +/* Define to 1 if you have the `longjmp' function. */
452 +#define HAVE_LONGJMP 1
454 +/* Define to 1 if you have the <mach/mach.h> header file. */
455 +/* #undef HAVE_MACH_MACH_H */
457 +/* Define to 1 if you have the <mach-o/dyld.h> header file. */
458 +/* #undef HAVE_MACH_O_DYLD_H */
460 +/* Define if mallinfo() is available on this platform. */
461 +#define HAVE_MALLINFO 1
463 +/* Define to 1 if you have the <malloc.h> header file. */
464 +//#define HAVE_MALLOC_H 1 /* Defined by AndroidConfig.h */
466 +/* Define to 1 if you have the <malloc/malloc.h> header file. */
467 +/* #undef HAVE_MALLOC_MALLOC_H */
469 +/* Define to 1 if you have the `malloc_zone_statistics' function. */
470 +/* #undef HAVE_MALLOC_ZONE_STATISTICS */
472 +/* Define to 1 if you have the `memcpy' function. */
473 +#define HAVE_MEMCPY 1
475 +/* Define to 1 if you have the `memmove' function. */
476 +#define HAVE_MEMMOVE 1
478 +/* Define to 1 if you have the <memory.h> header file. */
479 +#define HAVE_MEMORY_H 1
481 +/* Define to 1 if you have the `mkdtemp' function. */
482 +#define HAVE_MKDTEMP 0
484 +/* Define to 1 if you have the `mkstemp' function. */
485 +#define HAVE_MKSTEMP 1
487 +/* Define to 1 if you have the `mktemp' function. */
488 +#define HAVE_MKTEMP 1
490 +/* Define to 1 if you have a working `mmap' system call. */
493 +/* Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, or undefine if
494 + it uses MAP_ANON */
495 +#define HAVE_MMAP_ANONYMOUS 1
497 +/* Define if mmap() can map files into memory */
498 +#define HAVE_MMAP_FILE
500 +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
501 +/* #undef HAVE_NDIR_H */
503 +/* Define to 1 if you have the `nearbyintf' function. */
504 +#define HAVE_NEARBYINTF 1
506 +/* Define if the neat program is available */
507 +/* #undef HAVE_NEATO */
509 +/* Define to 1 if you have the `opendir' function. */
510 +#define HAVE_OPENDIR 1
512 +/* Define to 1 if you have the `posix_spawn' function. */
513 +/* #undef HAVE_POSIX_SPAWN */
515 +/* Define to 1 if you have the `powf' function. */
518 +/* Define to 1 if you have the `pread' function. */
519 +#define HAVE_PREAD 1
521 +/* Define if libtool can extract symbol lists from object files. */
522 +#define HAVE_PRELOADED_SYMBOLS 1
524 +/* Define to have the %a format string */
525 +#define HAVE_PRINTF_A 1
527 +/* Have pthread_getspecific */
528 +#define HAVE_PTHREAD_GETSPECIFIC 1
530 +/* Define to 1 if you have the <pthread.h> header file. */
531 +#define HAVE_PTHREAD_H 1
533 +/* Have pthread_mutex_lock */
534 +#define HAVE_PTHREAD_MUTEX_LOCK 1
536 +/* Have pthread_rwlock_init */
537 +#define HAVE_PTHREAD_RWLOCK_INIT 1
539 +/* Define to 1 if srand48/lrand48/drand48 exist in <stdlib.h> */
540 +#define HAVE_RAND48 1
542 +/* Define to 1 if you have the `readdir' function. */
543 +#define HAVE_READDIR 1
545 +/* Define to 1 if you have the `realpath' function. */
546 +#define HAVE_REALPATH 1
548 +/* Define to 1 if you have the `rindex' function. */
549 +/* #undef HAVE_RINDEX */
551 +/* Define to 1 if you have the `rintf' function. */
552 +#define HAVE_RINTF 1
554 +/* Define to 1 if you have the `round' function. */
555 +#define HAVE_ROUND 1
557 +/* Define to 1 if you have the `roundf' function. */
558 +#define HAVE_ROUNDF 1
560 +/* Define to 1 if you have the `sbrk' function. */
563 +/* Define to 1 if you have the `setenv' function. */
564 +#define HAVE_SETENV 1
566 +/* Define to 1 if you have the `setjmp' function. */
567 +#define HAVE_SETJMP 1
569 +/* Define to 1 if you have the <setjmp.h> header file. */
570 +#define HAVE_SETJMP_H 1
572 +/* Define to 1 if you have the `setrlimit' function. */
573 +#define HAVE_SETRLIMIT 1
575 +/* Define if you have the shl_load function. */
576 +/* #undef HAVE_SHL_LOAD */
578 +/* Define to 1 if you have the `siglongjmp' function. */
579 +#define HAVE_SIGLONGJMP 1
581 +/* Define to 1 if you have the <signal.h> header file. */
582 +#define HAVE_SIGNAL_H 1
584 +/* Define to 1 if you have the `sigsetjmp' function. */
585 +/* #undef HAVE_SIGSETJMP */
587 +/* Define to 1 if you have the <stdint.h> header file. */
588 +#define HAVE_STDINT_H 1
590 +/* Define to 1 if you have the <stdio.h> header file. */
591 +#define HAVE_STDIO_H 1
593 +/* Define to 1 if you have the <stdlib.h> header file. */
594 +#define HAVE_STDLIB_H 1
596 +/* Set to 1 if the std::isinf function is found in <cmath> */
597 +/* #undef HAVE_STD_ISINF_IN_CMATH */
599 +/* Set to 1 if the std::isnan function is found in <cmath> */
600 +#define HAVE_STD_ISNAN_IN_CMATH 1
602 +/* Define to 1 if you have the `strchr' function. */
603 +#define HAVE_STRCHR 1
605 +/* Define to 1 if you have the `strcmp' function. */
606 +#define HAVE_STRCMP 1
608 +/* Define to 1 if you have the `strdup' function. */
609 +#define HAVE_STRDUP 1
611 +/* Define to 1 if you have the `strerror' function. */
612 +#define HAVE_STRERROR 1
614 +/* Define to 1 if you have the `strerror_r' function. */
616 +#define HAVE_STRERROR_R 1
619 +/* Define to 1 if you have the <strings.h> header file. */
620 +#define HAVE_STRINGS_H 1
622 +/* Define to 1 if you have the <string.h> header file. */
623 +#define HAVE_STRING_H 1
625 +/* Define to 1 if you have the `strrchr' function. */
626 +#define HAVE_STRRCHR 1
628 +/* Define to 1 if you have the `strtof' function. */
629 +#define HAVE_STRTOF 1
631 +/* Define to 1 if you have the `strtoll' function. */
632 +#define HAVE_STRTOLL 1
634 +/* Define to 1 if you have the `strtoq' function. */
635 +#define HAVE_STRTOQ 1
637 +/* Define to 1 if you have the `sysconf' function. */
638 +#define HAVE_SYSCONF 1
640 +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
642 +/* #undef HAVE_SYS_DIR_H */
644 +/* Define to 1 if you have the <sys/dl.h> header file. */
645 +/* #undef HAVE_SYS_DL_H */
647 +/* Define to 1 if you have the <sys/ioctl.h> header file. */
648 +#define HAVE_SYS_IOCTL_H 1
650 +/* Define to 1 if you have the <sys/mman.h> header file. */
651 +#define HAVE_SYS_MMAN_H 1
653 +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
655 +/* #undef HAVE_SYS_NDIR_H */
657 +/* Define to 1 if you have the <sys/param.h> header file. */
658 +#define HAVE_SYS_PARAM_H 1
660 +/* Define to 1 if you have the <sys/resource.h> header file. */
661 +#define HAVE_SYS_RESOURCE_H 1
663 +/* Define to 1 if you have the <sys/stat.h> header file. */
664 +#define HAVE_SYS_STAT_H 1
666 +/* Define to 1 if you have the <sys/time.h> header file. */
667 +#define HAVE_SYS_TIME_H 1
669 +/* Define to 1 if you have the <sys/types.h> header file. */
670 +#define HAVE_SYS_TYPES_H 1
672 +/* Define to 1 if you have the <sys/uio.h> header file. */
673 +#define HAVE_SYS_UIO_H 1
675 +/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
676 +#define HAVE_SYS_WAIT_H 1
678 +/* Define to 1 if you have the <termios.h> header file. */
679 +#define HAVE_TERMIOS_H 1
681 +/* Define if the neat program is available */
682 +/* #undef HAVE_TWOPI */
684 +/* Define to 1 if the system has the type `uint64_t'. */
685 +#define HAVE_UINT64_T 1
687 +/* Define to 1 if you have the <unistd.h> header file. */
688 +#define HAVE_UNISTD_H 1
690 +/* Define to 1 if you have the <utime.h> header file. */
691 +#define HAVE_UTIME_H 1
693 +/* Define to 1 if the system has the type `u_int64_t'. */
694 +/* #undef HAVE_U_INT64_T */
696 +/* Define to 1 if you have the <valgrind/valgrind.h> header file. */
697 +/* #undef HAVE_VALGRIND_VALGRIND_H */
699 +/* Define to 1 if you have the <windows.h> header file. */
700 +/* #undef HAVE_WINDOWS_H */
702 +/* Define to 1 if you have the `writev' function. */
703 +#define HAVE_WRITEV 1
705 +/* Define if the xdot.py program is available */
706 +/* #undef HAVE_XDOT_PY */
708 +/* Have host's _alloca */
709 +/* #undef HAVE__ALLOCA */
711 +/* Have host's __alloca */
712 +/* #undef HAVE___ALLOCA */
714 +/* Have host's __ashldi3 */
715 +/* #undef HAVE___ASHLDI3 */
717 +/* Have host's __ashrdi3 */
718 +/* #undef HAVE___ASHRDI3 */
720 +/* Have host's __chkstk */
721 +/* #undef HAVE___CHKSTK */
723 +/* Have host's __cmpdi2 */
724 +/* #undef HAVE___CMPDI2 */
726 +/* Have host's __divdi3 */
727 +/* #undef HAVE___DIVDI3 */
729 +/* Define to 1 if you have the `__dso_handle' function. */
730 +#define HAVE___DSO_HANDLE 1
732 +/* Have host's __fixdfdi */
733 +/* #undef HAVE___FIXDFDI */
735 +/* Have host's __fixsfdi */
736 +/* #undef HAVE___FIXSFDI */
738 +/* Have host's __floatdidf */
739 +/* #undef HAVE___FLOATDIDF */
741 +/* Have host's __lshrdi3 */
742 +/* #undef HAVE___LSHRDI3 */
744 +/* Have host's __main */
745 +/* #undef HAVE___MAIN */
747 +/* Have host's __moddi3 */
748 +/* #undef HAVE___MODDI3 */
750 +/* Have host's __udivdi3 */
751 +/* #undef HAVE___UDIVDI3 */
753 +/* Have host's __umoddi3 */
754 +/* #undef HAVE___UMODDI3 */
756 +/* Have host's ___chkstk */
757 +/* #undef HAVE____CHKSTK */
759 +/* Linker version detected at compile time. */
760 +#define HOST_LINK_VERSION "2.20.1"
762 +/* Installation directory for binary executables */
763 +#define LLVM_BINDIR "/opt/llvm-android/bin"
765 +/* Time at which LLVM was configured */
766 +#define LLVM_CONFIGTIME "Tue May 8 14:22:45 CST 2012"
768 +/* Installation directory for data files */
769 +#define LLVM_DATADIR "/opt/llvm-android/share/llvm"
771 +/* Target triple LLVM will generate code for by default */
772 +#define LLVM_DEFAULT_TARGET_TRIPLE "i386-unknown-linux"
774 +/* Installation directory for documentation */
775 +#define LLVM_DOCSDIR "/opt/llvm-android/share/doc/llvm"
777 +/* Define if threads enabled */
778 +#define LLVM_ENABLE_THREADS 1
780 +/* Installation directory for config files */
781 +#define LLVM_ETCDIR "/opt/llvm-android/etc/llvm"
783 +/* Has gcc/MSVC atomic intrinsics */
784 +#define LLVM_HAS_ATOMICS 1
786 +/* Installation directory for include files */
787 +#define LLVM_INCLUDEDIR "/opt/llvm-android/include"
789 +/* Installation directory for .info files */
790 +#define LLVM_INFODIR "/opt/llvm-android/info"
792 +/* Installation directory for libraries */
793 +#define LLVM_LIBDIR "/opt/llvm-android/lib"
795 +/* Installation directory for man pages */
796 +#define LLVM_MANDIR "/opt/llvm-android/man"
798 +/* Define to path to circo program if found or 'echo circo' otherwise */
799 +/* #undef LLVM_PATH_CIRCO */
801 +/* Define to path to dot program if found or 'echo dot' otherwise */
802 +/* #undef LLVM_PATH_DOT */
804 +/* Define to path to dotty program if found or 'echo dotty' otherwise */
805 +/* #undef LLVM_PATH_DOTTY */
807 +/* Define to path to fdp program if found or 'echo fdp' otherwise */
808 +/* #undef LLVM_PATH_FDP */
810 +/* Define to path to Graphviz program if found or 'echo Graphviz' otherwise */
811 +/* #undef LLVM_PATH_GRAPHVIZ */
813 +/* Define to path to gv program if found or 'echo gv' otherwise */
814 +/* #undef LLVM_PATH_GV */
816 +/* Define to path to neato program if found or 'echo neato' otherwise */
817 +/* #undef LLVM_PATH_NEATO */
819 +/* Define to path to twopi program if found or 'echo twopi' otherwise */
820 +/* #undef LLVM_PATH_TWOPI */
822 +/* Define to path to xdot.py program if found or 'echo xdot.py' otherwise */
823 +/* #undef LLVM_PATH_XDOT_PY */
825 +/* Installation prefix directory */
826 +#define LLVM_PREFIX "/opt/llvm-android"
828 +/* Define if we have the Intel JIT API runtime support library */
829 +#define LLVM_USE_INTEL_JITEVENTS 0
831 +/* Define if we have the oprofile JIT-support library */
832 +#define LLVM_USE_OPROFILE 0
834 +/* Major version of the LLVM API */
835 +#define LLVM_VERSION_MAJOR 3
837 +/* Minor version of the LLVM API */
838 +#define LLVM_VERSION_MINOR 4
840 +/* Define if the OS needs help to load dependent libraries for dlopen(). */
841 +/* #undef LTDL_DLOPEN_DEPLIBS */
843 +/* Define to the sub-directory in which libtool stores uninstalled libraries.
845 +#define LTDL_OBJDIR ".libs/"
847 +/* Define to the name of the environment variable that determines the dynamic
848 + library search path. */
849 +#define LTDL_SHLIBPATH_VAR "LD_LIBRARY_PATH"
851 +/* Define to the extension used for shared libraries, say, ".so". */
852 +#define LTDL_SHLIB_EXT ".so"
854 +/* Define to the system default library search path. */
855 +#define LTDL_SYSSEARCHPATH "/lib:/usr/lib:/usr/local/lib:/lib:/usr/lib:/lib64:/usr/lib64:/usr/local/lib64:/lib32:/usr/lib32:/usr/local/lib32:/usr/x86_64-pc-linux-gnu/lib:/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4:/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/32:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32"
857 +/* Define if /dev/zero should be used when mapping RWX memory, or undefine if
858 + its not necessary */
859 +/* #undef NEED_DEV_ZERO_FOR_MMAP */
861 +/* Define if dlsym() requires a leading underscore in symbol names. */
862 +/* #undef NEED_USCORE */
864 +/* Define to the address where bug reports for this package should be sent. */
865 +#define PACKAGE_BUGREPORT "http://llvm.org/bugs/"
867 +/* Define to the full name of this package. */
868 +#define PACKAGE_NAME "LLVM"
870 +/* Define to the full name and version of this package. */
871 +#define PACKAGE_STRING "LLVM 3.4"
873 +/* Define to the one symbol short name of this package. */
874 +#define PACKAGE_TARNAME "llvm"
876 +/* Define to the version of this package. */
877 +#define PACKAGE_VERSION "3.4"
879 +/* Define as the return type of signal handlers (`int' or `void'). */
880 +#define RETSIGTYPE void
882 +/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
883 +/* #undef STAT_MACROS_BROKEN */
885 +/* Define to 1 if you have the ANSI C header files. */
886 +#define STDC_HEADERS 1
888 +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
889 +#define TIME_WITH_SYS_TIME 1
891 +/* Define to 1 if your <sys/time.h> declares `struct tm'. */
892 +/* #undef TM_IN_SYS_TIME */
894 +/* Define if use udis86 library */
895 +#define USE_UDIS86 0
897 +/* Define to empty if `const' does not conform to ANSI C. */
900 +/* Define to a type to use for `error_t' if it is not otherwise available. */
901 +/* #undef error_t */
903 +/* Define to `int' if <sys/types.h> does not define. */
906 +/* Define to `unsigned int' if <sys/types.h> does not define. */
909 +#include "llvm/Config/llvm-platform-config.h"
912 diff --git a/device/include/llvm/Config/llvm-config.h b/device/include/llvm/Config/llvm-config.h
914 index 0000000..637daed
916 +++ b/device/include/llvm/Config/llvm-config.h
918 +/* include/llvm/Config/llvm-config.h. Generated from llvm-config.h.in by configure. */
919 +/*===-- llvm/config/llvm-config.h - llvm configure variable -------*- C -*-===*/
921 +/* The LLVM Compiler Infrastructure */
923 +/* This file is distributed under the University of Illinois Open Source */
924 +/* License. See LICENSE.TXT for details. */
926 +/*===----------------------------------------------------------------------===*/
928 +/* This file enumerates all of the llvm variables from configure so that
929 + they can be in exported headers and won't override package specific
930 + directives. This is a C file so we can include it in the llvm-c headers. */
932 +/* To avoid multiple inclusions of these variables when we include the exported
933 + headers and config.h, conditionally include these. */
934 +/* TODO: This is a bit of a hack. */
937 +/* Installation directory for binary executables */
938 +#define LLVM_BINDIR "/opt/llvm-android/bin"
940 +/* Time at which LLVM was configured */
941 +#define LLVM_CONFIGTIME "Tue May 8 14:22:45 CST 2012"
943 +/* Installation directory for data files */
944 +#define LLVM_DATADIR "/opt/llvm-android/share/llvm"
946 +/* Target triple LLVM will generate code for by default */
947 +#define LLVM_DEFAULT_TARGET_TRIPLE "i386-unknown-linux"
949 +/* Installation directory for documentation */
950 +#define LLVM_DOCSDIR "/opt/llvm-android/share/doc/llvm"
952 +/* Define if threads enabled */
953 +#define LLVM_ENABLE_THREADS 1
955 +/* Installation directory for config files */
956 +#define LLVM_ETCDIR "/opt/llvm-android/etc/llvm"
958 +/* Has gcc/MSVC atomic intrinsics */
959 +#define LLVM_HAS_ATOMICS 1
961 +/* Installation directory for include files */
962 +#define LLVM_INCLUDEDIR "/opt/llvm-android/include"
964 +/* Installation directory for .info files */
965 +#define LLVM_INFODIR "/opt/llvm-android/info"
967 +/* Installation directory for libraries */
968 +#define LLVM_LIBDIR "/opt/llvm-android/lib"
970 +/* Installation directory for man pages */
971 +#define LLVM_MANDIR "/opt/llvm-android/man"
973 +/* Define to path to circo program if found or 'echo circo' otherwise */
974 +/* #undef LLVM_PATH_CIRCO */
976 +/* Define to path to dot program if found or 'echo dot' otherwise */
977 +/* #undef LLVM_PATH_DOT */
979 +/* Define to path to dotty program if found or 'echo dotty' otherwise */
980 +/* #undef LLVM_PATH_DOTTY */
982 +/* Define to path to fdp program if found or 'echo fdp' otherwise */
983 +/* #undef LLVM_PATH_FDP */
985 +/* Define to path to Graphviz program if found or 'echo Graphviz' otherwise */
986 +/* #undef LLVM_PATH_GRAPHVIZ */
988 +/* Define to path to gv program if found or 'echo gv' otherwise */
989 +/* #undef LLVM_PATH_GV */
991 +/* Define to path to neato program if found or 'echo neato' otherwise */
992 +/* #undef LLVM_PATH_NEATO */
994 +/* Define to path to twopi program if found or 'echo twopi' otherwise */
995 +/* #undef LLVM_PATH_TWOPI */
997 +/* Define to path to xdot.py program if found or 'echo xdot.py' otherwise */
998 +/* #undef LLVM_PATH_XDOT_PY */
1000 +/* Installation prefix directory */
1001 +#define LLVM_PREFIX "/opt/llvm-android"
1003 +/* Major version of the LLVM API */
1004 +#define LLVM_VERSION_MAJOR 3
1006 +/* Minor version of the LLVM API */
1007 +#define LLVM_VERSION_MINOR 4
1009 +#include "llvm/Config/llvm-platform-config.h"
1012 diff --git a/host/include/llvm/Config/AsmParsers.def b/host/include/llvm/Config/AsmParsers.def
1013 new file mode 100644
1014 index 0000000..8fd67da
1016 +++ b/host/include/llvm/Config/AsmParsers.def
1018 +//===- llvm/Config/AsmParsers.def - LLVM Assembly Parsers -------*- C++ -*-===//
1020 +// The LLVM Compiler Infrastructure
1022 +// This file is distributed under the University of Illinois Open Source
1023 +// License. See LICENSE.TXT for details.
1025 +//===----------------------------------------------------------------------===//
1027 +// This file enumerates all of the assembly-language parsers
1028 +// supported by this build of LLVM. Clients of this file should define
1029 +// the LLVM_ASM_PARSER macro to be a function-like macro with a
1030 +// single parameter (the name of the target whose assembly can be
1031 +// generated); including this file will then enumerate all of the
1032 +// targets with assembly parsers.
1034 +// The set of targets supported by LLVM is generated at configuration
1035 +// time, at which point this header is generated. Do not modify this
1036 +// header directly.
1038 +//===----------------------------------------------------------------------===//
1040 +#ifndef LLVM_ASM_PARSER
1041 +# error Please define the macro LLVM_ASM_PARSER(TargetName)
1044 +LLVM_ASM_PARSER(ARM)
1045 +LLVM_ASM_PARSER(Mips)
1046 +LLVM_ASM_PARSER(X86)
1047 +LLVM_ASM_PARSER(AArch64)
1049 +#undef LLVM_ASM_PARSER
1050 diff --git a/host/include/llvm/Config/AsmPrinters.def b/host/include/llvm/Config/AsmPrinters.def
1051 new file mode 100644
1052 index 0000000..07f6adf
1054 +++ b/host/include/llvm/Config/AsmPrinters.def
1056 +//===- llvm/Config/AsmPrinters.def - LLVM Assembly Printers -----*- C++ -*-===//
1058 +// The LLVM Compiler Infrastructure
1060 +// This file is distributed under the University of Illinois Open Source
1061 +// License. See LICENSE.TXT for details.
1063 +//===----------------------------------------------------------------------===//
1065 +// This file enumerates all of the assembly-language printers
1066 +// supported by this build of LLVM. Clients of this file should define
1067 +// the LLVM_ASM_PRINTER macro to be a function-like macro with a
1068 +// single parameter (the name of the target whose assembly can be
1069 +// generated); including this file will then enumerate all of the
1070 +// targets with assembly printers.
1072 +// The set of targets supported by LLVM is generated at configuration
1073 +// time, at which point this header is generated. Do not modify this
1074 +// header directly.
1076 +//===----------------------------------------------------------------------===//
1078 +#ifndef LLVM_ASM_PRINTER
1079 +# error Please define the macro LLVM_ASM_PRINTER(TargetName)
1082 +LLVM_ASM_PRINTER(ARM)
1083 +LLVM_ASM_PRINTER(Mips)
1084 +LLVM_ASM_PRINTER(X86)
1085 +LLVM_ASM_PRINTER(AArch64)
1087 +#undef LLVM_ASM_PRINTER
1088 diff --git a/host/include/llvm/Config/Disassemblers.def b/host/include/llvm/Config/Disassemblers.def
1089 new file mode 100644
1090 index 0000000..18557af
1092 +++ b/host/include/llvm/Config/Disassemblers.def
1094 +//===- llvm/Config/Disassemblers.def - LLVM Assembly Parsers ----*- C++ -*-===//
1096 +// The LLVM Compiler Infrastructure
1098 +// This file is distributed under the University of Illinois Open Source
1099 +// License. See LICENSE.TXT for details.
1101 +//===----------------------------------------------------------------------===//
1103 +// This file enumerates all of the assembly-language parsers
1104 +// supported by this build of LLVM. Clients of this file should define
1105 +// the LLVM_ASM_PARSER macro to be a function-like macro with a
1106 +// single parameter (the name of the target whose assembly can be
1107 +// generated); including this file will then enumerate all of the
1108 +// targets with assembly parsers.
1110 +// The set of targets supported by LLVM is generated at configuration
1111 +// time, at which point this header is generated. Do not modify this
1112 +// header directly.
1114 +//===----------------------------------------------------------------------===//
1116 +#ifndef LLVM_DISASSEMBLER
1117 +# error Please define the macro LLVM_DISASSEMBLER(TargetName)
1120 +LLVM_DISASSEMBLER(ARM)
1121 +LLVM_DISASSEMBLER(Mips)
1122 +LLVM_DISASSEMBLER(X86)
1123 +LLVM_DISASSEMBLER(AArch64)
1125 +#undef LLVM_DISASSEMBLER
1126 diff --git a/host/include/llvm/Config/Targets.def b/host/include/llvm/Config/Targets.def
1127 new file mode 100644
1128 index 0000000..2985cf3
1130 +++ b/host/include/llvm/Config/Targets.def
1132 +/*===- llvm/Config/Targets.def - LLVM Target Architectures ------*- C++ -*-===*\
1134 +|* The LLVM Compiler Infrastructure *|
1136 +|* This file is distributed under the University of Illinois Open Source *|
1137 +|* License. See LICENSE.TXT for details. *|
1139 +|*===----------------------------------------------------------------------===*|
1141 +|* This file enumerates all of the target architectures supported by *|
1142 +|* this build of LLVM. Clients of this file should define the *|
1143 +|* LLVM_TARGET macro to be a function-like macro with a single *|
1144 +|* parameter (the name of the target); including this file will then *|
1145 +|* enumerate all of the targets. *|
1147 +|* The set of targets supported by LLVM is generated at configuration *|
1148 +|* time, at which point this header is generated. Do not modify this *|
1149 +|* header directly. *|
1151 +\*===----------------------------------------------------------------------===*/
1153 +#ifndef LLVM_TARGET
1154 +# error Please define the macro LLVM_TARGET(TargetName)
1160 +LLVM_TARGET(AArch64)
1163 diff --git a/host/include/llvm/Config/config.h b/host/include/llvm/Config/config.h
1164 new file mode 100644
1165 index 0000000..8e65910
1167 +++ b/host/include/llvm/Config/config.h
1169 +/* include/llvm/Config/config.h. Generated from config.h.in by configure. */
1170 +/* include/llvm/Config/config.h.in. Generated from autoconf/configure.ac by autoheader. */
1175 +/* Bug report URL. */
1176 +#define BUG_REPORT_URL "http://llvm.org/bugs/"
1178 +/* Relative directory for resource files */
1179 +#define CLANG_RESOURCE_DIR ""
1181 +/* Directories clang will search for headers */
1182 +#define C_INCLUDE_DIRS ""
1184 +/* Default <path> to all compiler invocations for --sysroot=<path>. */
1185 +#define DEFAULT_SYSROOT ""
1187 +/* Define if position independent code is enabled */
1188 +#define ENABLE_PIC 1
1190 +/* Define if timestamp information (e.g., __DATE___) is allowed */
1191 +#define ENABLE_TIMESTAMPS 1
1193 +/* Directory where gcc is installed. */
1194 +#define GCC_INSTALL_PREFIX ""
1196 +/* Define to 1 if you have the `argz_append' function. */
1197 +/* #undef HAVE_ARGZ_APPEND */
1199 +/* Define to 1 if you have the `argz_create_sep' function. */
1200 +/* #undef HAVE_ARGZ_CREATE_SEP */
1202 +/* Define to 1 if you have the <argz.h> header file. */
1203 +/* #undef HAVE_ARGZ_H */
1205 +/* Define to 1 if you have the `argz_insert' function. */
1206 +/* #undef HAVE_ARGZ_INSERT */
1208 +/* Define to 1 if you have the `argz_next' function. */
1209 +/* #undef HAVE_ARGZ_NEXT */
1211 +/* Define to 1 if you have the `argz_stringify' function. */
1212 +/* #undef HAVE_ARGZ_STRINGIFY */
1214 +/* Define to 1 if you have the <assert.h> header file. */
1215 +#define HAVE_ASSERT_H 1
1217 +/* Define to 1 if you have the `backtrace' function. */
1218 +/* #define HAVE_BACKTRACE 1 */ /* Defined by AndroidConfig.h */
1220 +/* Define to 1 if you have the `bcopy' function. */
1221 +/* #undef HAVE_BCOPY */
1223 +/* Define to 1 if you have the `ceilf' function. */
1224 +#define HAVE_CEILF 1
1226 +/* Define if the neat program is available */
1227 +/* #undef HAVE_CIRCO */
1229 +/* Define to 1 if you have the `closedir' function. */
1230 +#define HAVE_CLOSEDIR 1
1232 +/* Define to 1 if you have the <CrashReporterClient.h> header file. */
1233 +/* #undef HAVE_CRASHREPORTERCLIENT_H */
1235 +/* Define if __crashreporter_info__ exists. */
1236 +#define HAVE_CRASHREPORTER_INFO 0
1238 +/* Define to 1 if you have the <ctype.h> header file. */
1239 +#define HAVE_CTYPE_H 1
1241 +/* Define to 1 if you have the <cxxabi.h> header file. */
1242 +#define HAVE_CXXABI_H 0
1244 +/* Define to 1 if you have the declaration of `strerror_s', and to 0 if you
1246 +#define HAVE_DECL_STRERROR_S 0
1248 +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
1250 +#define HAVE_DIRENT_H 1
1252 +/* Define if you have the GNU dld library. */
1253 +/* #undef HAVE_DLD */
1255 +/* Define to 1 if you have the <dld.h> header file. */
1256 +/* #undef HAVE_DLD_H */
1258 +/* Define to 1 if you have the `dlerror' function. */
1259 +#define HAVE_DLERROR 1
1261 +/* Define to 1 if you have the <dlfcn.h> header file. */
1262 +#define HAVE_DLFCN_H 1
1264 +/* Define if dlopen() is available on this platform. */
1265 +#define HAVE_DLOPEN 1
1267 +/* Define to 1 if you have the <dl.h> header file. */
1268 +/* #undef HAVE_DL_H */
1270 +/* Define if the dot program is available */
1271 +/* #undef HAVE_DOT */
1273 +/* Define if the dotty program is available */
1274 +/* #undef HAVE_DOTTY */
1276 +/* Define if you have the _dyld_func_lookup function. */
1277 +/* #undef HAVE_DYLD */
1279 +/* Define to 1 if you have the <errno.h> header file. */
1280 +#define HAVE_ERRNO_H 1
1282 +/* Define to 1 if the system has the type `error_t'. */
1283 +#define HAVE_ERROR_T 1
1285 +/* Define to 1 if you have the <execinfo.h> header file. */
1286 +#define HAVE_EXECINFO_H 1
1288 +/* Define to 1 if you have the <fcntl.h> header file. */
1289 +#define HAVE_FCNTL_H 1
1291 +/* Define if the neat program is available */
1292 +/* #undef HAVE_FDP */
1294 +/* Define to 1 if you have the <fenv.h> header file. */
1295 +#define HAVE_FENV_H 1
1297 +/* Define if libffi is available on this platform. */
1298 +/* #undef HAVE_FFI_CALL */
1300 +/* Define to 1 if you have the <ffi/ffi.h> header file. */
1301 +/* #undef HAVE_FFI_FFI_H */
1303 +/* Define to 1 if you have the <ffi.h> header file. */
1304 +/* #undef HAVE_FFI_H */
1306 +/* Set to 1 if the finite function is found in <ieeefp.h> */
1307 +/* #undef HAVE_FINITE_IN_IEEEFP_H */
1309 +/* Define to 1 if you have the `floorf' function. */
1310 +#define HAVE_FLOORF 1
1312 +/* Define to 1 if you have the `fmodf' function. */
1313 +#define HAVE_FMODF 1
1316 +/* Define to 1 if you have the `futimes' function. */
1317 +#define HAVE_FUTIMES 1
1319 +/* Define to 1 if you have the `futimens' function. */
1320 +#define HAVE_FUTIMENS 1
1321 +#endif // __APPLE__
1323 +/* Define to 1 if you have the `getcwd' function. */
1324 +#define HAVE_GETCWD 1
1326 +/* Define to 1 if you have the `getpagesize' function. */
1327 +#define HAVE_GETPAGESIZE 1
1329 +/* Define to 1 if you have the `getrlimit' function. */
1330 +#define HAVE_GETRLIMIT 1
1332 +/* Define to 1 if you have the `getrusage' function. */
1333 +#define HAVE_GETRUSAGE 1
1335 +/* Define to 1 if you have the `gettimeofday' function. */
1336 +#define HAVE_GETTIMEOFDAY 1
1338 +/* Define if the Graphviz program is available */
1339 +/* #undef HAVE_GRAPHVIZ */
1341 +/* Define if the gv program is available */
1342 +/* #undef HAVE_GV */
1344 +/* Define to 1 if you have the `index' function. */
1345 +/* #undef HAVE_INDEX */
1347 +/* Define to 1 if the system has the type `int64_t'. */
1348 +#define HAVE_INT64_T 1
1350 +/* Define to 1 if you have the <inttypes.h> header file. */
1351 +#define HAVE_INTTYPES_H 1
1353 +/* Define to 1 if you have the `isatty' function. */
1354 +#define HAVE_ISATTY 1
1356 +/* Set to 1 if the isinf function is found in <cmath> */
1357 +#define HAVE_ISINF_IN_CMATH 1
1359 +/* Set to 1 if the isinf function is found in <math.h> */
1360 +#define HAVE_ISINF_IN_MATH_H 1
1362 +/* Set to 1 if the isnan function is found in <cmath> */
1363 +#define HAVE_ISNAN_IN_CMATH 1
1365 +/* Set to 1 if the isnan function is found in <math.h> */
1366 +#define HAVE_ISNAN_IN_MATH_H 1
1368 +/* Define if you have the libdl library or equivalent. */
1369 +#define HAVE_LIBDL 1
1371 +/* Define to 1 if you have the `imagehlp' library (-limagehlp). */
1372 +/* #undef HAVE_LIBIMAGEHLP */
1374 +/* Define to 1 if you have the `m' library (-lm). */
1375 +#define HAVE_LIBM 1
1377 +/* Define to 1 if you have the `psapi' library (-lpsapi). */
1378 +/* #undef HAVE_LIBPSAPI */
1380 +/* Define to 1 if you have the `pthread' library (-lpthread). */
1381 +#define HAVE_LIBPTHREAD 1
1383 +/* Define to 1 if you have the `shell32' library (-lshell32). */
1384 +#define HAVE_LIBSHELL32 1
1386 +/* Define to 1 if you have the `udis86' library (-ludis86). */
1387 +/* #undef HAVE_LIBUDIS86 */
1389 +/* Define to 1 if you have the <limits.h> header file. */
1390 +#define HAVE_LIMITS_H 1
1392 +/* Define if you can use -Wl,-export-dynamic. */
1393 +#define HAVE_LINK_EXPORT_DYNAMIC 1
1395 +/* Define to 1 if you have the <link.h> header file. */
1396 +#define HAVE_LINK_H 1
1398 +/* Define if you can use -Wl,-R. to pass -R. to the linker, in order to add
1399 + the current directory to the dynamic linker search path. */
1400 +#define HAVE_LINK_R 1
1402 +/* Define to 1 if you have the `longjmp' function. */
1403 +#define HAVE_LONGJMP 1
1405 +/* Define to 1 if you have the <mach/mach.h> header file. */
1406 +/* #undef HAVE_MACH_MACH_H */
1408 +/* Define to 1 if you have the <mach-o/dyld.h> header file. */
1409 +/* #undef HAVE_MACH_O_DYLD_H */
1411 +/* Define if mallinfo() is available on this platform. */
1412 +#if !defined(__APPLE__)
1413 +#define HAVE_MALLINFO 1
1415 +/* #undef HAVE_MALLINFO */
1418 +/* Define to 1 if you have the <malloc.h> header file. */
1419 +/* #define HAVE_MALLOC_H 1 */ /* Defined by AndroidConfig.h */
1421 +/* Define to 1 if you have the <malloc/malloc.h> header file. */
1422 +/* #undef HAVE_MALLOC_MALLOC_H */
1424 +/* Define to 1 if you have the `malloc_zone_statistics' function. */
1425 +/* #undef HAVE_MALLOC_ZONE_STATISTICS */
1427 +/* Define to 1 if you have the `memcpy' function. */
1428 +#define HAVE_MEMCPY 1
1430 +/* Define to 1 if you have the `memmove' function. */
1431 +#define HAVE_MEMMOVE 1
1433 +/* Define to 1 if you have the <memory.h> header file. */
1434 +#define HAVE_MEMORY_H 1
1436 +/* Define to 1 if you have the `mkdtemp' function. */
1437 +#define HAVE_MKDTEMP 1
1439 +/* Define to 1 if you have the `mkstemp' function. */
1440 +#define HAVE_MKSTEMP 1
1442 +/* Define to 1 if you have the `mktemp' function. */
1443 +#define HAVE_MKTEMP 1
1445 +/* Define to 1 if you have a working `mmap' system call. */
1446 +#define HAVE_MMAP 1
1448 +/* Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, or undefine if
1449 + it uses MAP_ANON */
1450 +#if !defined(__APPLE__)
1451 +#define HAVE_MMAP_ANONYMOUS
1453 +/* #undef HAVE_MMAP_ANONYMOUS */
1456 +/* Define if mmap() can map files into memory */
1457 +#define HAVE_MMAP_FILE
1459 +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
1460 +/* #undef HAVE_NDIR_H */
1462 +/* Define to 1 if you have the `nearbyintf' function. */
1463 +#define HAVE_NEARBYINTF 1
1465 +/* Define if the neat program is available */
1466 +/* #undef HAVE_NEATO */
1468 +/* Define to 1 if you have the `opendir' function. */
1469 +#define HAVE_OPENDIR 1
1471 +/* Define to 1 if you have the `posix_spawn' function. */
1472 +#define HAVE_POSIX_SPAWN 1
1474 +/* Define to 1 if you have the `powf' function. */
1475 +#define HAVE_POWF 1
1477 +/* Define to 1 if you have the `pread' function. */
1478 +#if !defined(_WIN32) && !defined(_WIN64)
1479 +#define HAVE_PREAD 1
1482 +/* Define if libtool can extract symbol lists from object files. */
1483 +#define HAVE_PRELOADED_SYMBOLS 1
1485 +/* Define to have the %a format string */
1486 +#define HAVE_PRINTF_A 1
1488 +#if !defined(_WIN32) && !defined(_WIN64)
1490 +/* Have pthread_getspecific */
1491 +#define HAVE_PTHREAD_GETSPECIFIC 1
1493 +/* Define to 1 if you have the <pthread.h> header file. */
1494 +#define HAVE_PTHREAD_H 1
1496 +/* Have pthread_mutex_lock */
1497 +#define HAVE_PTHREAD_MUTEX_LOCK 1
1499 +/* Have pthread_rwlock_init */
1500 +#define HAVE_PTHREAD_RWLOCK_INIT 1
1502 +#endif /* !defined(_WIN32) && !defined(_WIN64) */
1504 +/* Define to 1 if srand48/lrand48/drand48 exist in <stdlib.h> */
1505 +#define HAVE_RAND48 1
1507 +/* Define to 1 if you have the `readdir' function. */
1508 +#define HAVE_READDIR 1
1510 +/* Define to 1 if you have the `realpath' function. */
1511 +#define HAVE_REALPATH 1
1513 +/* Define to 1 if you have the `rindex' function. */
1514 +/* #undef HAVE_RINDEX */
1516 +/* Define to 1 if you have the `rintf' function. */
1517 +#define HAVE_RINTF 1
1519 +/* Define to 1 if you have the `round' function. */
1520 +#define HAVE_ROUND 1
1522 +/* Define to 1 if you have the `roundf' function. */
1523 +#define HAVE_ROUNDF 1
1525 +/* Define to 1 if you have the `sbrk' function. */
1526 +#define HAVE_SBRK 1
1528 +/* Define to 1 if you have the `setenv' function. */
1529 +#define HAVE_SETENV 1
1531 +/* Define to 1 if you have the `setjmp' function. */
1532 +#define HAVE_SETJMP 1
1534 +/* Define to 1 if you have the <setjmp.h> header file. */
1535 +#define HAVE_SETJMP_H 1
1537 +/* Define to 1 if you have the `setrlimit' function. */
1538 +#define HAVE_SETRLIMIT 1
1540 +/* Define if you have the shl_load function. */
1541 +/* #undef HAVE_SHL_LOAD */
1543 +/* Define to 1 if you have the `siglongjmp' function. */
1544 +#define HAVE_SIGLONGJMP 1
1546 +/* Define to 1 if you have the <signal.h> header file. */
1547 +#define HAVE_SIGNAL_H 1
1549 +/* Define to 1 if you have the `sigsetjmp' function. */
1550 +/* #undef HAVE_SIGSETJMP */
1552 +/* Define to 1 if you have the <stdint.h> header file. */
1553 +#define HAVE_STDINT_H 1
1555 +/* Define to 1 if you have the <stdio.h> header file. */
1556 +#define HAVE_STDIO_H 1
1558 +/* Define to 1 if you have the <stdlib.h> header file. */
1559 +#define HAVE_STDLIB_H 1
1561 +/* Set to 1 if the std::isinf function is found in <cmath> */
1562 +#define HAVE_STD_ISINF_IN_CMATH 1
1564 +/* Set to 1 if the std::isnan function is found in <cmath> */
1565 +#define HAVE_STD_ISNAN_IN_CMATH 1
1567 +/* Define to 1 if you have the `strchr' function. */
1568 +#define HAVE_STRCHR 1
1570 +/* Define to 1 if you have the `strcmp' function. */
1571 +#define HAVE_STRCMP 1
1573 +/* Define to 1 if you have the `strdup' function. */
1574 +#define HAVE_STRDUP 1
1576 +/* Define to 1 if you have the `strerror' function. */
1577 +#define HAVE_STRERROR 1
1579 +/* Define to 1 if you have the `strerror_r' function. */
1581 +#define HAVE_STRERROR_R 1
1584 +/* Define to 1 if you have the <strings.h> header file. */
1585 +#define HAVE_STRINGS_H 1
1587 +/* Define to 1 if you have the <string.h> header file. */
1588 +#define HAVE_STRING_H 1
1590 +/* Define to 1 if you have the `strrchr' function. */
1591 +#define HAVE_STRRCHR 1
1593 +/* Define to 1 if you have the `strtof' function. */
1594 +#define HAVE_STRTOF 1
1596 +/* Define to 1 if you have the `strtoll' function. */
1597 +#define HAVE_STRTOLL 1
1599 +/* Define to 1 if you have the `strtoq' function. */
1600 +#define HAVE_STRTOQ 1
1602 +/* Define to 1 if you have the `sysconf' function. */
1603 +#define HAVE_SYSCONF 1
1605 +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
1607 +/* #undef HAVE_SYS_DIR_H */
1609 +/* Define to 1 if you have the <sys/dl.h> header file. */
1610 +/* #undef HAVE_SYS_DL_H */
1612 +/* Define to 1 if you have the <sys/ioctl.h> header file. */
1613 +#define HAVE_SYS_IOCTL_H 1
1615 +/* Define to 1 if you have the <sys/mman.h> header file. */
1616 +#define HAVE_SYS_MMAN_H 1
1618 +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
1620 +/* #undef HAVE_SYS_NDIR_H */
1622 +/* Define to 1 if you have the <sys/param.h> header file. */
1623 +#define HAVE_SYS_PARAM_H 1
1625 +/* Define to 1 if you have the <sys/resource.h> header file. */
1626 +#define HAVE_SYS_RESOURCE_H 1
1628 +/* Define to 1 if you have the <sys/stat.h> header file. */
1629 +#define HAVE_SYS_STAT_H 1
1631 +/* Define to 1 if you have the <sys/time.h> header file. */
1632 +#define HAVE_SYS_TIME_H 1
1634 +/* Define to 1 if you have the <sys/types.h> header file. */
1635 +#define HAVE_SYS_TYPES_H 1
1637 +/* Define to 1 if you have the <sys/uio.h> header file. */
1638 +/* #define HAVE_SYS_UIO_H 1 */
1640 +/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
1641 +#define HAVE_SYS_WAIT_H 1
1643 +/* Define to 1 if you have the <termios.h> header file. */
1644 +#define HAVE_TERMIOS_H 1
1646 +/* Define if the neat program is available */
1647 +/* #undef HAVE_TWOPI */
1649 +/* Define to 1 if the system has the type `uint64_t'. */
1650 +#define HAVE_UINT64_T 1
1652 +/* Define to 1 if you have the <unistd.h> header file. */
1653 +#define HAVE_UNISTD_H 1
1655 +/* Define to 1 if you have the <utime.h> header file. */
1656 +#define HAVE_UTIME_H 1
1658 +/* Define to 1 if the system has the type `u_int64_t'. */
1659 +/* #undef HAVE_U_INT64_T */
1661 +/* Define to 1 if you have the <valgrind/valgrind.h> header file. */
1662 +/* #undef HAVE_VALGRIND_VALGRIND_H */
1664 +#if defined(_WIN32) || defined(_WIN64)
1665 +/* Define to 1 if you have the <windows.h> header file. */
1666 +#define HAVE_WINDOWS_H 1
1668 +/* Define to 1 if you have the `writev' function. */
1669 +/* #undef HAVE_WRITEV */
1672 +/* Define to 1 if you have the <windows.h> header file. */
1673 +/* #undef HAVE_WINDOWS_H */
1675 +/* Define to 1 if you have the `writev' function. */
1676 +#define HAVE_WRITEV 1
1679 +/* Define if the xdot.py program is available */
1680 +/* #undef HAVE_XDOT_PY */
1682 +/* Have host's _alloca */
1683 +/* #undef HAVE__ALLOCA */
1685 +/* Have host's __alloca */
1686 +/* #undef HAVE___ALLOCA */
1688 +/* Have host's __ashldi3 */
1689 +/* #undef HAVE___ASHLDI3 */
1691 +/* Have host's __ashrdi3 */
1692 +/* #undef HAVE___ASHRDI3 */
1694 +/* Have host's __chkstk */
1695 +/* #undef HAVE___CHKSTK */
1697 +/* Have host's __cmpdi2 */
1698 +/* #undef HAVE___CMPDI2 */
1700 +/* Have host's __divdi3 */
1701 +/* #undef HAVE___DIVDI3 */
1703 +/* Define to 1 if you have the `__dso_handle' function. */
1704 +/* #undef HAVE___DSO_HANDLE */
1706 +/* Have host's __fixdfdi */
1707 +/* #undef HAVE___FIXDFDI */
1709 +/* Have host's __fixsfdi */
1710 +/* #undef HAVE___FIXSFDI */
1712 +/* Have host's __floatdidf */
1713 +/* #undef HAVE___FLOATDIDF */
1715 +/* Have host's __lshrdi3 */
1716 +/* #undef HAVE___LSHRDI3 */
1718 +/* Have host's __main */
1719 +/* #undef HAVE___MAIN */
1721 +/* Have host's __moddi3 */
1722 +/* #undef HAVE___MODDI3 */
1724 +/* Have host's __udivdi3 */
1725 +/* #undef HAVE___UDIVDI3 */
1727 +/* Have host's __umoddi3 */
1728 +/* #undef HAVE___UMODDI3 */
1730 +/* Have host's ___chkstk */
1731 +/* #undef HAVE____CHKSTK */
1733 +/* Linker version detected at compile time. */
1734 +#define HOST_LINK_VERSION "2.20.1"
1736 +/* Installation directory for binary executables */
1737 +#define LLVM_BINDIR "/opt/llvm-android/bin"
1739 +/* Time at which LLVM was configured */
1740 +#define LLVM_CONFIGTIME "Tue May 8 14:22:45 CST 2012"
1742 +/* Installation directory for data files */
1743 +#define LLVM_DATADIR "/opt/llvm-android/share/llvm"
1745 +/* Target triple LLVM will generate code for by default */
1746 +#define LLVM_DEFAULT_TARGET_TRIPLE "i386-unknown-linux"
1748 +/* Installation directory for documentation */
1749 +#define LLVM_DOCSDIR "/opt/llvm-android/share/doc/llvm"
1751 +/* Define if threads enabled */
1752 +#define LLVM_ENABLE_THREADS 1
1754 +/* Installation directory for config files */
1755 +#define LLVM_ETCDIR "/opt/llvm-android/etc/llvm"
1757 +#if !defined(_WIN32) && !defined(_WIN64)
1759 +/* Has gcc/MSVC atomic intrinsics */
1760 +#define LLVM_HAS_ATOMICS 1
1764 +#define LLVM_HAS_ATOMICS 0
1766 +#endif /* !defined(_WIN32) && !defined(_WIN64) */
1768 +/* Installation directory for include files */
1769 +#define LLVM_INCLUDEDIR "/opt/llvm-android/include"
1771 +/* Installation directory for .info files */
1772 +#define LLVM_INFODIR "/opt/llvm-android/info"
1774 +/* Installation directory for libraries */
1775 +#define LLVM_LIBDIR "/opt/llvm-android/lib"
1777 +/* Installation directory for man pages */
1778 +#define LLVM_MANDIR "/opt/llvm-android/man"
1780 +/* Define to path to circo program if found or 'echo circo' otherwise */
1781 +/* #undef LLVM_PATH_CIRCO */
1783 +/* Define to path to dot program if found or 'echo dot' otherwise */
1784 +/* #undef LLVM_PATH_DOT */
1786 +/* Define to path to dotty program if found or 'echo dotty' otherwise */
1787 +/* #undef LLVM_PATH_DOTTY */
1789 +/* Define to path to fdp program if found or 'echo fdp' otherwise */
1790 +/* #undef LLVM_PATH_FDP */
1792 +/* Define to path to Graphviz program if found or 'echo Graphviz' otherwise */
1793 +/* #undef LLVM_PATH_GRAPHVIZ */
1795 +/* Define to path to gv program if found or 'echo gv' otherwise */
1796 +/* #undef LLVM_PATH_GV */
1798 +/* Define to path to neato program if found or 'echo neato' otherwise */
1799 +/* #undef LLVM_PATH_NEATO */
1801 +/* Define to path to twopi program if found or 'echo twopi' otherwise */
1802 +/* #undef LLVM_PATH_TWOPI */
1804 +/* Define to path to xdot.py program if found or 'echo xdot.py' otherwise */
1805 +/* #undef LLVM_PATH_XDOT_PY */
1807 +/* Installation prefix directory */
1808 +#define LLVM_PREFIX "/opt/llvm-android"
1810 +/* Define if we have the Intel JIT API runtime support library */
1811 +#define LLVM_USE_INTEL_JITEVENTS 0
1813 +/* Define if we have the oprofile JIT-support library */
1814 +#define LLVM_USE_OPROFILE 0
1816 +/* Major version of the LLVM API */
1817 +#define LLVM_VERSION_MAJOR 3
1819 +/* Minor version of the LLVM API */
1820 +#define LLVM_VERSION_MINOR 5
1822 +/* Define if the OS needs help to load dependent libraries for dlopen(). */
1823 +/* #undef LTDL_DLOPEN_DEPLIBS */
1825 +/* Define to the sub-directory in which libtool stores uninstalled libraries.
1827 +#define LTDL_OBJDIR ".libs/"
1829 +/* Define to the name of the environment variable that determines the dynamic
1830 + library search path. */
1831 +#define LTDL_SHLIBPATH_VAR "LD_LIBRARY_PATH"
1833 +/* Define to the extension used for shared libraries, say, ".so". */
1834 +#define LTDL_SHLIB_EXT ".so"
1836 +/* Define to the system default library search path. */
1837 +#define LTDL_SYSSEARCHPATH "/lib:/usr/lib:/usr/local/lib:/lib:/usr/lib:/lib64:/usr/lib64:/usr/local/lib64:/lib32:/usr/lib32:/usr/local/lib32:/usr/x86_64-pc-linux-gnu/lib:/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4:/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/32:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32"
1839 +/* Define if /dev/zero should be used when mapping RWX memory, or undefine if
1840 + its not necessary */
1841 +/* #undef NEED_DEV_ZERO_FOR_MMAP */
1843 +/* Define if dlsym() requires a leading underscore in symbol names. */
1844 +/* #undef NEED_USCORE */
1846 +/* Define to the address where bug reports for this package should be sent. */
1847 +#define PACKAGE_BUGREPORT "http://llvm.org/bugs/"
1849 +/* Define to the full name of this package. */
1850 +#define PACKAGE_NAME "LLVM"
1852 +/* Define to the full name and version of this package. */
1853 +#define PACKAGE_STRING "LLVM 3.4"
1855 +/* Define to the one symbol short name of this package. */
1856 +#define PACKAGE_TARNAME "llvm"
1858 +/* Define to the version of this package. */
1859 +#define PACKAGE_VERSION "3.4"
1861 +/* Define as the return type of signal handlers (`int' or `void'). */
1862 +#define RETSIGTYPE void
1864 +/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
1865 +/* #undef STAT_MACROS_BROKEN */
1867 +/* Define to 1 if you have the ANSI C header files. */
1868 +#define STDC_HEADERS 1
1870 +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
1871 +#define TIME_WITH_SYS_TIME 1
1873 +/* Define to 1 if your <sys/time.h> declares `struct tm'. */
1874 +/* #undef TM_IN_SYS_TIME */
1876 +/* Define if use udis86 library */
1877 +#define USE_UDIS86 0
1879 +/* Define to empty if `const' does not conform to ANSI C. */
1882 +/* Define to a type to use for `error_t' if it is not otherwise available. */
1883 +/* #undef error_t */
1885 +/* Define to `int' if <sys/types.h> does not define. */
1888 +/* Define to `unsigned int' if <sys/types.h> does not define. */
1889 +/* #undef size_t */
1891 +#include "llvm/Config/llvm-platform-config.h"
1894 diff --git a/host/include/llvm/Config/llvm-config.h b/host/include/llvm/Config/llvm-config.h
1895 new file mode 100644
1896 index 0000000..95f85fe
1898 +++ b/host/include/llvm/Config/llvm-config.h
1900 +/* include/llvm/Config/llvm-config.h. Generated from llvm-config.h.in by configure. */
1901 +/*===-- llvm/config/llvm-config.h - llvm configure variable -------*- C -*-===*/
1903 +/* The LLVM Compiler Infrastructure */
1905 +/* This file is distributed under the University of Illinois Open Source */
1906 +/* License. See LICENSE.TXT for details. */
1908 +/*===----------------------------------------------------------------------===*/
1910 +/* This file enumerates all of the llvm variables from configure so that
1911 + they can be in exported headers and won't override package specific
1912 + directives. This is a C file so we can include it in the llvm-c headers. */
1914 +/* To avoid multiple inclusions of these variables when we include the exported
1915 + headers and config.h, conditionally include these. */
1916 +/* TODO: This is a bit of a hack. */
1919 +/* Installation directory for binary executables */
1920 +#define LLVM_BINDIR "/opt/llvm-android/bin"
1922 +/* Time at which LLVM was configured */
1923 +#define LLVM_CONFIGTIME "Tue May 8 14:22:45 CST 2012"
1925 +/* Installation directory for data files */
1926 +#define LLVM_DATADIR "/opt/llvm-android/share/llvm"
1928 +/* Target triple LLVM will generate code for by default */
1929 +#define LLVM_DEFAULT_TARGET_TRIPLE "i386-unknown-linux"
1931 +/* Installation directory for documentation */
1932 +#define LLVM_DOCSDIR "/opt/llvm-android/share/doc/llvm"
1934 +/* Define if threads enabled */
1935 +#define LLVM_ENABLE_THREADS 1
1937 +/* Installation directory for config files */
1938 +#define LLVM_ETCDIR "/opt/llvm-android/etc/llvm"
1940 +#if !defined(_WIN32) && !defined(_WIN64)
1942 +/* Has gcc/MSVC atomic intrinsics */
1943 +#define LLVM_HAS_ATOMICS 1
1947 +#define LLVM_HAS_ATOMICS 0
1949 +#endif /* !defined(_WIN32) && !defined(_WIN64) */
1951 +/* Installation directory for include files */
1952 +#define LLVM_INCLUDEDIR "/opt/llvm-android/include"
1954 +/* Installation directory for .info files */
1955 +#define LLVM_INFODIR "/opt/llvm-android/info"
1957 +/* Installation directory for libraries */
1958 +#define LLVM_LIBDIR "/opt/llvm-android/lib"
1960 +/* Installation directory for man pages */
1961 +#define LLVM_MANDIR "/opt/llvm-android/man"
1963 +/* Define to path to circo program if found or 'echo circo' otherwise */
1964 +/* #undef LLVM_PATH_CIRCO */
1966 +/* Define to path to dot program if found or 'echo dot' otherwise */
1967 +/* #undef LLVM_PATH_DOT */
1969 +/* Define to path to dotty program if found or 'echo dotty' otherwise */
1970 +/* #undef LLVM_PATH_DOTTY */
1972 +/* Define to path to fdp program if found or 'echo fdp' otherwise */
1973 +/* #undef LLVM_PATH_FDP */
1975 +/* Define to path to Graphviz program if found or 'echo Graphviz' otherwise */
1976 +/* #undef LLVM_PATH_GRAPHVIZ */
1978 +/* Define to path to gv program if found or 'echo gv' otherwise */
1979 +/* #undef LLVM_PATH_GV */
1981 +/* Define to path to neato program if found or 'echo neato' otherwise */
1982 +/* #undef LLVM_PATH_NEATO */
1984 +/* Define to path to twopi program if found or 'echo twopi' otherwise */
1985 +/* #undef LLVM_PATH_TWOPI */
1987 +/* Define to path to xdot.py program if found or 'echo xdot.py' otherwise */
1988 +/* #undef LLVM_PATH_XDOT_PY */
1990 +/* Installation prefix directory */
1991 +#define LLVM_PREFIX "/opt/llvm-android"
1993 +/* Major version of the LLVM API */
1994 +#define LLVM_VERSION_MAJOR 3
1996 +/* Minor version of the LLVM API */
1997 +#define LLVM_VERSION_MINOR 5
1999 +#include "llvm/Config/llvm-platform-config.h"
2002 diff --git a/include/llvm/Config/llvm-platform-config.h b/include/llvm/Config/llvm-platform-config.h
2003 new file mode 100644
2004 index 0000000..cd005be
2006 +++ b/include/llvm/Config/llvm-platform-config.h
2008 +#ifndef LLVM_NATIVE_CONFIG_H
2010 +/*===-- llvm/config/llvm-native-config.h --------------------------*- C -*-===*/
2012 +/* The LLVM Compiler Infrastructure */
2014 +/* This file is distributed under the University of Illinois Open Source */
2015 +/* License. See LICENSE.TXT for details. */
2017 +/*===----------------------------------------------------------------------===*/
2019 +#if defined(__i386__) || defined(__x86_64__)
2021 +/* LLVM architecture name for the native architecture, if available */
2022 +#define LLVM_NATIVE_ARCH X86
2024 +/* Host triple LLVM will be executed on */
2025 +#define LLVM_HOST_TRIPLE "i686-unknown-linux-gnu"
2027 +/* LLVM name for the native AsmParser init function, if available */
2028 +#define LLVM_NATIVE_ASMPARSER LLVMInitializeX86AsmParser
2030 +/* LLVM name for the native AsmPrinter init function, if available */
2031 +#define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter
2033 +/* LLVM name for the native Disassembler init function, if available */
2034 +#define LLVM_NATIVE_DISASSEMBLER LLVMInitializeX86Disassembler
2036 +/* LLVM name for the native Target init function, if available */
2037 +#define LLVM_NATIVE_TARGET LLVMInitializeX86Target
2039 +/* LLVM name for the native TargetInfo init function, if available */
2040 +#define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo
2042 +/* LLVM name for the native target MC init function, if available */
2043 +#define LLVM_NATIVE_TARGETMC LLVMInitializeX86TargetMC
2046 +#elif defined(__arm__)
2048 +/* LLVM architecture name for the native architecture, if available */
2049 +#define LLVM_NATIVE_ARCH ARM
2051 +/* Host triple LLVM will be executed on */
2052 +#define LLVM_HOST_TRIPLE "arm-unknown-linux-gnu"
2054 +/* LLVM name for the native AsmParser init function, if available */
2055 +#define LLVM_NATIVE_ASMPARSER LLVMInitializeARMAsmParser
2057 +/* LLVM name for the native AsmPrinter init function, if available */
2058 +#define LLVM_NATIVE_ASMPRINTER LLVMInitializeARMAsmPrinter
2060 +/* LLVM name for the native Disassembler init function, if available */
2061 +#define LLVM_NATIVE_DISASSEMBLER LLVMInitializeARMDisassembler
2063 +/* LLVM name for the native Target init function, if available */
2064 +#define LLVM_NATIVE_TARGET LLVMInitializeARMTarget
2066 +/* LLVM name for the native TargetInfo init function, if available */
2067 +#define LLVM_NATIVE_TARGETINFO LLVMInitializeARMTargetInfo
2069 +/* LLVM name for the native target MC init function, if available */
2070 +#define LLVM_NATIVE_TARGETMC LLVMInitializeARMTargetMC
2073 +#elif defined(__mips__)
2075 +/* LLVM architecture name for the native architecture, if available */
2076 +#define LLVM_NATIVE_ARCH Mips
2078 +/* Host triple LLVM will be executed on */
2079 +#define LLVM_HOST_TRIPLE "mipsel-unknown-linux-gnu"
2081 +/* LLVM name for the native AsmParser init function, if available */
2082 +#define LLVM_NATIVE_ASMPARSER LLVMInitializeMipsAsmParser
2084 +/* LLVM name for the native AsmPrinter init function, if available */
2085 +#define LLVM_NATIVE_ASMPRINTER LLVMInitializeMipsAsmPrinter
2087 +/* LLVM name for the native Disassembler init function, if available */
2088 +#define LLVM_NATIVE_DISASSEMBLER LLVMInitializeMipsDisassembler
2090 +/* LLVM name for the native Target init function, if available */
2091 +#define LLVM_NATIVE_TARGET LLVMInitializeMipsTarget
2093 +/* LLVM name for the native TargetInfo init function, if available */
2094 +#define LLVM_NATIVE_TARGETINFO LLVMInitializeMipsTargetInfo
2096 +/* LLVM name for the native target MC init function, if available */
2097 +#define LLVM_NATIVE_TARGETMC LLVMInitializeMipsTargetMC
2099 +#elif defined(__aarch64__)
2101 +/* LLVM architecture name for the native architecture, if available */
2102 +#define LLVM_NATIVE_ARCH AArch64
2104 +/* Host triple LLVM will be executed on */
2105 +#define LLVM_HOST_TRIPLE "aarch64-none-linux-gnu"
2107 +/* LLVM name for the native AsmParser init function, if available */
2108 +#define LLVM_NATIVE_ASMPARSER LLVMInitializeAArch64AsmParser
2110 +/* LLVM name for the native AsmPrinter init function, if available */
2111 +#define LLVM_NATIVE_ASMPRINTER LLVMInitializeAArch64AsmPrinter
2113 +/* LLVM name for the native Disassembler init function, if available */
2114 +#define LLVM_NATIVE_DISASSEMBLER LLVMInitializeAArch64Disassembler
2116 +/* LLVM name for the native Target init function, if available */
2117 +#define LLVM_NATIVE_TARGET LLVMInitializeAArch64Target
2119 +/* LLVM name for the native TargetInfo init function, if available */
2120 +#define LLVM_NATIVE_TARGETINFO LLVMInitializeAArch64TargetInfo
2122 +/* LLVM name for the native target MC init function, if available */
2123 +#define LLVM_NATIVE_TARGETMC LLVMInitializeAArch64TargetMC
2127 +#error "Unknown native architecture"
2133 +#if defined(_WIN32) || defined(_WIN64)
2135 +/* Define if this is Unixish platform */
2136 +/* #undef LLVM_ON_UNIX */
2138 +/* Define if this is Win32ish platform */
2139 +#define LLVM_ON_WIN32 1
2141 +/* Define to 1 if you have the <windows.h> header file. */
2142 +#define HAVE_WINDOWS_H 1
2144 +/* Define to 1 if you have the `psapi' library (-lpsapi). */
2145 +#define HAVE_LIBPSAPI 1
2147 +/* Define to 1 if you have the `imagehlp' library (-limagehlp). */
2148 +#define HAVE_LIBIMAGEHLP 1
2150 +/* Type of 1st arg on ELM Callback */
2151 +#define WIN32_ELMCB_PCSTR PSTR
2154 +#else /* Linux, Mac OS X, ... Unixish platform */
2156 +/* Define if this is Unixish platform */
2157 +#define LLVM_ON_UNIX 1
2159 +/* Define if this is Win32ish platform */
2160 +/* #undef LLVM_ON_WIN32 */
2162 +/* Type of 1st arg on ELM Callback */
2163 +/* #undef WIN32_ELMCB_PCSTR */
2167 +#endif // LLVM_NATIVE_CONFIG_H
2168 diff --git a/include/llvm/Support/DataTypes.h b/include/llvm/Support/DataTypes.h
2169 new file mode 100644
2170 index 0000000..a4a65b8
2172 +++ b/include/llvm/Support/DataTypes.h
2174 +/* include/llvm/Support/DataTypes.h. Generated from DataTypes.h.in by configure. */
2175 +/*===-- include/Support/DataTypes.h - Define fixed size types -----*- C -*-===*\
2177 +|* The LLVM Compiler Infrastructure *|
2179 +|* This file is distributed under the University of Illinois Open Source *|
2180 +|* License. See LICENSE.TXT for details. *|
2182 +|*===----------------------------------------------------------------------===*|
2184 +|* This file contains definitions to figure out the size of _HOST_ data types.*|
2185 +|* This file is important because different host OS's define different macros,*|
2186 +|* which makes portability tough. This file exports the following *|
2189 +|* [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system types*|
2190 +|* [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. *|
2192 +|* No library is required when using these functions. *|
2194 +|*===----------------------------------------------------------------------===*/
2196 +/* Please leave this file C-compatible. */
2198 +/* Please keep this file in sync with DataTypes.h.cmake */
2200 +#ifndef SUPPORT_DATATYPES_H
2201 +#define SUPPORT_DATATYPES_H
2203 +#define HAVE_SYS_TYPES_H 1
2204 +#define HAVE_INTTYPES_H 1
2205 +#define HAVE_STDINT_H 1
2206 +#define HAVE_UINT64_T 1
2207 +/* #undef HAVE_U_INT64_T */
2217 +/* Note that this header's correct operation depends on __STDC_LIMIT_MACROS
2218 + being defined. We would define it here, but in order to prevent Bad Things
2219 + happening when system headers or C++ STL headers include stdint.h before we
2220 + define it here, we define it on the g++ command line (in Makefile.rules). */
2221 +#if !defined(__STDC_LIMIT_MACROS)
2222 +# error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
2225 +#if !defined(__STDC_CONSTANT_MACROS)
2226 +# error "Must #define __STDC_CONSTANT_MACROS before " \
2227 + "#including Support/DataTypes.h"
2230 +/* Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. */
2231 +#ifdef HAVE_SYS_TYPES_H
2232 +#include <sys/types.h>
2235 +#ifdef HAVE_INTTYPES_H
2236 +#include <inttypes.h>
2239 +#ifdef HAVE_STDINT_H
2240 +#include <stdint.h>
2244 +#include "llvm/Support/AIXDataTypesFix.h"
2247 +/* Handle incorrect definition of uint64_t as u_int64_t */
2248 +#ifndef HAVE_UINT64_T
2249 +#ifdef HAVE_U_INT64_T
2250 +typedef u_int64_t uint64_t;
2252 +# error "Don't have a definition for uint64_t on this platform"
2257 +#define INT8_MAX 127
2258 +#define INT8_MIN -128
2259 +#define UINT8_MAX 255
2260 +#define INT16_MAX 32767
2261 +#define INT16_MIN -32768
2262 +#define UINT16_MAX 65535
2263 +#define INT32_MAX 2147483647
2264 +#define INT32_MIN -2147483648
2265 +#define UINT32_MAX 4294967295U
2268 +#else /* _MSC_VER */
2269 +/* Visual C++ doesn't provide standard integer headers, but it does provide
2270 + built-in data types. */
2271 +#include <stdlib.h>
2272 +#include <stddef.h>
2273 +#include <sys/types.h>
2279 +typedef __int64 int64_t;
2280 +typedef unsigned __int64 uint64_t;
2281 +typedef signed int int32_t;
2282 +typedef unsigned int uint32_t;
2283 +typedef short int16_t;
2284 +typedef unsigned short uint16_t;
2285 +typedef signed char int8_t;
2286 +typedef unsigned char uint8_t;
2287 +typedef signed int ssize_t;
2289 +# define INT8_MAX 127
2292 +# define INT8_MIN -128
2295 +# define UINT8_MAX 255
2298 +# define INT16_MAX 32767
2301 +# define INT16_MIN -32768
2304 +# define UINT16_MAX 65535
2307 +# define INT32_MAX 2147483647
2310 +/* MSC treats -2147483648 as -(2147483648U). */
2311 +# define INT32_MIN (-INT32_MAX - 1)
2314 +# define UINT32_MAX 4294967295U
2316 +/* Certain compatibility updates to VC++ introduce the `cstdint'
2317 + * header, which defines the INT*_C macros. On default installs they
2320 +# define INT8_C(C) C##i8
2323 +# define UINT8_C(C) C##ui8
2326 +# define INT16_C(C) C##i16
2329 +# define UINT16_C(C) C##ui16
2332 +# define INT32_C(C) C##i32
2335 +# define UINT32_C(C) C##ui32
2338 +# define INT64_C(C) C##i64
2341 +# define UINT64_C(C) C##ui64
2345 +# define PRId64 "I64d"
2348 +# define PRIi64 "I64i"
2351 +# define PRIo64 "I64o"
2354 +# define PRIu64 "I64u"
2357 +# define PRIx64 "I64x"
2360 +# define PRIX64 "I64X"
2363 +#endif /* _MSC_VER */
2365 +/* Set defaults for constants which we cannot find. */
2366 +#if !defined(INT64_MAX)
2367 +# define INT64_MAX 9223372036854775807LL
2369 +#if !defined(INT64_MIN)
2370 +# define INT64_MIN ((-INT64_MAX)-1)
2372 +#if !defined(UINT64_MAX)
2373 +# define UINT64_MAX 0xffffffffffffffffULL
2377 +#define END_WITH_NULL __attribute__((sentinel))
2379 +#define END_WITH_NULL
2383 +#define HUGE_VALF (float)HUGE_VAL
2386 +#endif /* SUPPORT_DATATYPES_H */