Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Update LLVM/Clang snapshot to r189662. This includes many im...
details: https://anonhg.NetBSD.org/src/rev/7df7b35df6f5
branches: trunk
changeset: 789684:7df7b35df6f5
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Sep 02 14:34:55 2013 +0000
description:
Update LLVM/Clang snapshot to r189662. This includes many improvements
to the new SLP vectorizer, fast codegen support for PPC and using
terminfo for the color sequences. In addition, add (optional) build
infrastructure for lld to allow easier testing. This is controlled by
MKLLD.
diffstat:
external/bsd/llvm/Makefile | 5 +-
external/bsd/llvm/Makefile.inc | 28 ++++-
external/bsd/llvm/bin/Makefile | 7 +-
external/bsd/llvm/bin/lld/Makefile | 34 ++++++
external/bsd/llvm/bin/llvm-ar/Makefile | 9 +-
external/bsd/llvm/bin/llvm-objdump/Makefile | 4 +-
external/bsd/llvm/config/llvm/Config/config.h.in | 66 +-----------
external/bsd/llvm/config/llvm/Support/DataTypes.h | 5 +-
external/bsd/llvm/lib/Makefile | 20 +++-
external/bsd/llvm/lib/libLLVMAnalysis/Makefile | 3 +-
external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile | 3 +-
external/bsd/llvm/lib/libLLVMInstrumentation/Makefile | 4 +-
external/bsd/llvm/lib/libLLVMMC/Makefile | 3 +-
external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile | 3 +-
external/bsd/llvm/lib/libLLVMObject/Makefile | 3 +-
external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile | 4 +-
external/bsd/llvm/lib/libLLVMPowerPCMCTargetDesc/Makefile | 3 +-
external/bsd/llvm/lib/libLLVMScalarOpts/Makefile | 4 +-
external/bsd/llvm/lib/libLLVMSupport/Makefile | 6 +-
external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile | 4 +-
external/bsd/llvm/lib/libLLVMX86Disassembler/Makefile | 6 +-
external/bsd/llvm/lib/libclangAnalysis/Makefile | 3 +-
external/bsd/llvm/lib/libclangDriver/Makefile | 3 +-
external/bsd/llvm/lib/libclangFormat/Makefile | 4 +-
external/bsd/llvm/lib/libclangIndex/Makefile | 15 ++
external/bsd/llvm/lib/libclangStaticAnalyzerCore/Makefile | 5 +-
external/bsd/llvm/lib/liblldCore/Makefile | 22 ++++
external/bsd/llvm/lib/liblldDriver/Makefile | 34 ++++++
external/bsd/llvm/lib/liblldPasses/Makefile | 17 +++
external/bsd/llvm/lib/liblldReaderWriter/Makefile | 20 +++
external/bsd/llvm/lib/liblldReaderWriterELF/Makefile | 19 +++
external/bsd/llvm/lib/liblldReaderWriterELFHexagon/Makefile | 19 +++
external/bsd/llvm/lib/liblldReaderWriterELFPPC/Makefile | 18 +++
external/bsd/llvm/lib/liblldReaderWriterELFX86/Makefile | 18 +++
external/bsd/llvm/lib/liblldReaderWriterELFX86_64/Makefile | 19 +++
external/bsd/llvm/lib/liblldReaderWriterMachO/Makefile | 17 +++
external/bsd/llvm/lib/liblldReaderWriterNative/Makefile | 16 +++
external/bsd/llvm/lib/liblldReaderWriterPECOFF/Makefile | 18 +++
external/bsd/llvm/lib/liblldReaderWriterYAML/Makefile | 15 ++
external/bsd/llvm/link.mk | 16 ++-
share/mk/bsd.own.mk | 4 +-
tools/Makefile | 5 +-
tools/llvm-lib/liblldCore/Makefile | 3 +
tools/llvm-lib/liblldDriver/Makefile | 3 +
tools/llvm-lib/liblldPasses/Makefile | 3 +
tools/llvm-lib/liblldReaderWriter/Makefile | 3 +
tools/llvm-lib/liblldReaderWriterELF/Makefile | 3 +
tools/llvm-lib/liblldReaderWriterELFHexagon/Makefile | 3 +
tools/llvm-lib/liblldReaderWriterELFPPC/Makefile | 3 +
tools/llvm-lib/liblldReaderWriterELFX86/Makefile | 3 +
tools/llvm-lib/liblldReaderWriterELFX86_64/Makefile | 3 +
tools/llvm-lib/liblldReaderWriterMachO/Makefile | 3 +
tools/llvm-lib/liblldReaderWriterNative/Makefile | 3 +
tools/llvm-lib/liblldReaderWriterPECOFF/Makefile | 3 +
tools/llvm-lib/liblldReaderWriterYAML/Makefile | 3 +
tools/llvm-lld/Makefile | 7 +
tools/llvm/Makefile | 15 ++-
57 files changed, 483 insertions(+), 109 deletions(-)
diffs (truncated from 1303 to 300 lines):
diff -r 81662824e144 -r 7df7b35df6f5 external/bsd/llvm/Makefile
--- a/external/bsd/llvm/Makefile Mon Sep 02 12:27:18 2013 +0000
+++ b/external/bsd/llvm/Makefile Mon Sep 02 14:34:55 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2013/02/27 21:25:08 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2013/09/02 14:34:55 joerg Exp $
.include <bsd.init.mk>
@@ -15,10 +15,11 @@
.include "Makefile.inc"
checkout:
- svn co -r ${LLVM_REVISION} ${SVN_ROOT}/llvm/trunk ${LLVM_SRCDIR}
svn co -r ${CLANG_REVISION} ${SVN_ROOT}/cfe/trunk ${CLANG_SRCDIR}
svn co -r ${COMPILER_RT_REVISION} ${SVN_ROOT}/compiler-rt/trunk \
${COMPILER_RT_SRCDIR}
+ svn co -r ${LLD_REVISION} ${SVN_ROOT}/lld/trunk ${LLD_SRCDIR}
+ svn co -r ${LLVM_REVISION} ${SVN_ROOT}/llvm/trunk ${LLVM_SRCDIR}
checkout-mclinker:
if [ -d ${MCLINKER_SRCDIR}/.git ]; then \
diff -r 81662824e144 -r 7df7b35df6f5 external/bsd/llvm/Makefile.inc
--- a/external/bsd/llvm/Makefile.inc Mon Sep 02 12:27:18 2013 +0000
+++ b/external/bsd/llvm/Makefile.inc Mon Sep 02 14:34:55 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.53 2013/07/07 21:36:42 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.54 2013/09/02 14:34:55 joerg Exp $
.if !defined(LLVM_TOPLEVEL_MK)
LLVM_TOPLEVEL_MK=
@@ -7,10 +7,11 @@
SVN_ROOT= http://llvm.org/svn/llvm-project
-COMMON_REVISION= 185778
-LLVM_REVISION= ${COMMON_REVISION}
+COMMON_REVISION= 189662
CLANG_REVISION= ${COMMON_REVISION}
COMPILER_RT_REVISION= ${COMMON_REVISION}
+LLD_REVISION= ${COMMON_REVISION}
+LLVM_REVISION= ${COMMON_REVISION}
MCLINKER_REVISION= deeb2a77b4165827316f88e0a7ba4ba6b743a080
MCLINKER_ROOT= https://code.google.com/p/mclinker/
@@ -18,14 +19,15 @@
LLVM_VERSION= 3.4
CLANG_VERSION= 3.4
-LLVM_SRCDIR:= ${.PARSEDIR}/dist/llvm
+COMPILER_RT_SRCDIR:= ${.PARSEDIR}/dist/compiler-rt
CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang
-COMPILER_RT_SRCDIR:= ${.PARSEDIR}/dist/compiler-rt
+LLD_SRCDIR:= ${.PARSEDIR}/dist/lld
+LLVM_SRCDIR:= ${.PARSEDIR}/dist/llvm
MCLINKER_SRCDIR:= ${.PARSEDIR}/dist/mclinker
LLVM_TOPLEVEL:= ${.PARSEDIR}
-CPPFLAGS+= -I. -I${LLVM_SRCDIR}/include -I${CLANG_SRCDIR}/include \
- -I${MCLINKER_SRCDIR}/include \
+CPPFLAGS+= -I. -I${CLANG_SRCDIR}/include -I${LLD_SRCDIR}/include \
+ -I${LLVM_SRCDIR}/include -I${MCLINKER_SRCDIR}/include \
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS \
-D__STDC_FORMAT_MACROS
@@ -37,13 +39,21 @@
LLVM_TOOLCONF_OBJDIR!= cd ${NETBSDSRCDIR}/tools/llvm && ${PRINTOBJDIR}
HOST_CPPFLAGS+= ${CPPFLAGS}
HOST_CXXFLAGS+= -O2 -g -fno-rtti -fno-exceptions
+.if ${MKLLD:Uno} == "yes"
+HOST_CPPFLAGS+= -std=c++11
+.endif
.else
LLVM_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config
CLANG_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config
MCLINKER_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config/mclinker
LLVM_INCLUDE_OBJDIR!= cd ${LLVM_TOPLEVEL}/include && ${PRINTOBJDIR}
+.if ${MKLLD:Uno} == "yes"
+CPPFLAGS+= -std=c++11
+.endif
CXXFLAGS+= -fno-rtti -fno-exceptions
+CXXFLAGS+= -ffunction-sections -fdata-sections
+LDFLAGS+= -Wl,--gc-sections
.endif
CPPFLAGS+= -I${LLVM_INCLUDE_OBJDIR} -I${LLVM_INCLUDE_CONFIG} \
-I${CLANG_INCLUDE_CONFIG} -I${MCLINKER_INCLUDE_CONFIG}
@@ -56,4 +66,8 @@
--host=${MACHINE_GNU_PLATFORM} \
llvm_cv_gnu_make_command=${MAKE}
+.for tool in circo dot dotty fdp neato twopi xdot
+LLVM_CONFIGURE_ARGS+= ac_cv_path_${tool:tu}="echo ${tool}"
+.endfor
+
.endif
diff -r 81662824e144 -r 7df7b35df6f5 external/bsd/llvm/bin/Makefile
--- a/external/bsd/llvm/bin/Makefile Mon Sep 02 12:27:18 2013 +0000
+++ b/external/bsd/llvm/bin/Makefile Mon Sep 02 14:34:55 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2013/07/07 21:36:42 joerg Exp $
+# $NetBSD: Makefile,v 1.11 2013/09/02 14:34:55 joerg Exp $
.include <bsd.own.mk>
@@ -6,6 +6,11 @@
clang-tblgen \
tblgen
+.if ${MKLLD} != "no"
+SUBDIR+= \
+ lld
+.endif
+
.if ${MKMCLINKER} != "no"
SUBDIR+= \
llvm-mcld
diff -r 81662824e144 -r 7df7b35df6f5 external/bsd/llvm/bin/lld/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/bin/lld/Makefile Mon Sep 02 14:34:55 2013 +0000
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:55 joerg Exp $
+
+PROG_CXX= lld
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLD_SRCDIR}/tools/lld
+
+SRCS= lld.cpp
+
+LLD_LIBS+= \
+ lldDriver \
+ lldReaderWriterELF \
+ lldReaderWriterELFHexagon \
+ lldReaderWriterELFPPC \
+ lldReaderWriterELFX86 \
+ lldReaderWriterELFX86_64 \
+ lldReaderWriterMachO \
+ lldReaderWriterNative \
+ lldReaderWriterPECOFF \
+ lldReaderWriter \
+ lldReaderWriterYAML \
+ lldPasses \
+ lldCore
+
+LLVM_LIBS+= \
+ Object \
+ Option \
+ Support
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff -r 81662824e144 -r 7df7b35df6f5 external/bsd/llvm/bin/llvm-ar/Makefile
--- a/external/bsd/llvm/bin/llvm-ar/Makefile Mon Sep 02 12:27:18 2013 +0000
+++ b/external/bsd/llvm/bin/llvm-ar/Makefile Mon Sep 02 14:34:55 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2013/07/07 21:36:43 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2013/09/02 14:34:55 joerg Exp $
PROG_CXX= llvm-ar
NOMAN= yes
@@ -7,14 +7,11 @@
.PATH: ${LLVM_SRCDIR}/tools/llvm-ar
-SRCS= llvm-ar.cpp \
- Archive.cpp \
- ArchiveReader.cpp \
- ArchiveWriter.cpp
+SRCS= llvm-ar.cpp
LLVM_LIBS+= \
+ Object \
BitReader \
- IR \
Support
.include "${.PARSEDIR}/../../link.mk"
diff -r 81662824e144 -r 7df7b35df6f5 external/bsd/llvm/bin/llvm-objdump/Makefile
--- a/external/bsd/llvm/bin/llvm-objdump/Makefile Mon Sep 02 12:27:18 2013 +0000
+++ b/external/bsd/llvm/bin/llvm-objdump/Makefile Mon Sep 02 14:34:55 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2013/07/07 21:36:43 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2013/09/02 14:34:55 joerg Exp $
PROG_CXX= llvm-objdump
NOMAN= yes
@@ -13,7 +13,6 @@
MachODump.cpp
LLVM_LIBS+= \
- Object \
AArch64Disassembler \
AArch64TargetInfo \
AArch64MCTargetDesc \
@@ -45,6 +44,7 @@
DebugInfo \
MCParser \
MC \
+ Object \
IR \
Support
diff -r 81662824e144 -r 7df7b35df6f5 external/bsd/llvm/config/llvm/Config/config.h.in
--- a/external/bsd/llvm/config/llvm/Config/config.h.in Mon Sep 02 12:27:18 2013 +0000
+++ b/external/bsd/llvm/config/llvm/Config/config.h.in Mon Sep 02 14:34:55 2013 +0000
@@ -52,15 +52,9 @@
/* Define to 1 if you have the `argz_stringify' function. */
/* #undef HAVE_ARGZ_STRINGIFY */
-/* Define to 1 if you have the <assert.h> header file. */
-#define HAVE_ASSERT_H 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 `ceilf' function. */
#define HAVE_CEILF 1
@@ -76,9 +70,6 @@
/* can use __crashreporter_info__ */
#define HAVE_CRASHREPORTER_INFO 0
-/* Define to 1 if you have the <ctype.h> header file. */
-#define HAVE_CTYPE_H 1
-
/* Define to 1 if you have the <cxxabi.h> header file. */
/* #undef HAVE_CXXABI_H */
@@ -101,9 +92,6 @@
/* Define if you have the GNU dld library. */
/* #undef HAVE_DLD */
-/* Define to 1 if you have the <dld.h> header file. */
-/* #undef HAVE_DLD_H */
-
/* Define to 1 if you have the `dlerror' function. */
#define HAVE_DLERROR 1
@@ -113,9 +101,6 @@
/* Define if dlopen() is available on this platform. */
#define HAVE_DLOPEN 1
-/* Define to 1 if you have the <dl.h> header file. */
-/* #undef HAVE_DL_H */
-
/* Define if the dot program is available */
/* #undef HAVE_DOT */
@@ -196,9 +181,6 @@
/* Define if the gv program is available */
/* #undef HAVE_GV */
-/* Define to 1 if you have the `index' function. */
-/* #undef HAVE_INDEX */
-
/* Define to 1 if the system has the type `int64_t'. */
#define HAVE_INT64_T 1
@@ -241,10 +223,7 @@
/* Define to 1 if you have the `z' library (-lz). */
#define HAVE_LIBZ 1
-/* Define to 1 if you have the <limits.h> header file. */
-#define HAVE_LIMITS_H 1
-
-/* Define if you can use -Wl,-export-dynamic. */
+/* Define if you can use -rdynamic. */
#define HAVE_LINK_EXPORT_DYNAMIC 1
/* Define to 1 if you have the <link.h> header file. */
@@ -284,12 +263,6 @@
/* Define to 1 if you have the `malloc_zone_statistics' function. */
/* #undef HAVE_MALLOC_ZONE_STATISTICS */
-/* Define to 1 if you have the `memcpy' function. */
-#define HAVE_MEMCPY 1
-
-/* Define to 1 if you have the `memmove' function. */
-#define HAVE_MEMMOVE 1
-
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
@@ -360,9 +333,6 @@
/* Define to 1 if you have the `realpath' function. */
#define HAVE_REALPATH 1
-/* Define to 1 if you have the `rindex' function. */
-/* #undef HAVE_RINDEX */
-
/* Define to 1 if you have the `rintf' function. */
#define HAVE_RINTF 1
Home |
Main Index |
Thread Index |
Old Index