From 09bfd0431871c93a49e862ab05fa8a9c67af72cd Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 3 Jan 2017 20:28:09 +0000 Subject: [PATCH] Initial updates to llvm/clang build glue. --- lib/clang/headers/Makefile | 4 +- lib/clang/include/clang/Basic/Version.inc | 11 +- lib/clang/include/clang/Config/config.h | 11 +- lib/clang/include/llvm/Config/abi-breaking.h | 49 ++++ lib/clang/include/llvm/Config/config.h | 268 ++++--------------- lib/clang/include/llvm/Config/llvm-config.h | 44 +-- lib/clang/libclang/Makefile | 25 ++ lib/clang/liblldb/Makefile | 7 - lib/clang/libllvm/Makefile | 124 ++++++--- lib/clang/libllvmminimal/Makefile | 9 +- usr.bin/clang/lld/Makefile | 1 - usr.bin/clang/llvm-objdump/Makefile | 1 + usr.bin/clang/llvm-tblgen/Makefile | 3 + 13 files changed, 258 insertions(+), 299 deletions(-) create mode 100644 lib/clang/include/llvm/Config/abi-breaking.h diff --git a/lib/clang/headers/Makefile b/lib/clang/headers/Makefile index 819974adaf3e..5036a17a0ab2 100644 --- a/lib/clang/headers/Makefile +++ b/lib/clang/headers/Makefile @@ -8,7 +8,9 @@ INCSDIR= ${LIBDIR}/clang/3.9.1/include GENINCS+= arm_neon.h +INCS+= __clang_cuda_builtin_vars.h INCS+= __clang_cuda_cmath.h +INCS+= __clang_cuda_complex_builtins.h INCS+= __clang_cuda_intrinsics.h INCS+= __clang_cuda_math_forward_declares.h INCS+= __clang_cuda_runtime_wrapper.h @@ -19,6 +21,7 @@ INCS+= adxintrin.h INCS+= altivec.h INCS+= ammintrin.h INCS+= arm_acle.h +INCS+= armintr.h INCS+= avx2intrin.h INCS+= avx512bwintrin.h INCS+= avx512cdintrin.h @@ -39,7 +42,6 @@ INCS+= bmi2intrin.h INCS+= bmiintrin.h INCS+= clflushoptintrin.h INCS+= cpuid.h -INCS+= cuda_builtin_vars.h INCS+= emmintrin.h INCS+= f16cintrin.h INCS+= fma4intrin.h diff --git a/lib/clang/include/clang/Basic/Version.inc b/lib/clang/include/clang/Basic/Version.inc index b9d37e10f845..ba0c89899a63 100644 --- a/lib/clang/include/clang/Basic/Version.inc +++ b/lib/clang/include/clang/Basic/Version.inc @@ -1,10 +1,11 @@ /* $FreeBSD$ */ -#define CLANG_VERSION 3.9.1 -#define CLANG_VERSION_MAJOR 3 -#define CLANG_VERSION_MINOR 9 -#define CLANG_VERSION_PATCHLEVEL 1 +#define CLANG_VERSION 4.0.0 +#define CLANG_VERSION_STRING "4.0.0" +#define CLANG_VERSION_MAJOR 4 +#define CLANG_VERSION_MINOR 0 +#define CLANG_VERSION_PATCHLEVEL 0 #define CLANG_VENDOR "FreeBSD " -#define SVN_REVISION "289601" +#define SVN_REVISION "290819" diff --git a/lib/clang/include/clang/Config/config.h b/lib/clang/include/clang/Config/config.h index 76c17ab8c870..e68e001ba783 100644 --- a/lib/clang/include/clang/Config/config.h +++ b/lib/clang/include/clang/Config/config.h @@ -9,9 +9,15 @@ /* Bug report URL. */ #define BUG_REPORT_URL "https://bugs.freebsd.org/submit/" +/* Default linker to use. */ +#define CLANG_DEFAULT_LINKER "" + /* Default C++ stdlib to use. */ #define CLANG_DEFAULT_CXX_STDLIB "" +/* Default runtime library to use. */ +#define CLANG_DEFAULT_RTLIB "" + /* Default OpenMP runtime used by -fopenmp. */ #define CLANG_DEFAULT_OPENMP_RUNTIME "libomp" @@ -33,8 +39,11 @@ /* Define if we have libxml2 */ /* #undef CLANG_HAVE_LIBXML */ +/* Define if we have sys/resource.h (rlimits) */ +#define CLANG_HAVE_RLIMITS 1 + /* The LLVM product name and version */ -#define BACKEND_PACKAGE_STRING "LLVM 3.9.1" +#define BACKEND_PACKAGE_STRING "LLVM 4.0.0svn" /* Linker version detected at compile time. */ /* #undef HOST_LINK_VERSION */ diff --git a/lib/clang/include/llvm/Config/abi-breaking.h b/lib/clang/include/llvm/Config/abi-breaking.h new file mode 100644 index 000000000000..39c4162e30db --- /dev/null +++ b/lib/clang/include/llvm/Config/abi-breaking.h @@ -0,0 +1,49 @@ +/* $FreeBSD$ */ +/*===------- llvm/Config/abi-breaking.h - llvm configuration -------*- C -*-===*/ +/* */ +/* The LLVM Compiler Infrastructure */ +/* */ +/* This file is distributed under the University of Illinois Open Source */ +/* License. See LICENSE.TXT for details. */ +/* */ +/*===----------------------------------------------------------------------===*/ + +/* This file controls the C++ ABI break introduced in LLVM public header. */ + +#ifndef LLVM_ABI_BREAKING_CHECKS_H +#define LLVM_ABI_BREAKING_CHECKS_H + +/* Define to enable checks that alter the LLVM C++ ABI */ +#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1 + +/* Define to disable the link-time checking of mismatch for + LLVM_ENABLE_ABI_BREAKING_CHECKS */ +#define LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING 0 +#if !LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING + +// ABI_BREAKING_CHECKS protection: provides link-time failure when clients build +// mismatch with LLVM +#if defined(_MSC_VER) +// Use pragma with MSVC +#define LLVM_XSTR(s) LLVM_STR(s) +#define LLVM_STR(s) #s +#pragma detect_mismatch("LLVM_ENABLE_ABI_BREAKING_CHECKS", LLVM_XSTR(LLVM_ENABLE_ABI_BREAKING_CHECKS)) +#undef LLVM_XSTR +#undef LLVM_STR +#elif defined(_WIN32) || defined(__CYGWIN__) // Win32 w/o #pragma detect_mismatch +// FIXME: Implement checks without weak. +#elif defined(__cplusplus) +namespace llvm { +#if LLVM_ENABLE_ABI_BREAKING_CHECKS +extern int EnableABIBreakingChecks; +__attribute__((weak, visibility ("hidden"))) int *VerifyEnableABIBreakingChecks = &EnableABIBreakingChecks; +#else +extern int DisableABIBreakingChecks; +__attribute__((weak, visibility ("hidden"))) int *VerifyDisableABIBreakingChecks = &DisableABIBreakingChecks; +#endif +} +#endif // _MSC_VER + +#endif // LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING + +#endif diff --git a/lib/clang/include/llvm/Config/config.h b/lib/clang/include/llvm/Config/config.h index 63efb266ea9f..aec526156517 100644 --- a/lib/clang/include/llvm/Config/config.h +++ b/lib/clang/include/llvm/Config/config.h @@ -11,62 +11,50 @@ /* Bug report URL. */ #define BUG_REPORT_URL "https://bugs.freebsd.org/submit/" -/* Define if you want backtraces on crash */ -#define ENABLE_BACKTRACES +/* Define to 1 to enable backtraces, and to 0 otherwise. */ +#define ENABLE_BACKTRACES 1 -/* Define to enable crash overrides */ -#define ENABLE_CRASH_OVERRIDES - -/* Define if position independent code is enabled */ -#define ENABLE_PIC - -/* Define to 1 if you have the `arc4random' function. */ -#define HAVE_DECL_ARC4RANDOM 1 +/* Define to 1 to enable crash overrides, and to 0 otherwise. */ +#define ENABLE_CRASH_OVERRIDES 1 /* Define to 1 if you have the `backtrace' function. */ /* #undef HAVE_BACKTRACE */ -/* Define to 1 if you have the `bcopy' function. */ -#undef HAVE_BCOPY - -/* Define to 1 if you have the `closedir' function. */ -#define HAVE_CLOSEDIR 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_CXXABI_H 1 - /* Define to 1 if you have the header file. */ -#undef HAVE_CRASHREPORTERCLIENT_H +/* #undef HAVE_CRASHREPORTERCLIENT_H */ /* can use __crashreporter_info__ */ -#undef HAVE_CRASHREPORTER_INFO +#define HAVE_CRASHREPORTER_INFO 0 + +/* Define to 1 if you have the declaration of `arc4random', and to 0 if you + don't. */ +#define HAVE_DECL_ARC4RANDOM 1 + +/* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you + don't. */ +#define HAVE_DECL_FE_ALL_EXCEPT 1 + +/* Define to 1 if you have the declaration of `FE_INEXACT', and to 0 if you + don't. */ +#define HAVE_DECL_FE_INEXACT 1 /* Define to 1 if you have the declaration of `strerror_s', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_S 0 /* Define to 1 if you have the DIA SDK installed, and to 0 if you don't. */ -/* #undef HAVE_DIA_SDK */ +#define HAVE_DIA_SDK 0 /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 -/* Define if you have the GNU dld library. */ -#undef HAVE_DLD - -/* Define to 1 if you have the `dlerror' function. */ -#define HAVE_DLERROR 1 - /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define if dlopen() is available on this platform. */ #define HAVE_DLOPEN 1 -/* Define if you have the _dyld_func_lookup function. */ -#undef HAVE_DYLD - /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 @@ -90,14 +78,14 @@ /* Define to 1 if you have the header file. */ /* #undef HAVE_FFI_H */ -/* Define to 1 if you have the `futimes' function. */ -#define HAVE_FUTIMES 1 - -/* Define to 1 if you have the `futimens' function */ +/* Define to 1 if you have the `futimens' function. */ #if __FreeBSD_version >= 1100056 #define HAVE_FUTIMENS 1 #endif +/* Define to 1 if you have the `futimes' function. */ +#define HAVE_FUTIMES 1 + /* Define to 1 if you have the `getcwd' function. */ #define HAVE_GETCWD 1 @@ -122,14 +110,8 @@ /* Define to 1 if you have the `isatty' function. */ #define HAVE_ISATTY 1 -/* Define if you have the libdl library or equivalent. */ -/* #undef HAVE_LIBDL */ - -/* Define to 1 if you have the `m' library (-lm). */ -#undef HAVE_LIBM - -/* Define to 1 if you have the `ole32' library (-lole32). */ -#undef HAVE_LIBOLE32 +/* Define to 1 if you have the `edit' library (-ledit). */ +#define HAVE_LIBEDIT 1 /* Define to 1 if you have the `psapi' library (-lpsapi). */ /* #undef HAVE_LIBPSAPI */ @@ -140,35 +122,22 @@ /* Define to 1 if you have the `shell32' library (-lshell32). */ /* #undef HAVE_LIBSHELL32 */ -/* Define to 1 if you have the 'z' library (-lz). */ +/* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 -/* Define to 1 if you have the 'edit' library (-ledit). */ -#define HAVE_LIBEDIT 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_LIMITS_H 1 - /* Define to 1 if you have the header file. */ #define HAVE_LINK_H 1 -/* Define if you can use -rdynamic. */ -#define HAVE_LINK_EXPORT_DYNAMIC 1 - -/* Define if you can use -Wl,-R. to pass -R. to the linker, in order to add - the current directory to the dynamic linker search path. */ -#undef HAVE_LINK_R - -/* Define to 1 if you have the `longjmp' function. */ -/* #undef HAVE_LONGJMP */ +/* Define to 1 if you have the `lseek64' function. */ +/* #undef HAVE_LSEEK64 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_MACH_MACH_H */ -/* Define to 1 if you have the header file. */ -/* #undef HAVE_MACH_O_DYLD_H */ +/* Define to 1 if you have the `mallctl' function. */ +#define HAVE_MALLCTL 1 -/* Define if mallinfo() is available on this platform. */ +/* Define to 1 if you have the `mallinfo' function. */ /* #undef HAVE_MALLINFO */ /* Define to 1 if you have the header file. */ @@ -180,9 +149,6 @@ /* Define to 1 if you have the `malloc_zone_statistics' function. */ /* #undef HAVE_MALLOC_ZONE_STATISTICS */ -/* Define to 1 if you have the `mallctl` function. */ -#define HAVE_MALLCTL 1 - /* Define to 1 if you have the `mkdtemp' function. */ #define HAVE_MKDTEMP 1 @@ -192,21 +158,11 @@ /* Define to 1 if you have the `mktemp' function. */ #define HAVE_MKTEMP 1 -/* Define to 1 if you have a working `mmap' system call. */ -#undef HAVE_MMAP - -/* Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, or undefine if - it uses MAP_ANON */ -#undef HAVE_MMAP_ANONYMOUS - -/* Define if mmap() can map files into memory */ -#undef HAVE_MMAP_FILE - /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ -/* Define to 1 if you have the `opendir' function. */ -#define HAVE_OPENDIR 1 +/* Define to 1 if you have the `posix_fallocate' function. */ +#define HAVE_POSIX_FALLOCATE 1 /* Define to 1 if you have the `posix_spawn' function. */ #define HAVE_POSIX_SPAWN 1 @@ -214,12 +170,6 @@ /* Define to 1 if you have the `pread' function. */ #define HAVE_PREAD 1 -/* Define if libtool can extract symbol lists from object files. */ -#undef HAVE_PRELOADED_SYMBOLS - -/* Define to have the %a format string */ -#undef HAVE_PRINTF_A - /* Have pthread_getspecific */ #define HAVE_PTHREAD_GETSPECIFIC 1 @@ -232,12 +182,6 @@ /* Have pthread_rwlock_init */ #define HAVE_PTHREAD_RWLOCK_INIT 1 -/* Define to 1 if srand48/lrand48/drand48 exist in */ -#define HAVE_RAND48 1 - -/* Define to 1 if you have the `readdir' function. */ -#define HAVE_READDIR 1 - /* Define to 1 if you have the `realpath' function. */ #define HAVE_REALPATH 1 @@ -247,39 +191,18 @@ /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 -/* Define to 1 if you have the `setjmp' function. */ -/* #undef HAVE_SETJMP */ - /* Define to 1 if you have the `setrlimit' function. */ #define HAVE_SETRLIMIT 1 -/* Define if you have the shl_load function. */ -#undef HAVE_SHL_LOAD - /* Define to 1 if you have the `sigaltstack' function. */ #define HAVE_SIGALTSTACK 1 -/* Define to 1 if you have the `siglongjmp' function. */ -/* #undef HAVE_SIGLONGJMP */ - /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 -/* Define to 1 if you have the `sigsetjmp' function. */ -/* #undef HAVE_SIGSETJMP */ - /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 -/* Set to 1 if the std::isinf function is found in */ -#undef HAVE_STD_ISINF_IN_CMATH - -/* Set to 1 if the std::isnan function is found in */ -#undef HAVE_STD_ISNAN_IN_CMATH - -/* Define to 1 if you have the `strdup' function. */ -/* #undef HAVE_STRDUP */ - /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 @@ -289,11 +212,8 @@ /* Define to 1 if you have the `strtoll' function. */ #define HAVE_STRTOLL 1 -/* Define to 1 if you have the `strtoq' function. */ -#define HAVE_STRTOQ 1 - /* Define to 1 if you have the `sysconf' function. */ -#undef HAVE_SYSCONF +#define HAVE_SYSCONF 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ @@ -303,7 +223,7 @@ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ -#define HAVE_SYS_MMAN_H +#define HAVE_SYS_MMAN_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ @@ -342,12 +262,6 @@ /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 -/* Define to 1 if you have the `_Unwind_Backtrace' function. */ -/* #undef HAVE_UNWIND_BACKTRACE */ - -/* Define to 1 if you have the header file. */ -#define HAVE_UTIME_H 1 - /* Define to 1 if the system has the type `u_int64_t'. */ #define HAVE_U_INT64_T 1 @@ -363,6 +277,12 @@ /* Have host's _alloca */ /* #undef HAVE__ALLOCA */ +/* Define to 1 if you have the `_chsize_s' function. */ +/* #undef HAVE__CHSIZE_S */ + +/* Define to 1 if you have the `_Unwind_Backtrace' function. */ +/* #undef HAVE__UNWIND_BACKTRACE */ + /* Have host's __alloca */ /* #undef HAVE___ALLOCA */ @@ -384,9 +304,6 @@ /* Have host's __divdi3 */ /* #undef HAVE___DIVDI3 */ -/* Define to 1 if you have the `__dso_handle' function. */ -#undef HAVE___DSO_HANDLE - /* Have host's __fixdfdi */ /* #undef HAVE___FIXDFDI */ @@ -418,53 +335,27 @@ /* #undef HAVE____CHKSTK_MS */ /* Linker version detected at compile time. */ -#undef HOST_LINK_VERSION +/* #undef HOST_LINK_VERSION */ -/* Installation directory for binary executables */ -/* #undef LLVM_BINDIR */ +/* Define if we link Polly to the tools */ +/* #undef LINK_POLLY_INTO_TOOLS */ -/* Time at which LLVM was configured */ -/* #undef LLVM_CONFIGTIME */ - -/* Installation directory for data files */ -/* #undef LLVM_DATADIR */ - -/* Target triple LLVM will generate code for by default - * Doesn't use `cmakedefine` because it is allowed to be empty. - */ +/* Target triple LLVM will generate code for by default */ +/* Doesn't use `cmakedefine` because it is allowed to be empty. */ /* #undef LLVM_DEFAULT_TARGET_TRIPLE */ -/* Installation directory for documentation */ -/* #undef LLVM_DOCSDIR */ - -/* Define if LLVM is built with asserts and checks that change the layout of - client-visible data structures. */ -#define LLVM_ENABLE_ABI_BREAKING_CHECKS - /* Define if threads enabled */ #define LLVM_ENABLE_THREADS 1 /* Define if zlib compression is available */ #define LLVM_ENABLE_ZLIB 1 -/* Installation directory for config files */ -/* #undef LLVM_ETCDIR */ - /* Has gcc/MSVC atomic intrinsics */ #define LLVM_HAS_ATOMICS 1 /* Host triple LLVM will be executed on */ /* #undef LLVM_HOST_TRIPLE */ -/* Installation directory for include files */ -/* #undef LLVM_INCLUDEDIR */ - -/* Installation directory for .info files */ -/* #undef LLVM_INFODIR */ - -/* Installation directory for man pages */ -/* #undef LLVM_MANDIR */ - /* LLVM architecture name for the native architecture, if available */ #define LLVM_NATIVE_ARCH X86 @@ -496,49 +387,29 @@ #define LLVM_PREFIX "/usr" /* Define if we have the Intel JIT API runtime support library */ -/* #undef LLVM_USE_INTEL_JITEVENTS */ +#define LLVM_USE_INTEL_JITEVENTS 0 /* Define if we have the oprofile JIT-support library */ -/* #undef LLVM_USE_OPROFILE */ - -/* Major version of the LLVM API */ -#define LLVM_VERSION_MAJOR 3 - -/* Minor version of the LLVM API */ -#define LLVM_VERSION_MINOR 9 - -/* Patch version of the LLVM API */ -#define LLVM_VERSION_PATCH 1 - -/* LLVM version string */ -#define LLVM_VERSION_STRING "3.9.1" +#define LLVM_USE_OPROFILE 0 /* LLVM version information */ /* #undef LLVM_VERSION_INFO */ -/* Define if we link Polly to the tools */ -/* #undef LINK_POLLY_INTO_TOOLS */ +/* Major version of the LLVM API */ +#define LLVM_VERSION_MAJOR 4 -/* Define if the OS needs help to load dependent libraries for dlopen(). */ -/* #undef LTDL_DLOPEN_DEPLIBS */ +/* Minor version of the LLVM API */ +#define LLVM_VERSION_MINOR 0 -/* Define to the sub-directory in which libtool stores uninstalled libraries. - */ -#undef LTDL_OBJDIR +/* Patch version of the LLVM API */ +#define LLVM_VERSION_PATCH 0 + +/* LLVM version string */ +#define LLVM_VERSION_STRING "4.0.0svn" /* Define to the extension used for shared libraries, say, ".so". */ #define LTDL_SHLIB_EXT ".so" -/* Define to the system default library search path. */ -/* #undef LTDL_SYSSEARCHPATH */ - -/* Define if /dev/zero should be used when mapping RWX memory, or undefine if - its not necessary */ -#undef NEED_DEV_ZERO_FOR_MMAP - -/* Define if dlsym() requires a leading underscore in symbol names. */ -#undef NEED_USCORE - /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "https://bugs.freebsd.org/submit/" @@ -546,13 +417,13 @@ #define PACKAGE_NAME "LLVM" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "LLVM 3.9.1" +#define PACKAGE_STRING "LLVM 4.0.0svn" /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ -#define PACKAGE_VERSION "3.9.1" +#define PACKAGE_VERSION "4.0.0svn" /* Define to the vendor of this package. */ /* #undef PACKAGE_VENDOR */ @@ -560,24 +431,6 @@ /* Define as the return type of signal handlers (`int' or `void'). */ #define RETSIGTYPE void -/* Define to 1 if the `S_IS*' macros in do not work properly. */ -#undef STAT_MACROS_BROKEN - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to 1 if you can safely include both and . */ -#undef TIME_WITH_SYS_TIME - -/* Define to 1 if your declares `struct tm'. */ -#undef TM_IN_SYS_TIME - -/* Define to `int' if does not define. */ -#undef pid_t - -/* Define to `unsigned int' if does not define. */ -#undef size_t - /* Define to a function replacing strtoll */ /* #undef strtoll */ @@ -590,7 +443,4 @@ /* Define to a function implementing strdup */ /* #undef strdup */ -/* Define to 1 if you have the `_chsize_s' function. */ -/* #undef HAVE__CHSIZE_S */ - #endif diff --git a/lib/clang/include/llvm/Config/llvm-config.h b/lib/clang/include/llvm/Config/llvm-config.h index c54e34500b26..23fe5a25d72f 100644 --- a/lib/clang/include/llvm/Config/llvm-config.h +++ b/lib/clang/include/llvm/Config/llvm-config.h @@ -15,46 +15,21 @@ #ifndef LLVM_CONFIG_H #define LLVM_CONFIG_H -/* Installation directory for binary executables */ -/* #undef LLVM_BINDIR */ - -/* Time at which LLVM was configured */ -/* #undef LLVM_CONFIGTIME */ - -/* Installation directory for data files */ -/* #undef LLVM_DATADIR */ +/* Define if we link Polly to the tools */ +/* #undef LINK_POLLY_INTO_TOOLS */ /* Target triple LLVM will generate code for by default */ /* #undef LLVM_DEFAULT_TARGET_TRIPLE */ -/* Installation directory for documentation */ -/* #undef LLVM_DOCSDIR */ - -/* Define if LLVM is built with asserts and checks that change the layout of - client-visible data structures. */ -#define LLVM_ENABLE_ABI_BREAKING_CHECKS - /* Define if threads enabled */ #define LLVM_ENABLE_THREADS 1 -/* Installation directory for config files */ -/* #undef LLVM_ETCDIR */ - /* Has gcc/MSVC atomic intrinsics */ #define LLVM_HAS_ATOMICS 1 /* Host triple LLVM will be executed on */ /* #undef LLVM_HOST_TRIPLE */ -/* Installation directory for include files */ -/* #undef LLVM_INCLUDEDIR */ - -/* Installation directory for .info files */ -/* #undef LLVM_INFODIR */ - -/* Installation directory for man pages */ -/* #undef LLVM_MANDIR */ - /* LLVM architecture name for the native architecture, if available */ #define LLVM_NATIVE_ARCH X86 @@ -86,24 +61,21 @@ #define LLVM_PREFIX "/usr" /* Define if we have the Intel JIT API runtime support library */ -/* #undef LLVM_USE_INTEL_JITEVENTS */ +#define LLVM_USE_INTEL_JITEVENTS 0 /* Define if we have the oprofile JIT-support library */ -/* #undef LLVM_USE_OPROFILE */ +#define LLVM_USE_OPROFILE 0 /* Major version of the LLVM API */ -#define LLVM_VERSION_MAJOR 3 +#define LLVM_VERSION_MAJOR 4 /* Minor version of the LLVM API */ -#define LLVM_VERSION_MINOR 9 +#define LLVM_VERSION_MINOR 0 /* Patch version of the LLVM API */ -#define LLVM_VERSION_PATCH 1 +#define LLVM_VERSION_PATCH 0 /* LLVM version string */ -#define LLVM_VERSION_STRING "3.9.1" - -/* Define if we link Polly to the tools */ -/* #undef LINK_POLLY_INTO_TOOLS */ +#define LLVM_VERSION_STRING "4.0.0svn" #endif diff --git a/lib/clang/libclang/Makefile b/lib/clang/libclang/Makefile index b2d0ffcd94b9..897c7fecdf96 100644 --- a/lib/clang/libclang/Makefile +++ b/lib/clang/libclang/Makefile @@ -101,19 +101,23 @@ SRCS_MIN+= AST/VTableBuilder.cpp SRCS_MIN+= ASTMatchers/ASTMatchFinder.cpp SRCS_MIN+= ASTMatchers/ASTMatchersInternal.cpp SRCS_MIN+= ASTMatchers/Dynamic/Diagnostics.cpp +SRCS_MIN+= ASTMatchers/Dynamic/Parser.cpp SRCS_MIN+= ASTMatchers/Dynamic/Registry.cpp +SRCS_MIN+= ASTMatchers/Dynamic/VariantValue.cpp SRCS_MIN+= Analysis/AnalysisDeclContext.cpp SRCS_MIN+= Analysis/BodyFarm.cpp SRCS_MIN+= Analysis/CFG.cpp SRCS_MIN+= Analysis/CFGReachabilityAnalysis.cpp SRCS_MIN+= Analysis/CFGStmtMap.cpp SRCS_FUL+= Analysis/CallGraph.cpp +SRCS_MIN+= Analysis/CloneDetection.cpp SRCS_MIN+= Analysis/CocoaConventions.cpp SRCS_FUL+= Analysis/CodeInjector.cpp SRCS_MIN+= Analysis/Consumed.cpp SRCS_FUL+= Analysis/Dominators.cpp SRCS_MIN+= Analysis/FormatString.cpp SRCS_MIN+= Analysis/LiveVariables.cpp +SRCS_MIN+= Analysis/OSLog.cpp SRCS_MIN+= Analysis/ObjCNoReturn.cpp SRCS_MIN+= Analysis/PostOrderCFGView.cpp SRCS_MIN+= Analysis/PrintfFormatString.cpp @@ -123,6 +127,7 @@ SRCS_MIN+= Analysis/ReachableCode.cpp SRCS_MIN+= Analysis/ScanfFormatString.cpp SRCS_MIN+= Analysis/ThreadSafety.cpp SRCS_MIN+= Analysis/ThreadSafetyCommon.cpp +SRCS_MIN+= Analysis/ThreadSafetyLogical.cpp SRCS_MIN+= Analysis/ThreadSafetyTIL.cpp SRCS_MIN+= Analysis/UninitializedValues.cpp SRCS_MIN+= Basic/Attributes.cpp @@ -163,6 +168,7 @@ SRCS_MIN+= CodeGen/CGCXXABI.cpp SRCS_MIN+= CodeGen/CGCall.cpp SRCS_MIN+= CodeGen/CGClass.cpp SRCS_MIN+= CodeGen/CGCleanup.cpp +SRCS_MIN+= CodeGen/CGCoroutine.cpp SRCS_MIN+= CodeGen/CGDebugInfo.cpp SRCS_MIN+= CodeGen/CGDecl.cpp SRCS_MIN+= CodeGen/CGDeclCXX.cpp @@ -186,6 +192,7 @@ SRCS_MIN+= CodeGen/CGStmt.cpp SRCS_MIN+= CodeGen/CGStmtOpenMP.cpp SRCS_MIN+= CodeGen/CGVTT.cpp SRCS_MIN+= CodeGen/CGVTables.cpp +SRCS_MIN+= CodeGen/CodeGenABITypes.cpp SRCS_MIN+= CodeGen/CodeGenAction.cpp SRCS_MIN+= CodeGen/CodeGenFunction.cpp SRCS_MIN+= CodeGen/CodeGenModule.cpp @@ -200,9 +207,11 @@ SRCS_MIN+= CodeGen/ObjectFilePCHContainerOperations.cpp SRCS_MIN+= CodeGen/SanitizerMetadata.cpp SRCS_MIN+= CodeGen/SwiftCallingConv.cpp SRCS_MIN+= CodeGen/TargetInfo.cpp +SRCS_MIN+= CodeGen/VarBypassDetector.cpp SRCS_MIN+= Driver/Action.cpp SRCS_MIN+= Driver/Compilation.cpp SRCS_MIN+= Driver/CrossWindowsToolChain.cpp +SRCS_MIN+= Driver/Distro.cpp SRCS_MIN+= Driver/Driver.cpp SRCS_MIN+= Driver/DriverOptions.cpp SRCS_MIN+= Driver/Job.cpp @@ -221,6 +230,7 @@ SRCS_MIN+= Edit/EditedSource.cpp SRCS_MIN+= Edit/RewriteObjCFoundationAPI.cpp SRCS_EXT+= Format/AffectedRangeManager.cpp SRCS_EXT+= Format/BreakableToken.cpp +SRCS_EXT+= Format/Comments.cpp SRCS_EXT+= Format/ContinuationIndenter.cpp SRCS_EXT+= Format/Format.cpp SRCS_EXT+= Format/FormatToken.cpp @@ -262,6 +272,8 @@ SRCS_MIN+= Frontend/Rewrite/FrontendActions.cpp SRCS_MIN+= Frontend/Rewrite/HTMLPrint.cpp SRCS_MIN+= Frontend/Rewrite/InclusionRewriter.cpp SRCS_MIN+= Frontend/Rewrite/RewriteMacros.cpp +SRCS_MIN+= Frontend/Rewrite/RewriteModernObjC.cpp +SRCS_MIN+= Frontend/Rewrite/RewriteObjC.cpp SRCS_MIN+= Frontend/Rewrite/RewriteTest.cpp SRCS_MIN+= Frontend/SerializedDiagnosticPrinter.cpp SRCS_MIN+= Frontend/SerializedDiagnosticReader.cpp @@ -382,14 +394,17 @@ SRCS_MIN+= Serialization/Module.cpp SRCS_MIN+= Serialization/ModuleFileExtension.cpp SRCS_MIN+= Serialization/ModuleManager.cpp SRCS_FUL+= StaticAnalyzer/Checkers/AllocationDiagnostics.cpp +SRCS_FUL+= StaticAnalyzer/Checkers/AnalysisOrderChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/ArrayBoundChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp SRCS_FUL+= StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp +SRCS_FUL+= StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/BoolAssignmentChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/CStringChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp +SRCS_FUL+= StaticAnalyzer/Checkers/CXXSelfAssignmentChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/CallAndMessageChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/CastSizeChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/CastToStructChecker.cpp @@ -397,8 +412,11 @@ SRCS_FUL+= StaticAnalyzer/Checkers/CheckObjCDealloc.cpp SRCS_FUL+= StaticAnalyzer/Checkers/CheckObjCInstMethSignature.cpp SRCS_FUL+= StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp SRCS_FUL+= StaticAnalyzer/Checkers/CheckSizeofPointer.cpp +SRCS_FUL+= StaticAnalyzer/Checkers/CheckerDocumentation.cpp SRCS_FUL+= StaticAnalyzer/Checkers/ChrootChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/ClangCheckers.cpp +SRCS_FUL+= StaticAnalyzer/Checkers/CloneChecker.cpp +SRCS_FUL+= StaticAnalyzer/Checkers/ConversionChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/DeadStoresChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/DebugCheckers.cpp SRCS_FUL+= StaticAnalyzer/Checkers/DereferenceChecker.cpp @@ -408,6 +426,7 @@ SRCS_FUL+= StaticAnalyzer/Checkers/DynamicTypeChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/DynamicTypePropagation.cpp SRCS_FUL+= StaticAnalyzer/Checkers/ExprInspectionChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/FixedAddressChecker.cpp +SRCS_FUL+= StaticAnalyzer/Checkers/GTestChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/GenericTaintChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/IdenticalExprChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp @@ -426,10 +445,12 @@ SRCS_FUL+= StaticAnalyzer/Checkers/NSErrorChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/NonNullParamChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/NullabilityChecker.cpp +SRCS_FUL+= StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/ObjCAtSyncChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/ObjCContainersASTChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/ObjCContainersChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/ObjCMissingSuperCallChecker.cpp +SRCS_FUL+= StaticAnalyzer/Checkers/ObjCPropertyChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/ObjCUnusedIVarsChecker.cpp @@ -442,6 +463,7 @@ SRCS_FUL+= StaticAnalyzer/Checkers/ReturnPointerRangeChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/ReturnUndefChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/SimpleStreamChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp +SRCS_FUL+= StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/StreamChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/TaintTesterChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp @@ -454,6 +476,7 @@ SRCS_FUL+= StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/UnixAPIChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/VLASizeChecker.cpp +SRCS_FUL+= StaticAnalyzer/Checkers/ValistChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/VforkChecker.cpp SRCS_FUL+= StaticAnalyzer/Checkers/VirtualCallChecker.cpp SRCS_FUL+= StaticAnalyzer/Core/APSIntType.cpp @@ -505,9 +528,11 @@ SRCS_FUL+= StaticAnalyzer/Frontend/ModelInjector.cpp SRCS_MIN+= Tooling/ArgumentsAdjusters.cpp SRCS_MIN+= Tooling/CommonOptionsParser.cpp SRCS_MIN+= Tooling/CompilationDatabase.cpp +SRCS_MIN+= Tooling/Core/Lookup.cpp SRCS_EXT+= Tooling/Core/QualTypeNames.cpp SRCS_EXT+= Tooling/Core/Replacement.cpp SRCS_MIN+= Tooling/FileMatchTrie.cpp +SRCS_MIN+= Tooling/FixIt.cpp SRCS_MIN+= Tooling/JSONCompilationDatabase.cpp SRCS_MIN+= Tooling/Refactoring.cpp SRCS_MIN+= Tooling/RefactoringCallbacks.cpp diff --git a/lib/clang/liblldb/Makefile b/lib/clang/liblldb/Makefile index 1e52d40fccab..21e72308743c 100644 --- a/lib/clang/liblldb/Makefile +++ b/lib/clang/liblldb/Makefile @@ -134,9 +134,7 @@ SRCS+= Core/Baton.cpp SRCS+= Core/Broadcaster.cpp SRCS+= Core/Communication.cpp SRCS+= Core/Connection.cpp -SRCS+= Core/ConnectionSharedMemory.cpp SRCS+= Core/ConstString.cpp -SRCS+= Core/CxaDemangle.cpp SRCS+= Core/DataBufferHeap.cpp SRCS+= Core/DataBufferMemoryMap.cpp SRCS+= Core/DataEncoder.cpp @@ -226,7 +224,6 @@ SRCS+= Expression/Materializer.cpp SRCS+= Expression/REPL.cpp SRCS+= Expression/UserExpression.cpp SRCS+= Expression/UtilityFunction.cpp -SRCS+= Host/common/Condition.cpp SRCS+= Host/common/Editline.cpp SRCS+= Host/common/File.cpp SRCS+= Host/common/FileCache.cpp @@ -240,7 +237,6 @@ SRCS+= Host/common/HostThread.cpp SRCS+= Host/common/IOObject.cpp SRCS+= Host/common/LockFileBase.cpp SRCS+= Host/common/MonitoringProcessLauncher.cpp -SRCS+= Host/common/Mutex.cpp SRCS+= Host/common/NativeBreakpointList.cpp SRCS+= Host/common/NativeWatchpointList.cpp SRCS+= Host/common/OptionParser.cpp @@ -254,7 +250,6 @@ SRCS+= Host/common/TCPSocket.cpp SRCS+= Host/common/Terminal.cpp SRCS+= Host/common/ThisThread.cpp SRCS+= Host/common/ThreadLauncher.cpp -SRCS+= Host/common/TimeValue.cpp SRCS+= Host/common/UDPSocket.cpp SRCS+= Host/common/XML.cpp SRCS+= Host/freebsd/Host.cpp @@ -407,7 +402,6 @@ SRCS+= Plugins/Process/Utility/RegisterContextDarwin_i386.cpp SRCS+= Plugins/Process/Utility/RegisterContextDarwin_x86_64.cpp SRCS+= Plugins/Process/Utility/RegisterContextDummy.cpp SRCS+= Plugins/Process/Utility/RegisterContextFreeBSD_arm.cpp -SRCS+= Plugins/Process/Utility/RegisterContextFreeBSD_arm64.cpp SRCS+= Plugins/Process/Utility/RegisterContextFreeBSD_i386.cpp SRCS+= Plugins/Process/Utility/RegisterContextFreeBSD_mips64.cpp SRCS+= Plugins/Process/Utility/RegisterContextFreeBSD_powerpc.cpp @@ -415,7 +409,6 @@ SRCS+= Plugins/Process/Utility/RegisterContextFreeBSD_x86_64.cpp SRCS+= Plugins/Process/Utility/RegisterContextHistory.cpp SRCS+= Plugins/Process/Utility/RegisterContextLLDB.cpp SRCS+= Plugins/Process/Utility/RegisterContextLinux_arm.cpp -SRCS+= Plugins/Process/Utility/RegisterContextLinux_arm64.cpp SRCS+= Plugins/Process/Utility/RegisterContextLinux_i386.cpp SRCS+= Plugins/Process/Utility/RegisterContextLinux_mips.cpp SRCS+= Plugins/Process/Utility/RegisterContextLinux_x86_64.cpp diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile index 04f6f06f2370..5a37e6e8a8ec 100644 --- a/lib/clang/libllvm/Makefile +++ b/lib/clang/libllvm/Makefile @@ -52,6 +52,7 @@ SRCS_MIN+= Analysis/Interval.cpp SRCS_MIN+= Analysis/IntervalPartition.cpp SRCS_MIN+= Analysis/IteratedDominanceFrontier.cpp SRCS_MIN+= Analysis/LazyBlockFrequencyInfo.cpp +SRCS_MIN+= Analysis/LazyBranchProbabilityInfo.cpp SRCS_MIN+= Analysis/LazyCallGraph.cpp SRCS_MIN+= Analysis/LazyValueInfo.cpp SRCS_MIN+= Analysis/Lint.cpp @@ -88,6 +89,7 @@ SRCS_MIN+= Analysis/ScopedNoAliasAA.cpp SRCS_MIN+= Analysis/SparsePropagation.cpp SRCS_MIN+= Analysis/TargetLibraryInfo.cpp SRCS_MIN+= Analysis/TargetTransformInfo.cpp +SRCS_MIN+= Analysis/Trace.cpp SRCS_MIN+= Analysis/TypeBasedAliasAnalysis.cpp SRCS_MIN+= Analysis/TypeMetadataUtils.cpp SRCS_MIN+= Analysis/ValueTracking.cpp @@ -95,8 +97,12 @@ SRCS_MIN+= Analysis/VectorUtils.cpp SRCS_MIN+= AsmParser/LLLexer.cpp SRCS_MIN+= AsmParser/LLParser.cpp SRCS_MIN+= AsmParser/Parser.cpp +SRCS_MIN+= Bitcode/Reader/BitReader.cpp SRCS_MIN+= Bitcode/Reader/BitcodeReader.cpp SRCS_MIN+= Bitcode/Reader/BitstreamReader.cpp +SRCS_MIN+= Bitcode/Reader/MetadataLoader.cpp +SRCS_MIN+= Bitcode/Reader/ValueList.cpp +SRCS_MIN+= Bitcode/Writer/BitWriter.cpp SRCS_MIN+= Bitcode/Writer/BitcodeWriter.cpp SRCS_MIN+= Bitcode/Writer/BitcodeWriterPass.cpp SRCS_MIN+= Bitcode/Writer/ValueEnumerator.cpp @@ -129,11 +135,13 @@ SRCS_MIN+= CodeGen/AsmPrinter/WinException.cpp SRCS_MIN+= CodeGen/AtomicExpandPass.cpp SRCS_MIN+= CodeGen/BasicTargetTransformInfo.cpp SRCS_MIN+= CodeGen/BranchFolding.cpp +SRCS_MIN+= CodeGen/BranchRelaxation.cpp SRCS_MIN+= CodeGen/BuiltinGCs.cpp SRCS_MIN+= CodeGen/CalcSpillWeights.cpp SRCS_MIN+= CodeGen/CallingConvLower.cpp SRCS_MIN+= CodeGen/CodeGen.cpp SRCS_MIN+= CodeGen/CodeGenPrepare.cpp +SRCS_MIN+= CodeGen/CountingFunctionInserter.cpp SRCS_MIN+= CodeGen/CriticalAntiDepBreaker.cpp SRCS_MIN+= CodeGen/DFAPacketizer.cpp SRCS_MIN+= CodeGen/DeadMachineInstructionElim.cpp @@ -147,9 +155,9 @@ SRCS_MIN+= CodeGen/ExpandPostRAPseudos.cpp SRCS_MIN+= CodeGen/FaultMaps.cpp SRCS_MIN+= CodeGen/FuncletLayout.cpp SRCS_MIN+= CodeGen/GCMetadata.cpp -SRCS_EXT+= CodeGen/GCMetadataPrinter.cpp +SRCS_MIN+= CodeGen/GCMetadataPrinter.cpp SRCS_MIN+= CodeGen/GCRootLowering.cpp -SRCS_EXT+= CodeGen/GCStrategy.cpp +SRCS_MIN+= CodeGen/GCStrategy.cpp SRCS_MIN+= CodeGen/GlobalISel/GlobalISel.cpp SRCS_MIN+= CodeGen/GlobalMerge.cpp SRCS_MIN+= CodeGen/IfConversion.cpp @@ -173,6 +181,7 @@ SRCS_MIN+= CodeGen/LiveRegMatrix.cpp SRCS_MIN+= CodeGen/LiveStackAnalysis.cpp SRCS_MIN+= CodeGen/LiveVariables.cpp SRCS_MIN+= CodeGen/LocalStackSlotAllocation.cpp +SRCS_MIN+= CodeGen/LowLevelType.cpp SRCS_MIN+= CodeGen/LowerEmuTLS.cpp SRCS_EXT+= CodeGen/MIRParser/MILexer.cpp SRCS_EXT+= CodeGen/MIRParser/MIParser.cpp @@ -189,7 +198,6 @@ SRCS_MIN+= CodeGen/MachineCopyPropagation.cpp SRCS_MIN+= CodeGen/MachineDominanceFrontier.cpp SRCS_MIN+= CodeGen/MachineDominators.cpp SRCS_MIN+= CodeGen/MachineFunction.cpp -SRCS_MIN+= CodeGen/MachineFunctionAnalysis.cpp SRCS_MIN+= CodeGen/MachineFunctionPass.cpp SRCS_MIN+= CodeGen/MachineFunctionPrinterPass.cpp SRCS_MIN+= CodeGen/MachineInstr.cpp @@ -199,6 +207,7 @@ SRCS_MIN+= CodeGen/MachineLoopInfo.cpp SRCS_MIN+= CodeGen/MachineModuleInfo.cpp SRCS_MIN+= CodeGen/MachineModuleInfoImpls.cpp SRCS_MIN+= CodeGen/MachinePassRegistry.cpp +SRCS_MIN+= CodeGen/MachinePipeliner.cpp SRCS_MIN+= CodeGen/MachinePostDominators.cpp SRCS_MIN+= CodeGen/MachineRegionInfo.cpp SRCS_MIN+= CodeGen/MachineRegisterInfo.cpp @@ -232,6 +241,7 @@ SRCS_MIN+= CodeGen/RegisterPressure.cpp SRCS_MIN+= CodeGen/RegisterScavenging.cpp SRCS_MIN+= CodeGen/RegisterUsageInfo.cpp SRCS_MIN+= CodeGen/RenameIndependentSubregs.cpp +SRCS_MIN+= CodeGen/ResetMachineFunctionPass.cpp SRCS_MIN+= CodeGen/SafeStack.cpp SRCS_MIN+= CodeGen/SafeStackColoring.cpp SRCS_MIN+= CodeGen/SafeStackLayout.cpp @@ -284,30 +294,28 @@ SRCS_MIN+= CodeGen/TargetOptionsImpl.cpp SRCS_MIN+= CodeGen/TargetPassConfig.cpp SRCS_MIN+= CodeGen/TargetRegisterInfo.cpp SRCS_MIN+= CodeGen/TargetSchedule.cpp +SRCS_MIN+= CodeGen/TargetSubtargetInfo.cpp SRCS_MIN+= CodeGen/TwoAddressInstructionPass.cpp SRCS_MIN+= CodeGen/UnreachableBlockElim.cpp SRCS_MIN+= CodeGen/VirtRegMap.cpp SRCS_MIN+= CodeGen/WinEHPrepare.cpp SRCS_MIN+= CodeGen/XRayInstrumentation.cpp -SRCS_MIN+= DebugInfo/CodeView/ByteStream.cpp +SRCS_MIN+= DebugInfo/CodeView/CVSymbolVisitor.cpp SRCS_MIN+= DebugInfo/CodeView/CVTypeVisitor.cpp SRCS_MIN+= DebugInfo/CodeView/CodeViewError.cpp +SRCS_MIN+= DebugInfo/CodeView/CodeViewRecordIO.cpp SRCS_EXT+= DebugInfo/CodeView/EnumTables.cpp -SRCS_MIN+= DebugInfo/CodeView/FieldListRecordBuilder.cpp SRCS_MIN+= DebugInfo/CodeView/Line.cpp -SRCS_MIN+= DebugInfo/CodeView/ListRecordBuilder.cpp -SRCS_MIN+= DebugInfo/CodeView/MemoryTypeTableBuilder.cpp SRCS_MIN+= DebugInfo/CodeView/ModuleSubstream.cpp SRCS_MIN+= DebugInfo/CodeView/ModuleSubstreamVisitor.cpp SRCS_MIN+= DebugInfo/CodeView/RecordSerialization.cpp -SRCS_MIN+= DebugInfo/CodeView/StreamReader.cpp -SRCS_MIN+= DebugInfo/CodeView/StreamWriter.cpp SRCS_MIN+= DebugInfo/CodeView/SymbolDumper.cpp +SRCS_MIN+= DebugInfo/CodeView/SymbolRecordMapping.cpp SRCS_MIN+= DebugInfo/CodeView/TypeDumper.cpp SRCS_MIN+= DebugInfo/CodeView/TypeRecord.cpp -SRCS_MIN+= DebugInfo/CodeView/TypeRecordBuilder.cpp +SRCS_MIN+= DebugInfo/CodeView/TypeRecordMapping.cpp +SRCS_MIN+= DebugInfo/CodeView/TypeSerializer.cpp SRCS_MIN+= DebugInfo/CodeView/TypeStreamMerger.cpp -SRCS_MIN+= DebugInfo/CodeView/TypeTableBuilder.cpp SRCS_MIW+= DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp SRCS_MIW+= DebugInfo/DWARF/DWARFAcceleratorTable.cpp SRCS_MIW+= DebugInfo/DWARF/DWARFCompileUnit.cpp @@ -320,13 +328,23 @@ SRCS_MIW+= DebugInfo/DWARF/DWARFDebugInfoEntry.cpp SRCS_MIW+= DebugInfo/DWARF/DWARFDebugLine.cpp SRCS_MIW+= DebugInfo/DWARF/DWARFDebugLoc.cpp SRCS_MIW+= DebugInfo/DWARF/DWARFDebugMacro.cpp +SRCS_MIW+= DebugInfo/DWARF/DWARFDebugPubTable.cpp SRCS_MIW+= DebugInfo/DWARF/DWARFDebugRangeList.cpp +SRCS_MIW+= DebugInfo/DWARF/DWARFDie.cpp SRCS_MIW+= DebugInfo/DWARF/DWARFFormValue.cpp +SRCS_MIW+= DebugInfo/DWARF/DWARFGdbIndex.cpp SRCS_MIW+= DebugInfo/DWARF/DWARFTypeUnit.cpp SRCS_MIW+= DebugInfo/DWARF/DWARFUnit.cpp SRCS_MIW+= DebugInfo/DWARF/DWARFUnitIndex.cpp SRCS_MIW+= DebugInfo/DWARF/SyntaxHighlighting.cpp +SRCS_MIN+= DebugInfo/MSF/MSFBuilder.cpp +SRCS_MIN+= DebugInfo/MSF/MSFCommon.cpp +SRCS_MIN+= DebugInfo/MSF/MSFError.cpp +SRCS_MIN+= DebugInfo/MSF/MappedBlockStream.cpp +SRCS_MIN+= DebugInfo/MSF/StreamReader.cpp +SRCS_MIN+= DebugInfo/MSF/StreamWriter.cpp SRCS_EXT+= DebugInfo/PDB/GenericError.cpp +SRCS_EXT+= DebugInfo/PDB/IPDBSourceFile.cpp SRCS_EXT+= DebugInfo/PDB/PDB.cpp SRCS_EXT+= DebugInfo/PDB/PDBContext.cpp SRCS_EXT+= DebugInfo/PDB/PDBExtras.cpp @@ -367,15 +385,13 @@ SRCS_EXT+= DebugInfo/PDB/PDBSymbolUsingNamespace.cpp SRCS_EXT+= DebugInfo/PDB/Raw/DbiStream.cpp SRCS_EXT+= DebugInfo/PDB/Raw/DbiStreamBuilder.cpp SRCS_EXT+= DebugInfo/PDB/Raw/EnumTables.cpp +SRCS_EXT+= DebugInfo/PDB/Raw/GSI.cpp +SRCS_EXT+= DebugInfo/PDB/Raw/GlobalsStream.cpp SRCS_EXT+= DebugInfo/PDB/Raw/Hash.cpp -SRCS_EXT+= DebugInfo/PDB/Raw/IndexedStreamData.cpp SRCS_EXT+= DebugInfo/PDB/Raw/InfoStream.cpp SRCS_EXT+= DebugInfo/PDB/Raw/InfoStreamBuilder.cpp -SRCS_EXT+= DebugInfo/PDB/Raw/MappedBlockStream.cpp SRCS_EXT+= DebugInfo/PDB/Raw/ModInfo.cpp SRCS_EXT+= DebugInfo/PDB/Raw/ModStream.cpp -SRCS_EXT+= DebugInfo/PDB/Raw/MsfBuilder.cpp -SRCS_EXT+= DebugInfo/PDB/Raw/MsfCommon.cpp SRCS_EXT+= DebugInfo/PDB/Raw/NameHashTable.cpp SRCS_EXT+= DebugInfo/PDB/Raw/NameMap.cpp SRCS_EXT+= DebugInfo/PDB/Raw/NameMapBuilder.cpp @@ -385,10 +401,13 @@ SRCS_EXT+= DebugInfo/PDB/Raw/PublicsStream.cpp SRCS_EXT+= DebugInfo/PDB/Raw/RawError.cpp SRCS_EXT+= DebugInfo/PDB/Raw/RawSession.cpp SRCS_EXT+= DebugInfo/PDB/Raw/SymbolStream.cpp +SRCS_EXT+= DebugInfo/PDB/Raw/TpiHashing.cpp SRCS_EXT+= DebugInfo/PDB/Raw/TpiStream.cpp +SRCS_EXT+= DebugInfo/PDB/Raw/TpiStreamBuilder.cpp SRCS_EXT+= DebugInfo/Symbolize/DIPrinter.cpp -SRCS_EXT+= DebugInfo/Symbolize/SymbolizableObjectFile.cpp -SRCS_EXT+= DebugInfo/Symbolize/Symbolize.cpp +SRCS_MIW+= DebugInfo/Symbolize/SymbolizableObjectFile.cpp +SRCS_MIW+= DebugInfo/Symbolize/Symbolize.cpp +SRCS_MIN+= Demangle/ItaniumDemangle.cpp SRCS_XDB+= ExecutionEngine/ExecutionEngine.cpp SRCS_XDB+= ExecutionEngine/ExecutionEngineBindings.cpp SRCS_XDB+= ExecutionEngine/GDBRegistrationListener.cpp @@ -403,12 +422,14 @@ SRCS_EXT+= ExecutionEngine/Orc/OrcABISupport.cpp SRCS_EXT+= ExecutionEngine/Orc/OrcCBindings.cpp SRCS_EXT+= ExecutionEngine/Orc/OrcError.cpp SRCS_EXT+= ExecutionEngine/Orc/OrcMCJITReplacement.cpp +SRCS_XDB+= ExecutionEngine/RuntimeDyld/JITSymbol.cpp SRCS_XDB+= ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp SRCS_XDB+= ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp SRCS_XDB+= ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp SRCS_XDB+= ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp SRCS_XDB+= ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp SRCS_XDB+= ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp +SRCS_XDB+= ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldELFMips.cpp SRCS_XDB+= ExecutionEngine/SectionMemoryManager.cpp SRCS_XDB+= ExecutionEngine/TargetSelect.cpp SRCS_MIN+= IR/AsmWriter.cpp @@ -462,11 +483,13 @@ SRCS_MIN+= IR/ValueSymbolTable.cpp SRCS_MIN+= IR/ValueTypes.cpp SRCS_MIN+= IR/Verifier.cpp SRCS_MIN+= IRReader/IRReader.cpp +SRCS_EXL+= LTO/Caching.cpp SRCS_EXL+= LTO/LTO.cpp +SRCS_MIN+= LTO/LTOBackend.cpp SRCS_EXL+= LTO/LTOCodeGenerator.cpp SRCS_EXL+= LTO/LTOModule.cpp SRCS_EXL+= LTO/ThinLTOCodeGenerator.cpp -SRCS_EXL+= LTO/UpdateCompilerUsed.cpp +SRCS_MIN+= LTO/UpdateCompilerUsed.cpp SRCS_EXL+= LibDriver/LibDriver.cpp SRCS_MIN+= LineEditor/LineEditor.cpp SRCS_MIN+= Linker/IRMover.cpp @@ -497,6 +520,7 @@ SRCS_MIN+= MC/MCInst.cpp SRCS_MIN+= MC/MCInstPrinter.cpp SRCS_MIN+= MC/MCInstrAnalysis.cpp SRCS_MIN+= MC/MCInstrDesc.cpp +#SRCS_MIN+= MC/MCLabel.cpp SRCS_MIN+= MC/MCLinkerOptimizationHint.cpp SRCS_MIN+= MC/MCMachOStreamer.cpp SRCS_MIN+= MC/MCMachObjectTargetWriter.cpp @@ -543,19 +567,24 @@ SRCS_MIN+= Object/IRObjectFile.cpp SRCS_MIN+= Object/MachOObjectFile.cpp SRCS_MIN+= Object/MachOUniversal.cpp SRCS_MIN+= Object/ModuleSummaryIndexObjectFile.cpp +SRCS_MIN+= Object/ModuleSymbolTable.cpp SRCS_EXT+= Object/Object.cpp SRCS_MIN+= Object/ObjectFile.cpp SRCS_MIN+= Object/RecordStreamer.cpp -SRCS_EXT+= Object/SymbolSize.cpp +SRCS_MIW+= Object/SymbolSize.cpp SRCS_MIN+= Object/SymbolicFile.cpp +SRCS_MIN+= Object/WasmObjectFile.cpp SRCS_MIN+= ObjectYAML/COFFYAML.cpp +SRCS_MIN+= ObjectYAML/DWARFYAML.cpp SRCS_MIN+= ObjectYAML/ELFYAML.cpp SRCS_MIN+= ObjectYAML/MachOYAML.cpp +#SRCS_MIN+= ObjectYAML/ObjectYAML.cpp +#SRCS_MIN+= ObjectYAML/YAML.cpp SRCS_MIN+= Option/Arg.cpp SRCS_MIN+= Option/ArgList.cpp SRCS_MIN+= Option/OptTable.cpp SRCS_MIN+= Option/Option.cpp -SRCS_EXL+= Passes/PassBuilder.cpp +SRCS_MIN+= Passes/PassBuilder.cpp SRCS_MIN+= ProfileData/Coverage/CoverageMapping.cpp SRCS_MIN+= ProfileData/Coverage/CoverageMappingReader.cpp SRCS_MIN+= ProfileData/Coverage/CoverageMappingWriter.cpp @@ -570,20 +599,21 @@ SRCS_MIN+= Support/APFloat.cpp SRCS_MIN+= Support/APInt.cpp SRCS_MIN+= Support/APSInt.cpp SRCS_MIN+= Support/ARMBuildAttrs.cpp +#SRCS_MIN+= Support/ARMWinEH.cpp SRCS_MIN+= Support/Allocator.cpp SRCS_MIN+= Support/Atomic.cpp SRCS_MIN+= Support/BlockFrequency.cpp SRCS_MIN+= Support/BranchProbability.cpp SRCS_EXT+= Support/COM.cpp SRCS_MIN+= Support/CachePruning.cpp +SRCS_MIN+= Support/Chrono.cpp SRCS_MIN+= Support/CommandLine.cpp SRCS_MIN+= Support/Compression.cpp -SRCS_MIN+= Support/ConvertUTF.c +SRCS_MIN+= Support/ConvertUTF.cpp SRCS_MIN+= Support/ConvertUTFWrapper.cpp SRCS_MIN+= Support/CrashRecoveryContext.cpp SRCS_MIN+= Support/DAGDeltaAlgorithm.cpp SRCS_MIN+= Support/DataExtractor.cpp -SRCS_EXT+= Support/DataStream.cpp SRCS_MIN+= Support/Debug.cpp SRCS_MIN+= Support/DeltaAlgorithm.cpp SRCS_MIN+= Support/Dwarf.cpp @@ -594,13 +624,14 @@ SRCS_MIN+= Support/ErrorHandling.cpp SRCS_EXL+= Support/FileOutputBuffer.cpp SRCS_EXT+= Support/FileUtilities.cpp SRCS_MIN+= Support/FoldingSet.cpp +SRCS_MIN+= Support/FormatVariadic.cpp SRCS_MIN+= Support/FormattedStream.cpp +SRCS_MIN+= Support/GlobPattern.cpp SRCS_MIN+= Support/GraphWriter.cpp SRCS_MIN+= Support/Hashing.cpp SRCS_MIN+= Support/Host.cpp SRCS_MIN+= Support/IntEqClasses.cpp SRCS_MIN+= Support/IntervalMap.cpp -SRCS_FUL+= Support/IntrusiveRefCntPtr.cpp SRCS_MIN+= Support/JamCRC.cpp SRCS_MIN+= Support/LEB128.cpp SRCS_MIN+= Support/LineIterator.cpp @@ -611,8 +642,8 @@ SRCS_MIN+= Support/ManagedStatic.cpp SRCS_MIN+= Support/MathExtras.cpp SRCS_XDB+= Support/Memory.cpp SRCS_MIN+= Support/MemoryBuffer.cpp -SRCS_MIN+= Support/MemoryObject.cpp SRCS_MIN+= Support/Mutex.cpp +SRCS_MIN+= Support/NativeFormatting.cpp SRCS_MIN+= Support/Options.cpp SRCS_MIN+= Support/Path.cpp SRCS_MIN+= Support/PluginLoader.cpp @@ -632,24 +663,25 @@ SRCS_MIN+= Support/SmallVector.cpp SRCS_MIN+= Support/SourceMgr.cpp SRCS_MIN+= Support/SpecialCaseList.cpp SRCS_MIN+= Support/Statistic.cpp -SRCS_MIN+= Support/StreamingMemoryObject.cpp SRCS_MIN+= Support/StringExtras.cpp SRCS_MIN+= Support/StringMap.cpp +#SRCS_MIN+= Support/StringPool.cpp SRCS_MIN+= Support/StringRef.cpp SRCS_MIN+= Support/StringSaver.cpp SRCS_EXT+= Support/SystemUtils.cpp SRCS_MIN+= Support/TargetParser.cpp SRCS_MIN+= Support/TargetRegistry.cpp SRCS_MIN+= Support/ThreadLocal.cpp -SRCS_EXL+= Support/ThreadPool.cpp +SRCS_MIN+= Support/ThreadPool.cpp SRCS_MIN+= Support/Threading.cpp -SRCS_MIN+= Support/TimeValue.cpp SRCS_MIN+= Support/Timer.cpp SRCS_MIN+= Support/ToolOutputFile.cpp +SRCS_MIN+= Support/TrigramIndex.cpp SRCS_MIN+= Support/Triple.cpp SRCS_MIN+= Support/Twine.cpp SRCS_MIN+= Support/Unicode.cpp SRCS_MIN+= Support/Valgrind.cpp +#SRCS_MIN+= Support/Watchdog.cpp SRCS_MIN+= Support/YAMLParser.cpp SRCS_MIN+= Support/YAMLTraits.cpp SRCS_MIN+= Support/circular_raw_ostream.cpp @@ -660,6 +692,7 @@ SRCS_MIN+= Support/regerror.c SRCS_MIN+= Support/regexec.c SRCS_MIN+= Support/regfree.c SRCS_MIN+= Support/regstrlcpy.c +#SRCS_MIN+= Support/xxhash.cpp SRCS_MIN+= TableGen/Error.cpp SRCS_MIN+= TableGen/Main.cpp SRCS_MIN+= TableGen/Record.cpp @@ -673,7 +706,6 @@ SRCS_MIN+= Target/AArch64/AArch64A57FPLoadBalancing.cpp SRCS_MIN+= Target/AArch64/AArch64AddressTypePromotion.cpp SRCS_MIN+= Target/AArch64/AArch64AdvSIMDScalarPass.cpp SRCS_MIN+= Target/AArch64/AArch64AsmPrinter.cpp -SRCS_MIN+= Target/AArch64/AArch64BranchRelaxation.cpp SRCS_MIN+= Target/AArch64/AArch64CleanupLocalDynamicTLSPass.cpp SRCS_MIN+= Target/AArch64/AArch64CollectLOH.cpp SRCS_MIN+= Target/AArch64/AArch64ConditionOptimizer.cpp @@ -697,6 +729,7 @@ SRCS_MIN+= Target/AArch64/AArch64Subtarget.cpp SRCS_MIN+= Target/AArch64/AArch64TargetMachine.cpp SRCS_MIN+= Target/AArch64/AArch64TargetObjectFile.cpp SRCS_MIN+= Target/AArch64/AArch64TargetTransformInfo.cpp +SRCS_MIN+= Target/AArch64/AArch64VectorByElementOpt.cpp SRCS_MIN+= Target/AArch64/AsmParser/AArch64AsmParser.cpp SRCS_XDW+= Target/AArch64/Disassembler/AArch64Disassembler.cpp SRCS_XDW+= Target/AArch64/Disassembler/AArch64ExternalSymbolizer.cpp @@ -716,6 +749,7 @@ SRCS_MIN+= Target/ARM/A15SDOptimizer.cpp SRCS_MIN+= Target/ARM/ARMAsmPrinter.cpp SRCS_MIN+= Target/ARM/ARMBaseInstrInfo.cpp SRCS_MIN+= Target/ARM/ARMBaseRegisterInfo.cpp +SRCS_MIN+= Target/ARM/ARMComputeBlockSize.cpp SRCS_MIN+= Target/ARM/ARMConstantIslandPass.cpp SRCS_MIN+= Target/ARM/ARMConstantPoolValue.cpp SRCS_MIN+= Target/ARM/ARMExpandPseudoInsts.cpp @@ -872,11 +906,10 @@ SRCS_MIN+= Target/Sparc/SparcTargetMachine.cpp SRCS_MIN+= Target/Sparc/SparcTargetObjectFile.cpp SRCS_MIN+= Target/Sparc/TargetInfo/SparcTargetInfo.cpp SRCS_MIN+= Target/Target.cpp +SRCS_MIN+= Target/TargetIntrinsicInfo.cpp SRCS_MIN+= Target/TargetLoweringObjectFile.cpp SRCS_MIN+= Target/TargetMachine.cpp SRCS_MIN+= Target/TargetMachineC.cpp -SRCS_MIN+= Target/TargetRecip.cpp -SRCS_MIN+= Target/TargetSubtargetInfo.cpp SRCS_MIN+= Target/X86/AsmParser/X86AsmInstrumentation.cpp SRCS_MIN+= Target/X86/AsmParser/X86AsmParser.cpp SRCS_XDW+= Target/X86/Disassembler/X86Disassembler.cpp @@ -896,6 +929,8 @@ SRCS_MIN+= Target/X86/TargetInfo/X86TargetInfo.cpp SRCS_MIN+= Target/X86/Utils/X86ShuffleDecode.cpp SRCS_MIN+= Target/X86/X86AsmPrinter.cpp SRCS_MIN+= Target/X86/X86CallFrameOptimization.cpp +SRCS_MIN+= Target/X86/X86CallingConv.cpp +SRCS_MIN+= Target/X86/X86EvexToVex.cpp SRCS_MIN+= Target/X86/X86ExpandPseudo.cpp SRCS_MIN+= Target/X86/X86FastISel.cpp SRCS_MIN+= Target/X86/X86FixupBWInsts.cpp @@ -905,7 +940,9 @@ SRCS_MIN+= Target/X86/X86FloatingPoint.cpp SRCS_MIN+= Target/X86/X86FrameLowering.cpp SRCS_MIN+= Target/X86/X86ISelDAGToDAG.cpp SRCS_MIN+= Target/X86/X86ISelLowering.cpp +SRCS_MIN+= Target/X86/X86InstrFMA3Info.cpp SRCS_MIN+= Target/X86/X86InstrInfo.cpp +SRCS_MIN+= Target/X86/X86InterleavedAccess.cpp SRCS_MIN+= Target/X86/X86MCInstLower.cpp SRCS_MIN+= Target/X86/X86MachineFunctionInfo.cpp SRCS_MIN+= Target/X86/X86OptimizeLEAs.cpp @@ -920,6 +957,13 @@ SRCS_MIN+= Target/X86/X86TargetTransformInfo.cpp SRCS_MIN+= Target/X86/X86VZeroUpper.cpp SRCS_MIN+= Target/X86/X86WinAllocaExpander.cpp SRCS_MIN+= Target/X86/X86WinEHState.cpp +SRCS_MIN+= Transforms/Coroutines/CoroCleanup.cpp +SRCS_MIN+= Transforms/Coroutines/CoroEarly.cpp +SRCS_MIN+= Transforms/Coroutines/CoroElide.cpp +SRCS_MIN+= Transforms/Coroutines/CoroFrame.cpp +SRCS_MIN+= Transforms/Coroutines/CoroSplit.cpp +SRCS_MIN+= Transforms/Coroutines/Coroutines.cpp +SRCS_MIN+= Transforms/IPO/AlwaysInliner.cpp SRCS_MIN+= Transforms/IPO/ArgumentPromotion.cpp SRCS_MIN+= Transforms/IPO/BarrierNoopPass.cpp SRCS_MIN+= Transforms/IPO/ConstantMerge.cpp @@ -932,10 +976,10 @@ SRCS_MIN+= Transforms/IPO/FunctionAttrs.cpp SRCS_MIN+= Transforms/IPO/FunctionImport.cpp SRCS_MIN+= Transforms/IPO/GlobalDCE.cpp SRCS_MIN+= Transforms/IPO/GlobalOpt.cpp +SRCS_MIN+= Transforms/IPO/GlobalSplit.cpp SRCS_MIN+= Transforms/IPO/IPConstantPropagation.cpp SRCS_EXT+= Transforms/IPO/IPO.cpp SRCS_MIN+= Transforms/IPO/InferFunctionAttrs.cpp -SRCS_MIN+= Transforms/IPO/InlineAlways.cpp SRCS_MIN+= Transforms/IPO/InlineSimple.cpp SRCS_MIN+= Transforms/IPO/Inliner.cpp SRCS_MIN+= Transforms/IPO/Internalize.cpp @@ -948,6 +992,7 @@ SRCS_MIN+= Transforms/IPO/PruneEH.cpp SRCS_MIN+= Transforms/IPO/SampleProfile.cpp SRCS_MIN+= Transforms/IPO/StripDeadPrototypes.cpp SRCS_MIN+= Transforms/IPO/StripSymbols.cpp +SRCS_MIN+= Transforms/IPO/ThinLTOBitcodeWriter.cpp SRCS_MIN+= Transforms/IPO/WholeProgramDevirt.cpp SRCS_MIN+= Transforms/InstCombine/InstCombineAddSub.cpp SRCS_MIN+= Transforms/InstCombine/InstCombineAndOrXor.cpp @@ -1006,12 +1051,13 @@ SRCS_MIN+= Transforms/Scalar/LoopDataPrefetch.cpp SRCS_MIN+= Transforms/Scalar/LoopDeletion.cpp SRCS_MIN+= Transforms/Scalar/LoopDistribute.cpp SRCS_MIN+= Transforms/Scalar/LoopIdiomRecognize.cpp -SRCS_EXL+= Transforms/Scalar/LoopInstSimplify.cpp +SRCS_MIN+= Transforms/Scalar/LoopInstSimplify.cpp SRCS_MIN+= Transforms/Scalar/LoopInterchange.cpp SRCS_MIN+= Transforms/Scalar/LoopLoadElimination.cpp SRCS_MIN+= Transforms/Scalar/LoopRerollPass.cpp SRCS_MIN+= Transforms/Scalar/LoopRotation.cpp SRCS_MIN+= Transforms/Scalar/LoopSimplifyCFG.cpp +SRCS_MIN+= Transforms/Scalar/LoopSink.cpp SRCS_MIN+= Transforms/Scalar/LoopStrengthReduce.cpp SRCS_MIN+= Transforms/Scalar/LoopUnrollPass.cpp SRCS_MIN+= Transforms/Scalar/LoopUnswitch.cpp @@ -1022,6 +1068,7 @@ SRCS_MIN+= Transforms/Scalar/LowerGuardIntrinsic.cpp SRCS_MIN+= Transforms/Scalar/MemCpyOptimizer.cpp SRCS_MIN+= Transforms/Scalar/MergedLoadStoreMotion.cpp SRCS_MIN+= Transforms/Scalar/NaryReassociate.cpp +SRCS_MIN+= Transforms/Scalar/NewGVN.cpp SRCS_MIN+= Transforms/Scalar/PartiallyInlineLibCalls.cpp SRCS_MIN+= Transforms/Scalar/PlaceSafepoints.cpp SRCS_MIN+= Transforms/Scalar/Reassociate.cpp @@ -1050,17 +1097,22 @@ SRCS_MIN+= Transforms/Utils/CmpInstAnalysis.cpp SRCS_MIN+= Transforms/Utils/CodeExtractor.cpp SRCS_MIN+= Transforms/Utils/CtorUtils.cpp SRCS_MIN+= Transforms/Utils/DemoteRegToStack.cpp +SRCS_MIN+= Transforms/Utils/EscapeEnumerator.cpp SRCS_MIN+= Transforms/Utils/Evaluator.cpp SRCS_MIN+= Transforms/Utils/FlattenCFG.cpp +SRCS_MIN+= Transforms/Utils/FunctionComparator.cpp SRCS_MIN+= Transforms/Utils/FunctionImportUtils.cpp SRCS_MIN+= Transforms/Utils/GlobalStatus.cpp +SRCS_MIN+= Transforms/Utils/ImportedFunctionsInliningStatistics.cpp SRCS_MIN+= Transforms/Utils/InlineFunction.cpp SRCS_MIN+= Transforms/Utils/InstructionNamer.cpp SRCS_MIN+= Transforms/Utils/IntegerDivision.cpp SRCS_MIN+= Transforms/Utils/LCSSA.cpp +SRCS_MIN+= Transforms/Utils/LibCallsShrinkWrap.cpp SRCS_MIN+= Transforms/Utils/Local.cpp SRCS_MIN+= Transforms/Utils/LoopSimplify.cpp SRCS_MIN+= Transforms/Utils/LoopUnroll.cpp +SRCS_MIN+= Transforms/Utils/LoopUnrollPeel.cpp SRCS_MIN+= Transforms/Utils/LoopUnrollRuntime.cpp SRCS_MIN+= Transforms/Utils/LoopUtils.cpp SRCS_MIN+= Transforms/Utils/LoopVersioning.cpp @@ -1070,7 +1122,7 @@ SRCS_MIN+= Transforms/Utils/Mem2Reg.cpp SRCS_MIN+= Transforms/Utils/MemorySSA.cpp SRCS_MIN+= Transforms/Utils/MetaRenamer.cpp SRCS_MIN+= Transforms/Utils/ModuleUtils.cpp -SRCS_MIN+= Transforms/Utils/NameAnonFunctions.cpp +SRCS_MIN+= Transforms/Utils/NameAnonGlobals.cpp SRCS_MIN+= Transforms/Utils/PromoteMemoryToRegister.cpp SRCS_MIN+= Transforms/Utils/SSAUpdater.cpp SRCS_MIN+= Transforms/Utils/SanitizerStats.cpp @@ -1079,6 +1131,8 @@ SRCS_MIN+= Transforms/Utils/SimplifyIndVar.cpp SRCS_MIN+= Transforms/Utils/SimplifyInstructions.cpp SRCS_MIN+= Transforms/Utils/SimplifyLibCalls.cpp SRCS_MIN+= Transforms/Utils/SplitModule.cpp +SRCS_MIN+= Transforms/Utils/StripGCRelocates.cpp +SRCS_MIN+= Transforms/Utils/StripNonLineTableDebugInfo.cpp SRCS_MIN+= Transforms/Utils/SymbolRewriter.cpp SRCS_MIN+= Transforms/Utils/UnifyFunctionExitNodes.cpp SRCS_EXT+= Transforms/Utils/Utils.cpp @@ -1113,11 +1167,11 @@ SRCS_ALL+= ${SRCS_XDW} .endif SRCS+= ${SRCS_ALL:O} -llvm/IR/Attributes.inc: ${LLVM_SRCS}/include/llvm/IR/Attributes.td +llvm/IR/Attributes.gen: ${LLVM_SRCS}/include/llvm/IR/Attributes.td ${LLVM_TBLGEN} -gen-attrs \ -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ ${LLVM_SRCS}/include/llvm/IR/Attributes.td -TGHDRS+= llvm/IR/Attributes.inc +TGHDRS+= llvm/IR/Attributes.gen llvm/IR/Intrinsics.gen: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td ${LLVM_TBLGEN} -gen-intrinsic \ diff --git a/lib/clang/libllvmminimal/Makefile b/lib/clang/libllvmminimal/Makefile index 445e91e45cc4..fc16034eda84 100644 --- a/lib/clang/libllvmminimal/Makefile +++ b/lib/clang/libllvmminimal/Makefile @@ -7,14 +7,13 @@ INTERNALLIB= SRCDIR= lib SRCS+= Support/APInt.cpp -.if ${MACHINE_ARCH:Mpowerpc*} != "" SRCS+= Support/Atomic.cpp -.endif SRCS+= Support/CommandLine.cpp -SRCS+= Support/ConvertUTF.c +SRCS+= Support/ConvertUTF.cpp SRCS+= Support/ConvertUTFWrapper.cpp SRCS+= Support/Debug.cpp SRCS+= Support/Errno.cpp +SRCS+= Support/Error.cpp SRCS+= Support/ErrorHandling.cpp SRCS+= Support/FoldingSet.cpp SRCS+= Support/FormattedStream.cpp @@ -25,6 +24,7 @@ SRCS+= Support/Locale.cpp SRCS+= Support/ManagedStatic.cpp SRCS+= Support/MemoryBuffer.cpp SRCS+= Support/Mutex.cpp +SRCS+= Support/NativeFormatting.cpp SRCS+= Support/Path.cpp SRCS+= Support/PrettyStackTrace.cpp SRCS+= Support/Process.cpp @@ -34,13 +34,14 @@ SRCS+= Support/Signals.cpp SRCS+= Support/SmallPtrSet.cpp SRCS+= Support/SmallVector.cpp SRCS+= Support/SourceMgr.cpp +SRCS+= Support/Statistic.cpp SRCS+= Support/StringExtras.cpp SRCS+= Support/StringMap.cpp SRCS+= Support/StringRef.cpp SRCS+= Support/StringSaver.cpp SRCS+= Support/TargetParser.cpp SRCS+= Support/Threading.cpp -SRCS+= Support/TimeValue.cpp +SRCS+= Support/Timer.cpp SRCS+= Support/ToolOutputFile.cpp SRCS+= Support/Triple.cpp SRCS+= Support/Twine.cpp diff --git a/usr.bin/clang/lld/Makefile b/usr.bin/clang/lld/Makefile index 6a41cd528ff4..02b593ad26e2 100644 --- a/usr.bin/clang/lld/Makefile +++ b/usr.bin/clang/lld/Makefile @@ -31,7 +31,6 @@ SRCS+= ELF/OutputSections.cpp SRCS+= ELF/Relocations.cpp SRCS+= ELF/ScriptParser.cpp SRCS+= ELF/Strings.cpp -SRCS+= ELF/SymbolListFile.cpp SRCS+= ELF/SymbolTable.cpp SRCS+= ELF/Symbols.cpp SRCS+= ELF/Target.cpp diff --git a/usr.bin/clang/llvm-objdump/Makefile b/usr.bin/clang/llvm-objdump/Makefile index 91bb011440e5..be3412a7db6c 100644 --- a/usr.bin/clang/llvm-objdump/Makefile +++ b/usr.bin/clang/llvm-objdump/Makefile @@ -7,6 +7,7 @@ SRCDIR= tools/llvm-objdump SRCS+= COFFDump.cpp SRCS+= ELFDump.cpp SRCS+= MachODump.cpp +SRCS+= WasmDump.cpp SRCS+= llvm-objdump.cpp LIBADD+= z diff --git a/usr.bin/clang/llvm-tblgen/Makefile b/usr.bin/clang/llvm-tblgen/Makefile index 0963526a80dc..075b3e546c52 100644 --- a/usr.bin/clang/llvm-tblgen/Makefile +++ b/usr.bin/clang/llvm-tblgen/Makefile @@ -25,6 +25,7 @@ SRCS+= DFAPacketizerEmitter.cpp SRCS+= DisassemblerEmitter.cpp SRCS+= FastISelEmitter.cpp SRCS+= FixedLenDecoderEmitter.cpp +SRCS+= GlobalISelEmitter.cpp SRCS+= InstrInfoEmitter.cpp SRCS+= IntrinsicEmitter.cpp SRCS+= OptParserEmitter.cpp @@ -32,7 +33,9 @@ SRCS+= PseudoLoweringEmitter.cpp SRCS+= RegisterInfoEmitter.cpp SRCS+= SearchableTableEmitter.cpp SRCS+= SubtargetEmitter.cpp +SRCS+= SubtargetFeatureInfo.cpp SRCS+= TableGen.cpp +SRCS+= Types.cpp SRCS+= X86DisassemblerTables.cpp SRCS+= X86ModRMFilters.cpp SRCS+= X86RecognizableInstr.cpp