Update build system for LLVM 3.8.0rc3. trunk
authorjoerg <joerg@NetBSD.org>
Sat, 27 Feb 2016 21:47:30 +0000
branchtrunk
changeset 241067 25bcbdb60b0d
parent 241066 84520d821990
child 241068 69f2f609b6ff
Update build system for LLVM 3.8.0rc3.
distrib/sets/lists/base/mi
distrib/sets/lists/comp/ad.arm
distrib/sets/lists/comp/ad.powerpc
distrib/sets/lists/comp/md.amd64
distrib/sets/lists/comp/md.i386
distrib/sets/lists/comp/mi
etc/mtree/NetBSD.dist.base
external/bsd/llvm/Makefile.inc
external/bsd/llvm/bin/Makefile
external/bsd/llvm/bin/bugpoint/Makefile
external/bsd/llvm/bin/clang/Makefile
external/bsd/llvm/bin/llc/Makefile
external/bsd/llvm/bin/lldb/Makefile
external/bsd/llvm/bin/lli/Makefile
external/bsd/llvm/bin/llvm-ar/Makefile
external/bsd/llvm/bin/llvm-cov/Makefile
external/bsd/llvm/bin/llvm-cxxdump/Makefile
external/bsd/llvm/bin/llvm-dwarfdump/Makefile
external/bsd/llvm/bin/llvm-dwp/Makefile
external/bsd/llvm/bin/llvm-extract/Makefile
external/bsd/llvm/bin/llvm-link/Makefile
external/bsd/llvm/bin/llvm-objdump/Makefile
external/bsd/llvm/bin/llvm-readobj/Makefile
external/bsd/llvm/bin/llvm-symbolizer/Makefile
external/bsd/llvm/bin/macho-dumpx/Makefile
external/bsd/llvm/bin/opt/Makefile
external/bsd/llvm/bin/sancov/Makefile
external/bsd/llvm/bin/tblgen/Makefile
external/bsd/llvm/config/clang/Config/config.h
external/bsd/llvm/config/llvm/Config/config.h.in
external/bsd/llvm/config/llvm/Config/llvm-config.h.in
external/bsd/llvm/include/Makefile
external/bsd/llvm/lib/Makefile
external/bsd/llvm/lib/libLLVMARMCodeGen/Makefile
external/bsd/llvm/lib/libLLVMAnalysis/Makefile
external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile
external/bsd/llvm/lib/libLLVMCodeGen/Makefile
external/bsd/llvm/lib/libLLVMDebugInfo/Makefile
external/bsd/llvm/lib/libLLVMDebugInfoCodeView/Makefile
external/bsd/llvm/lib/libLLVMDebugInfoDWARF/Makefile
external/bsd/llvm/lib/libLLVMDebugInfoPDB/Makefile
external/bsd/llvm/lib/libLLVMDebugInfoSymbolize/Makefile
external/bsd/llvm/lib/libLLVMExecutionEngine/Makefile
external/bsd/llvm/lib/libLLVMIR/Makefile
external/bsd/llvm/lib/libLLVMInstrumentation/Makefile
external/bsd/llvm/lib/libLLVMLibDriver/Makefile
external/bsd/llvm/lib/libLLVMLinker/Makefile
external/bsd/llvm/lib/libLLVMMC/Makefile
external/bsd/llvm/lib/libLLVMMCJIT/Makefile
external/bsd/llvm/lib/libLLVMMIRParser/Makefile
external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile
external/bsd/llvm/lib/libLLVMObjCARC/Makefile
external/bsd/llvm/lib/libLLVMObject/Makefile
external/bsd/llvm/lib/libLLVMOption/Makefile
external/bsd/llvm/lib/libLLVMOrc/Makefile
external/bsd/llvm/lib/libLLVMPasses/Makefile
external/bsd/llvm/lib/libLLVMPowerPCAsmPrinter/Makefile
external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile
external/bsd/llvm/lib/libLLVMRuntimeDyld/Makefile
external/bsd/llvm/lib/libLLVMScalarOpts/Makefile
external/bsd/llvm/lib/libLLVMSparcCodeGen/Makefile
external/bsd/llvm/lib/libLLVMSupport/Makefile
external/bsd/llvm/lib/libLLVMTarget/Makefile
external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile
external/bsd/llvm/lib/libLLVMX86AsmPrinter/Makefile
external/bsd/llvm/lib/libLLVMX86CodeGen/Makefile
external/bsd/llvm/lib/libLLVMipa/Makefile
external/bsd/llvm/lib/libLLVMipo/Makefile
external/bsd/llvm/lib/libclangAST/Makefile
external/bsd/llvm/lib/libclangBasic/Makefile
external/bsd/llvm/lib/libclangCodeGen/Makefile
external/bsd/llvm/lib/libclangDriver/Makefile
external/bsd/llvm/lib/libclangFrontend/Makefile
external/bsd/llvm/lib/libclangSema/Makefile
external/bsd/llvm/lib/libclangSerialization/Makefile
external/bsd/llvm/lib/libclangStaticAnalyzerCheckers/Makefile
external/bsd/llvm/lib/libclangStaticAnalyzerCore/Makefile
external/bsd/llvm/lib/libclangToolingCore/Makefile
--- a/distrib/sets/lists/base/mi	Sat Feb 27 21:42:14 2016 +0000
+++ b/distrib/sets/lists/base/mi	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1120 2016/01/07 22:07:18 roy Exp $
+# $NetBSD: mi,v 1.1121 2016/02/27 21:47:36 joerg Exp $
 #
 # Note:	Don't delete entries from here - mark them as "obsolete" instead,
 #	unless otherwise stated below.
@@ -1017,7 +1017,8 @@
 ./usr/include/cdk				base-obsolete		obsolete
 ./usr/include/clang-3.4				base-obsolete		obsolete
 ./usr/include/clang-3.5				base-obsolete		obsolete
-./usr/include/clang-3.6				base-c-usr
+./usr/include/clang-3.6				base-obsolete		obsolete
+./usr/include/clang-3.8				base-c-usr
 ./usr/include/compat				base-obsolete		obsolete
 ./usr/include/crypto				base-c-usr
 ./usr/include/dev				base-c-usr
--- a/distrib/sets/lists/comp/ad.arm	Sat Feb 27 21:42:14 2016 +0000
+++ b/distrib/sets/lists/comp/ad.arm	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ad.arm,v 1.70 2015/08/10 03:21:44 mrg Exp $
+# $NetBSD: ad.arm,v 1.71 2016/02/27 21:47:36 joerg Exp $
 ./usr/include/acorn26				comp-c-include
 ./usr/include/acorn26/ansi.h			comp-obsolete		obsolete
 ./usr/include/acorn26/aout_machdep.h		comp-obsolete		obsolete
@@ -294,8 +294,10 @@
 ./usr/include/cats/varargs.h			comp-obsolete		obsolete
 ./usr/include/cats/vmparam.h			comp-obsolete		obsolete
 ./usr/include/cats/wchar_limits.h		comp-obsolete		obsolete
-./usr/include/clang-3.6/arm_acle.h		comp-c-include		llvm
-./usr/include/clang-3.6/arm_neon.h		comp-c-include		llvm
+./usr/include/clang-3.6/arm_acle.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/arm_neon.h		comp-obsolete		obsolete
+./usr/include/clang-3.8/arm_acle.h		comp-c-include		llvm
+./usr/include/clang-3.8/arm_neon.h		comp-c-include		llvm
 ./usr/include/epoc32				comp-c-include
 ./usr/include/epoc32/ansi.h			comp-obsolete		obsolete
 ./usr/include/epoc32/aout_machdep.h		comp-obsolete		obsolete
--- a/distrib/sets/lists/comp/ad.powerpc	Sat Feb 27 21:42:14 2016 +0000
+++ b/distrib/sets/lists/comp/ad.powerpc	Sat Feb 27 21:47:30 2016 +0000
@@ -1,10 +1,13 @@
-# $NetBSD: ad.powerpc,v 1.82 2015/12/20 16:22:39 christos Exp $
+# $NetBSD: ad.powerpc,v 1.83 2016/02/27 21:47:36 joerg Exp $
 ./usr/bin/elf2aout				comp-sysutil-bin
 ./usr/bin/psim					comp-debug-bin		gdb
 ./usr/include/altivec.h				comp-obsolete		obsolete
 ./usr/include/clang-3.4/altivec.h		comp-obsolete		obsolete
 ./usr/include/clang-3.5/altivec.h		comp-obsolete		obsolete
-./usr/include/clang-3.6/altivec.h		comp-c-include		llvm
+./usr/include/clang-3.6/altivec.h		comp-obsolete		obsolete
+./usr/include/clang-3.8/altivec.h		comp-c-include		llvm
+./usr/include/clang-3.8/htmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/htmxlintrin.h		comp-c-include		llvm
 ./usr/include/g++/bits/powerpc			comp-c-include		compat
 ./usr/include/g++/bits/powerpc/c++config.h	comp-c-include		compat,gcc
 ./usr/include/g++/bits/powerpc64		comp-c-include		compat
--- a/distrib/sets/lists/comp/md.amd64	Sat Feb 27 21:42:14 2016 +0000
+++ b/distrib/sets/lists/comp/md.amd64	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.235 2016/02/27 14:27:01 mlelstv Exp $
+# $NetBSD: md.amd64,v 1.236 2016/02/27 21:47:36 joerg Exp $
 
 ./usr/include/amd64				comp-c-include
 ./usr/include/amd64/ansi.h			comp-c-include
@@ -132,44 +132,92 @@
 ./usr/include/clang-3.5/x86intrin.h		comp-obsolete		obsolete
 ./usr/include/clang-3.5/xmmintrin.h		comp-obsolete		obsolete
 ./usr/include/clang-3.5/xopintrin.h		comp-obsolete		obsolete
-./usr/include/clang-3.6/__wmmintrin_aes.h	comp-c-include		llvm
-./usr/include/clang-3.6/__wmmintrin_pclmul.h	comp-c-include		llvm
-./usr/include/clang-3.6/ammintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/adxintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/avx2intrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/avx512bwintrin.h	comp-c-include		llvm
-./usr/include/clang-3.6/avx512erintrin.h	comp-c-include		llvm
-./usr/include/clang-3.6/avx512fintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/avx512vlbwintrin.h	comp-c-include		llvm
-./usr/include/clang-3.6/avx512vlintrin.h	comp-c-include		llvm
-./usr/include/clang-3.6/avxintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/bmi2intrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/bmiintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/cpuid.h			comp-c-include		llvm
-./usr/include/clang-3.6/emmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/f16cintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/fma4intrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/fmaintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/ia32intrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/immintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/lzcntintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/mm3dnow.h		comp-c-include		llvm
-./usr/include/clang-3.6/mm_malloc.h		comp-c-include		llvm
-./usr/include/clang-3.6/mmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/nmmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/pmmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/popcntintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/prfchwintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/rdseedintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/rtmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/shaintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/smmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/tbmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/tmmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/wmmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/x86intrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/xmmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/xopintrin.h		comp-c-include		llvm
+./usr/include/clang-3.6/__wmmintrin_aes.h	comp-obsolete		obsolete
+./usr/include/clang-3.6/__wmmintrin_pclmul.h	comp-obsolete		obsolete
+./usr/include/clang-3.6/ammintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/adxintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/avx2intrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/avx512bwintrin.h	comp-obsolete		obsolete
+./usr/include/clang-3.6/avx512erintrin.h	comp-obsolete		obsolete
+./usr/include/clang-3.6/avx512fintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/avx512vlbwintrin.h	comp-obsolete		obsolete
+./usr/include/clang-3.6/avx512vlintrin.h	comp-obsolete		obsolete
+./usr/include/clang-3.6/avxintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/bmi2intrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/bmiintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/cpuid.h			comp-obsolete		obsolete
+./usr/include/clang-3.6/emmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/f16cintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/fma4intrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/fmaintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/ia32intrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/immintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/lzcntintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/mm3dnow.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/mm_malloc.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/mmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/nmmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/pmmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/popcntintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/prfchwintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/rdseedintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/rtmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/shaintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/smmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/tbmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/tmmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/wmmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/x86intrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/xmmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/xopintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.8/__wmmintrin_aes.h	comp-c-include		llvm
+./usr/include/clang-3.8/__wmmintrin_pclmul.h	comp-c-include		llvm
+./usr/include/clang-3.8/ammintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/adxintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/avx2intrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/avx512bwintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avx512cdintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avx512dqintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avx512erintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avx512fintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/avx512vlbwintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avx512vldqintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avx512vlintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avxintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/bmi2intrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/bmiintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/cpuid.h			comp-c-include		llvm
+./usr/include/clang-3.8/emmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/f16cintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/fma4intrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/fmaintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/fxsrintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/ia32intrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/immintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/lzcntintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/mm3dnow.h		comp-c-include		llvm
+./usr/include/clang-3.8/mm_malloc.h		comp-c-include		llvm
+./usr/include/clang-3.8/mmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/nmmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/pkuintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/pmmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/popcntintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/prfchwintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/rdseedintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/rtmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/shaintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/smmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/tbmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/tmmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/wmmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/x86intrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/xmmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/xopintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/xsavecintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/xsaveintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/xsaveoptintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/xsavesintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/xtestintrin.h		comp-c-include		llvm
 ./usr/include/emmintrin.h			comp-obsolete		obsolete
 ./usr/include/g++/bits/i386			comp-c-include		compat
 ./usr/include/g++/bits/i386/c++config.h		comp-c-include		gcccmds,gcc,compat
--- a/distrib/sets/lists/comp/md.i386	Sat Feb 27 21:42:14 2016 +0000
+++ b/distrib/sets/lists/comp/md.i386	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.155 2016/02/27 14:27:01 mlelstv Exp $
+# $NetBSD: md.i386,v 1.156 2016/02/27 21:47:36 joerg Exp $
 ./usr/include/clang-3.4/__wmmintrin_aes.h	comp-obsolete		obsolete
 ./usr/include/clang-3.4/__wmmintrin_pclmul.h	comp-obsolete		obsolete
 ./usr/include/clang-3.4/ammintrin.h		comp-obsolete		obsolete
@@ -60,44 +60,92 @@
 ./usr/include/clang-3.5/x86intrin.h		comp-obsolete		obsolete
 ./usr/include/clang-3.5/xmmintrin.h		comp-obsolete		obsolete
 ./usr/include/clang-3.5/xopintrin.h		comp-obsolete		obsolete
-./usr/include/clang-3.6/__wmmintrin_aes.h	comp-c-include		llvm
-./usr/include/clang-3.6/__wmmintrin_pclmul.h	comp-c-include		llvm
-./usr/include/clang-3.6/ammintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/adxintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/avx2intrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/avx512bwintrin.h	comp-c-include		llvm
-./usr/include/clang-3.6/avx512erintrin.h	comp-c-include		llvm
-./usr/include/clang-3.6/avx512fintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/avx512vlbwintrin.h	comp-c-include		llvm
-./usr/include/clang-3.6/avx512vlintrin.h	comp-c-include		llvm
-./usr/include/clang-3.6/avxintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/bmi2intrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/bmiintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/cpuid.h			comp-c-include		llvm
-./usr/include/clang-3.6/emmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/f16cintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/fma4intrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/fmaintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/ia32intrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/immintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/lzcntintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/mm3dnow.h		comp-c-include		llvm
-./usr/include/clang-3.6/mm_malloc.h		comp-c-include		llvm
-./usr/include/clang-3.6/mmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/nmmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/pmmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/popcntintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/prfchwintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/rdseedintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/rtmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/shaintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/smmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/tbmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/tmmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/wmmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/x86intrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/xmmintrin.h		comp-c-include		llvm
-./usr/include/clang-3.6/xopintrin.h		comp-c-include		llvm
+./usr/include/clang-3.6/__wmmintrin_aes.h	comp-obsolete		obsolete
+./usr/include/clang-3.6/__wmmintrin_pclmul.h	comp-obsolete		obsolete
+./usr/include/clang-3.6/ammintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/adxintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/avx2intrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/avx512bwintrin.h	comp-obsolete		obsolete
+./usr/include/clang-3.6/avx512erintrin.h	comp-obsolete		obsolete
+./usr/include/clang-3.6/avx512fintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/avx512vlbwintrin.h	comp-obsolete		obsolete
+./usr/include/clang-3.6/avx512vlintrin.h	comp-obsolete		obsolete
+./usr/include/clang-3.6/avxintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/bmi2intrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/bmiintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/cpuid.h			comp-obsolete		obsolete
+./usr/include/clang-3.6/emmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/f16cintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/fma4intrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/fmaintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/ia32intrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/immintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/lzcntintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/mm3dnow.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/mm_malloc.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/mmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/nmmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/pmmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/popcntintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/prfchwintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/rdseedintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/rtmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/shaintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/smmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/tbmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/tmmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/wmmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/x86intrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/xmmintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/xopintrin.h		comp-obsolete		obsolete
+./usr/include/clang-3.8/__wmmintrin_aes.h	comp-c-include		llvm
+./usr/include/clang-3.8/__wmmintrin_pclmul.h	comp-c-include		llvm
+./usr/include/clang-3.8/ammintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/adxintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/avx2intrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/avx512bwintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avx512cdintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avx512dqintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avx512erintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avx512fintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/avx512vlbwintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avx512vldqintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avx512vlintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/avxintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/bmi2intrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/bmiintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/cpuid.h			comp-c-include		llvm
+./usr/include/clang-3.8/emmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/f16cintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/fma4intrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/fmaintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/fxsrintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/ia32intrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/immintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/lzcntintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/mm3dnow.h		comp-c-include		llvm
+./usr/include/clang-3.8/mm_malloc.h		comp-c-include		llvm
+./usr/include/clang-3.8/mmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/nmmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/pkuintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/pmmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/popcntintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/prfchwintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/rdseedintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/rtmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/shaintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/smmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/tbmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/tmmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/wmmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/x86intrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/xmmintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/xopintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/xsavecintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/xsaveintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/xsaveoptintrin.h	comp-c-include		llvm
+./usr/include/clang-3.8/xsavesintrin.h		comp-c-include		llvm
+./usr/include/clang-3.8/xtestintrin.h		comp-c-include		llvm
 ./usr/include/emmintrin.h			comp-obsolete		obsolete
 ./usr/include/gcc-4.1/emmintrin.h		comp-c-include		obsolete
 ./usr/include/gcc-4.1/mm_malloc.h		comp-c-include		obsolete
--- a/distrib/sets/lists/comp/mi	Sat Feb 27 21:42:14 2016 +0000
+++ b/distrib/sets/lists/comp/mi	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.2019 2016/02/21 04:16:16 christos Exp $
+#	$NetBSD: mi,v 1.2020 2016/02/27 21:47:36 joerg Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 ./etc/mtree/set.comp				comp-sys-root
@@ -350,9 +350,12 @@
 ./usr/include/cdk/swindow.h			comp-obsolete		obsolete
 ./usr/include/cdk/template.h			comp-obsolete		obsolete
 ./usr/include/cdk/viewer.h			comp-obsolete		obsolete
-./usr/include/clang-3.6/stdalign.h		comp-c-include		llvm
-./usr/include/clang-3.6/stdatomic.h		comp-c-include		llvm
-./usr/include/clang-3.6/stdnoreturn.h		comp-c-include		llvm
+./usr/include/clang-3.6/stdalign.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/stdatomic.h		comp-obsolete		obsolete
+./usr/include/clang-3.6/stdnoreturn.h		comp-obsolete		obsolete
+./usr/include/clang-3.8/stdalign.h		comp-c-include		llvm
+./usr/include/clang-3.8/stdatomic.h		comp-c-include		llvm
+./usr/include/clang-3.8/stdnoreturn.h		comp-c-include		llvm
 ./usr/include/complex.h				comp-c-include
 ./usr/include/cpio.h				comp-c-include
 ./usr/include/crypto/cryptodev.h		comp-c-include
--- a/etc/mtree/NetBSD.dist.base	Sat Feb 27 21:42:14 2016 +0000
+++ b/etc/mtree/NetBSD.dist.base	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: NetBSD.dist.base,v 1.151 2016/01/07 22:07:18 roy Exp $
+#	$NetBSD: NetBSD.dist.base,v 1.152 2016/02/27 21:47:30 joerg Exp $
 #	@(#)4.4BSD.dist	8.1 (Berkeley) 6/13/93
 
 # Do not customize this file as it may be overwritten on upgrades.
@@ -104,7 +104,7 @@
 ./usr/include/c++
 ./usr/include/c++/experimental
 ./usr/include/c++/ext
-./usr/include/clang-3.6
+./usr/include/clang-3.8
 ./usr/include/crypto
 ./usr/include/dev
 ./usr/include/dev/apm
--- a/external/bsd/llvm/Makefile.inc	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/Makefile.inc	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.79 2015/05/29 17:37:50 joerg Exp $
+#	$NetBSD: Makefile.inc,v 1.80 2016/02/27 21:47:30 joerg Exp $
 
 .if !defined(LLVM_TOPLEVEL_MK)
 LLVM_TOPLEVEL_MK=
@@ -6,9 +6,9 @@
 .include <bsd.own.mk>
 
 SVN_ROOT=		http://llvm.org/svn/llvm-project
-SVN_BRANCH=		branches/release_36
+SVN_BRANCH=		branches/release_38
 
-COMMON_REVISION=	237755
+COMMON_REVISION=	r261930
 CLANG_REVISION=		${COMMON_REVISION}
 LLD_REVISION=		${COMMON_REVISION}
 LLDB_REVISION=		${COMMON_REVISION}
@@ -17,9 +17,9 @@
 MCLINKER_REVISION=	deeb2a77b4165827316f88e0a7ba4ba6b743a080
 MCLINKER_ROOT=		https://code.google.com/p/mclinker/
 
-LLVM_VERSION=		3.6.1
-CLANG_VERSION=		3.6.1
-LLD_VERSION=		3.6.1
+LLVM_VERSION=		3.8.0
+CLANG_VERSION=		3.8.0
+LLD_VERSION=		3.8.0
 
 CLANG_SRCDIR:=	${.PARSEDIR}/dist/clang
 LLD_SRCDIR:=	${.PARSEDIR}/dist/lld
@@ -56,6 +56,8 @@
 CXXFLAGS+=	-fno-rtti -fno-exceptions
 CXXFLAGS+=	-ffunction-sections -fdata-sections
 LDFLAGS+=	-Wl,--gc-sections
+DPADD+=		${LIBEXECINFO}
+LDADD+=		-lexecinfo
 .endif
 CPPFLAGS+=	-I${LLVM_INCLUDE_OBJDIR} -I${LLVM_INCLUDE_CONFIG} \
 		-I${CLANG_INCLUDE_CONFIG} -I${MCLINKER_INCLUDE_CONFIG}
@@ -66,6 +68,7 @@
 	--enable-targets=x86,powerpc,sparc,aarch64,arm,mips \
 	--with-c-include-dirs=/usr/include/clang-${CLANG_VERSION:R}:/usr/include \
 	--disable-timestamps --prefix=/usr --sysconfdir=/etc/llvm \
+	--with-clang-default-openmp-runtime=libomp \
 	--with-clang-srcdir=${CLANG_SRCDIR} \
 	--host=${LLVM_PLATFORM} --disable-compiler-version-checks \
 	--disable-bindings llvm_cv_gnu_make_command=${MAKE}
--- a/external/bsd/llvm/bin/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2014/03/04 21:05:05 joerg Exp $
+#	$NetBSD: Makefile,v 1.15 2016/02/27 21:47:30 joerg Exp $
 
 .include <bsd.own.mk>
 
@@ -31,9 +31,11 @@
 	llvm-as \
 	llvm-bcanalyzer \
 	llvm-cov \
+	llvm-cxxdump \
 	llvm-diff \
 	llvm-dis \
 	llvm-dwarfdump \
+	llvm-dwp \
 	llvm-extract \
 	llvm-link \
 	llvm-mc \
@@ -43,8 +45,8 @@
 	llvm-readobj \
 	llvm-size \
 	llvm-symbolizer \
-	macho-dumpx \
-	opt
+	opt \
+	sancov
 .endif
 
 .include <bsd.subdir.mk>
--- a/external/bsd/llvm/bin/bugpoint/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/bugpoint/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2015/01/29 20:41:33 joerg Exp $
+#	$NetBSD: Makefile,v 1.9 2016/02/27 21:47:30 joerg Exp $
 
 PROG_CXX=	bugpoint
 NOMAN=		yes
@@ -29,13 +29,13 @@
 	MC \
 	Linker \
 	ScalarOpts \
+	ipo \
+	Object \
 	ProfileData \
 	Target \
-	ipo \
 	Vectorize \
 	TransformsUtils \
 	Analysis \
-	ipa \
 	IR \
 	Support
 
--- a/external/bsd/llvm/bin/clang/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/clang/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.33 2015/01/29 20:41:33 joerg Exp $
+#	$NetBSD: Makefile,v 1.34 2016/02/27 21:47:30 joerg Exp $
 
 PROG_CXX=	clang
 NOMAN=		yes
@@ -84,14 +84,13 @@
 	Instrumentation \
 	ScalarOpts \
 	ProfileData \
-	Analysis \
 	MCDisassembler \
 	MCParser \
 	MC \
 	Object \
 	Linker \
 	TransformsUtils \
-	ipa \
+	Analysis \
 	IR \
 	Option \
 	Support
--- a/external/bsd/llvm/bin/llc/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/llc/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.21 2014/08/10 17:34:19 joerg Exp $
+#	$NetBSD: Makefile,v 1.22 2016/02/27 21:47:30 joerg Exp $
 
 PROG_CXX=	llc
 NOMAN=		yes
@@ -10,6 +10,7 @@
 SRCS=	llc.cpp
 
 LLVM_LIBS+= \
+	MIRParser \
 	AsmPrinter \
 	IRReader \
 	AsmParser \
@@ -50,6 +51,7 @@
 	Object \
 	SelectionDAG \
 	CodeGen \
+	Instrumentation \
 	ScalarOpts \
 	TransformsUtils \
 	Analysis \
--- a/external/bsd/llvm/bin/lldb/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/lldb/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2014/08/10 17:34:20 joerg Exp $
+#	$NetBSD: Makefile,v 1.5 2016/02/27 21:47:30 joerg Exp $
 
 PROG_CXX=	lldb
 NOMAN=		yes
@@ -147,7 +147,6 @@
 	Linker \
 	TransformsUtils \
 	Analysis \
-	ipa \
 	IR \
 	ProfileData \
 	Option \
--- a/external/bsd/llvm/bin/lli/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/lli/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2015/01/29 20:41:34 joerg Exp $
+#	$NetBSD: Makefile,v 1.14 2016/02/27 21:47:31 joerg Exp $
 
 PROG_CXX=	lli
 NOMAN=		yes
@@ -8,11 +8,10 @@
 .PATH: ${LLVM_SRCDIR}/tools/lli
 
 SRCS=	lli.cpp \
-	RemoteMemoryManager.cpp \
-	RemoteTarget.cpp \
-	RemoteTargetExternal.cpp
+	OrcLazyJIT.cpp
 
 LLVM_LIBS+= \
+	Orc \
 	X86CodeGen \
 	X86TargetInfo \
 	X86MCTargetDesc \
--- a/external/bsd/llvm/bin/llvm-ar/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/llvm-ar/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.6 2015/01/29 20:41:34 joerg Exp $
+#	$NetBSD: Makefile,v 1.7 2016/02/27 21:47:31 joerg Exp $
 
 PROG_CXX=	llvm-ar
 NOMAN=		yes
@@ -44,6 +44,8 @@
 	MC \
 	BitReader \
 	IR \
+	LibDriver \
+	Option \
 	Support
 
 LDADD+=	-lz
--- a/external/bsd/llvm/bin/llvm-cov/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/llvm-cov/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2015/01/29 20:41:34 joerg Exp $
+#	$NetBSD: Makefile,v 1.5 2016/02/27 21:47:31 joerg Exp $
 
 PROG_CXX=	llvm-cov
 NOMAN=		yes
@@ -12,7 +12,6 @@
 	CodeCoverage.cpp \
 	CoverageFilters.cpp \
 	CoverageReport.cpp \
-	CoverageSummary.cpp \
 	CoverageSummaryInfo.cpp \
 	SourceCoverageView.cpp \
 	TestingSupport.cpp
@@ -20,6 +19,9 @@
 LLVM_LIBS+= \
 	ProfileData \
 	Object \
+	MCParser \
+	MC \
+	BitReader \
 	IR \
 	Support
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/bin/llvm-cxxdump/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -0,0 +1,32 @@
+#	$NetBSD: Makefile,v 1.1 2016/02/27 21:47:31 joerg Exp $
+
+PROG_CXX=	llvm-cxxdump
+NOMAN=		yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-cxxdump
+
+SRCS=	llvm-cxxdump.cpp \
+	Error.cpp
+
+LLVM_LIBS+= \
+	ARMTargetInfo \
+	AArch64TargetInfo \
+	MipsTargetInfo \
+	PowerPCTargetInfo \
+	SparcTargetInfo \
+	X86TargetInfo \
+	Object \
+	BitReader \
+	MCParser \
+	MC \
+	IR \
+	Support
+
+#LDADD+=	-lz
+#DPADD+=	${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
--- a/external/bsd/llvm/bin/llvm-dwarfdump/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/llvm-dwarfdump/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.2 2013/07/07 21:36:43 joerg Exp $
+#	$NetBSD: Makefile,v 1.3 2016/02/27 21:47:31 joerg Exp $
 
 PROG_CXX=	llvm-dwarfdump
 NOMAN=		yes
@@ -10,8 +10,12 @@
 SRCS=	llvm-dwarfdump.cpp
 
 LLVM_LIBS+= \
-	DebugInfo \
+	DebugInfoDWARF \
 	Object \
+	BitReader \
+	IR \
+	MC \
+	MCParser \
 	Support
 
 LDADD+=	-lz
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/bin/llvm-dwp/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -0,0 +1,61 @@
+#	$NetBSD: Makefile,v 1.1 2016/02/27 21:47:31 joerg Exp $
+
+PROG_CXX=	llvm-dwp
+NOMAN=		yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-dwp
+
+SRCS=	llvm-dwp.cpp
+
+LLVM_LIBS+= \
+	DebugInfoDWARF \
+	AArch64CodeGen \
+	AArch64TargetInfo \
+	AArch64MCTargetDesc \
+	AArch64AsmPrinter \
+	AArch64Utils \
+	ARMCodeGen \
+	ARMTargetInfo \
+	ARMMCTargetDesc \
+	ARMAsmPrinter \
+	MipsCodeGen \
+	MipsTargetInfo \
+	MipsMCTargetDesc \
+	MipsAsmPrinter \
+	PowerPCCodeGen \
+	PowerPCTargetInfo \
+	PowerPCMCTargetDesc \
+	PowerPCAsmPrinter \
+	SparcCodeGen \
+	SparcTargetInfo \
+	SparcMCTargetDesc \
+	SparcAsmPrinter \
+	X86CodeGen \
+	X86MCTargetDesc \
+	X86TargetInfo \
+	X86Utils \
+	X86AsmPrinter \
+	MCDisassembler \
+	AsmPrinter \
+	Object \
+	MCParser \
+	SelectionDAG \
+	CodeGen \
+	Target \
+	InstCombine \
+	Instrumentation \
+	ScalarOpts \
+	MC \
+	TransformsUtils \
+	Analysis \
+	IR \
+	Support
+
+LDADD+=	-lz
+DPADD+=	${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
--- a/external/bsd/llvm/bin/llvm-extract/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/llvm-extract/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2013/04/25 13:59:56 joerg Exp $
+#	$NetBSD: Makefile,v 1.5 2016/02/27 21:47:31 joerg Exp $
 
 PROG_CXX=	llvm-extract
 NOMAN=		yes
@@ -18,7 +18,6 @@
 	TransformsUtils \
 	Analysis \
 	Target \
-	ipa \
 	IR \
 	Support
 
--- a/external/bsd/llvm/bin/llvm-link/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/llvm-link/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2013/04/25 13:59:56 joerg Exp $
+#	$NetBSD: Makefile,v 1.5 2016/02/27 21:47:31 joerg Exp $
 
 PROG_CXX=	llvm-link
 NOMAN=		yes
@@ -10,6 +10,7 @@
 SRCS=	llvm-link.cpp
 
 LLVM_LIBS+= \
+	Object \
 	IRReader \
 	AsmParser \
 	BitReader \
--- a/external/bsd/llvm/bin/llvm-objdump/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/llvm-objdump/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.11 2015/01/29 20:41:34 joerg Exp $
+#	$NetBSD: Makefile,v 1.12 2016/02/27 21:47:31 joerg Exp $
 
 PROG_CXX=	llvm-objdump
 NOMAN=		yes
@@ -48,7 +48,7 @@
 	X86Utils \
 	CodeGen \
 	MCDisassembler \
-	DebugInfo \
+	DebugInfoDWARF \
 	Object \
 	BitReader \
 	MCParser \
--- a/external/bsd/llvm/bin/llvm-readobj/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/llvm-readobj/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2014/08/10 17:34:20 joerg Exp $
+#	$NetBSD: Makefile,v 1.9 2016/02/27 21:47:31 joerg Exp $
 
 PROG_CXX=	llvm-readobj
 NOMAN=		yes
@@ -11,6 +11,7 @@
 	ARMAttributeParser.cpp \
 	ARMWinEHPrinter.cpp \
 	COFFDumper.cpp \
+	COFFImportDumper.cpp \
 	ELFDumper.cpp \
 	Error.cpp \
 	MachODumper.cpp \
--- a/external/bsd/llvm/bin/llvm-symbolizer/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/llvm-symbolizer/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2014/08/10 17:34:20 joerg Exp $
+#	$NetBSD: Makefile,v 1.5 2016/02/27 21:47:31 joerg Exp $
 
 PROG_CXX=	llvm-symbolizer
 NOMAN=		yes
@@ -7,11 +7,12 @@
 
 .PATH: ${LLVM_SRCDIR}/tools/llvm-symbolizer
 
-SRCS=	LLVMSymbolize.cpp \
-	llvm-symbolizer.cpp
+SRCS=	llvm-symbolizer.cpp
 
 LLVM_LIBS+= \
-	DebugInfo \
+	DebugInfoSymbolize \
+	DebugInfoDWARF \
+	DebugInfoPDB \
 	Object \
 	MCParser \
 	MC \
--- a/external/bsd/llvm/bin/macho-dumpx/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-#	$NetBSD: Makefile,v 1.2 2013/01/23 15:02:56 joerg Exp $
-
-ROG_CXX=	machdo-dumpx
-NOMAN=		yes
-
-.include <bsd.init.mk>
-
-.PATH: ${LLVM_SRCDIR}/tools/macho-dump
-
-SRCS=	macho-dump.cpp
-
-LLVM_LIBS+= \
-	Object \
-	IR \
-	Support
-
-.include "${.PARSEDIR}/../../link.mk"
-
-.include <bsd.prog.mk>
--- a/external/bsd/llvm/bin/opt/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/opt/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.15 2015/01/29 20:41:34 joerg Exp $
+#	$NetBSD: Makefile,v 1.16 2016/02/27 21:47:32 joerg Exp $
 
 PROG_CXX=	opt
 NOMAN=		yes
@@ -12,13 +12,15 @@
 	GraphPrinters.cpp \
 	NewPMDriver.cpp \
 	PassPrinters.cpp \
-	Passes.cpp \
 	PrintSCC.cpp \
 	opt.cpp
 
 LLVM_LIBS+= \
+	Passes \
 	ObjCARC \
 	ipo \
+	Linker \
+	Object \
 	IRReader \
 	AsmParser \
 	BitReader \
@@ -61,10 +63,9 @@
 	Instrumentation \
 	ScalarOpts \
 	ProfileData \
-	Analysis \
 	MC \
 	TransformsUtils \
-	ipa \
+	Analysis \
 	IR \
 	Support
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/bin/sancov/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -0,0 +1,56 @@
+#	$NetBSD: Makefile,v 1.1 2016/02/27 21:47:32 joerg Exp $
+
+PROG_CXX=	sancov
+NOMAN=		yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/sancov
+
+SRCS=	sancov.cc
+
+LLVM_LIBS+= \
+	AArch64Disassembler \
+	AArch64MCTargetDesc \
+	AArch64AsmPrinter \
+	AArch64TargetInfo \
+	AArch64Utils \
+	ARMDisassembler \
+	ARMMCTargetDesc \
+	ARMAsmPrinter \
+	ARMTargetInfo \
+	MipsDisassembler \
+	MipsMCTargetDesc \
+	MipsAsmPrinter \
+	MipsTargetInfo \
+	PowerPCDisassembler \
+	PowerPCMCTargetDesc \
+	PowerPCAsmPrinter \
+	PowerPCTargetInfo \
+	SparcDisassembler \
+	SparcMCTargetDesc \
+	SparcAsmPrinter \
+	SparcTargetInfo \
+	X86Disassembler \
+	X86CodeGen \
+	X86MCTargetDesc \
+	X86AsmPrinter \
+	X86TargetInfo \
+	X86Utils \
+	MCDisassembler \
+	DebugInfoSymbolize \
+	DebugInfoDWARF \
+	DebugInfoPDB \
+	Object \
+	BitReader \
+	IR \
+	MCParser \
+	MC \
+	Support
+
+LDADD+=	-lz
+DPADD+=	${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
--- a/external/bsd/llvm/bin/tblgen/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/bin/tblgen/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.19 2014/08/10 17:34:20 joerg Exp $
+#	$NetBSD: Makefile,v 1.20 2016/02/27 21:47:32 joerg Exp $
 
 PROG_CXX=	llvm-tblgen
 NOMAN=		yes
@@ -10,6 +10,7 @@
 SRCS=	AsmMatcherEmitter.cpp \
 	AsmWriterEmitter.cpp \
 	AsmWriterInst.cpp \
+	Attributes.cpp \
 	CTagsEmitter.cpp \
 	CallingConvEmitter.cpp \
 	CodeEmitterGen.cpp \
--- a/external/bsd/llvm/config/clang/Config/config.h	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/config/clang/Config/config.h	Sat Feb 27 21:47:30 2016 +0000
@@ -1,14 +1,17 @@
 /* tools/clang/include/clang/Config/config.h.  Generated from config.h.in by configure.  */
 /* This generated file is for internal use. Do not include it from headers. */
 
-#ifdef CONFIG_H
+#ifdef CLANG_CONFIG_H
 #error config.h can only be included once
 #else
-#define CONFIG_H
+#define CLANG_CONFIG_H
 
 /* Bug report URL. */
 #define BUG_REPORT_URL "http://llvm.org/bugs/"
 
+/* Default OpenMP runtime used by -fopenmp. */
+#define CLANG_DEFAULT_OPENMP_RUNTIME "libomp"
+
 /* Multilib suffix for libdir. */
 #define CLANG_LIBDIR_SUFFIX ""
 
@@ -16,7 +19,7 @@
 #define CLANG_RESOURCE_DIR ""
 
 /* Directories clang will search for headers */
-#define C_INCLUDE_DIRS "/usr/include/clang-3.6:/usr/include"
+#define C_INCLUDE_DIRS "/usr/include/clang-3.8:/usr/include"
 
 /* Default <path> to all compiler invocations for --sysroot=<path>. */
 #define DEFAULT_SYSROOT ""
@@ -27,7 +30,7 @@
 /* Define if we have libxml2 */
 /* #undef CLANG_HAVE_LIBXML */
 
-#define PACKAGE_STRING "LLVM 3.6.1"
+#define PACKAGE_STRING "LLVM 3.8.0"
 
 /* The LLVM product name and version */
 #define BACKEND_PACKAGE_STRING PACKAGE_STRING
--- a/external/bsd/llvm/config/llvm/Config/config.h.in	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/config/llvm/Config/config.h.in	Sat Feb 27 21:47:30 2016 +0000
@@ -4,9 +4,15 @@
 #ifndef CONFIG_H
 #define CONFIG_H
 
+/* Exported configuration */
+#include "llvm/Config/llvm-config.h"
+
 /* Bug report URL. */
 #define BUG_REPORT_URL "http://llvm.org/bugs/"
 
+/* Default OpenMP runtime used by -fopenmp. */
+#define CLANG_DEFAULT_OPENMP_RUNTIME "libomp"
+
 /* Define if we have libxml2 */
 /* #undef CLANG_HAVE_LIBXML */
 
@@ -17,7 +23,7 @@
 #define CLANG_RESOURCE_DIR ""
 
 /* Directories clang will search for headers */
-#define C_INCLUDE_DIRS "/usr/include/clang-3.6:/usr/include"
+#define C_INCLUDE_DIRS "/usr/include/clang-3.8:/usr/include"
 
 /* Default <path> to all compiler invocations for --sysroot=<path>. */
 #define DEFAULT_SYSROOT ""
@@ -38,10 +44,7 @@
 #define GCC_INSTALL_PREFIX ""
 
 /* Define to 1 if you have the `backtrace' function. */
-/* #undef HAVE_BACKTRACE */
-
-/* Define to 1 if you have the `ceilf' function. */
-#define HAVE_CEILF 1
+#define HAVE_BACKTRACE 1
 
 /* Define to 1 if you have the <CrashReporterClient.h> header file. */
 /* #undef HAVE_CRASHREPORTERCLIENT_H */
@@ -87,19 +90,11 @@
 /* Define to 1 if you have the <execinfo.h> header file. */
 #define HAVE_EXECINFO_H 1
 
-/* Define to 1 if you have the `exp' function. */
-#define HAVE_EXP 1
-
-/* Define to 1 if you have the `exp2' function. */
-#define HAVE_EXP2 1
-
 /* Define to 1 if you have the <fcntl.h> header file. */
 #define HAVE_FCNTL_H 1
 
 /* Define to 1 if you have the <fenv.h> header file. */
-  #ifndef __powerpc__
 #define HAVE_FENV_H 1
-  #endif
 
 /* Define if libffi is available on this platform. */
 /* #undef HAVE_FFI_CALL */
@@ -110,15 +105,6 @@
 /* Define to 1 if you have the <ffi.h> header file. */
 /* #undef HAVE_FFI_H */
 
-/* Set to 1 if the finite function is found in <ieeefp.h> */
-/* #undef HAVE_FINITE_IN_IEEEFP_H */
-
-/* Define to 1 if you have the `floorf' function. */
-#define HAVE_FLOORF 1
-
-/* Define to 1 if you have the `fmodf' function. */
-#define HAVE_FMODF 1
-
 /* Define to 1 if you have the `futimens' function. */
 #define HAVE_FUTIMENS 1
 
@@ -149,27 +135,15 @@
 /* Define to 1 if you have the `isatty' function. */
 #define HAVE_ISATTY 1
 
-/* Set to 1 if the isinf function is found in <cmath> */
-#define HAVE_ISINF_IN_CMATH 1
-
-/* Set to 1 if the isinf function is found in <math.h> */
-#define HAVE_ISINF_IN_MATH_H 1
-
-/* Set to 1 if the isnan function is found in <cmath> */
-#define HAVE_ISNAN_IN_CMATH 1
-
-/* Set to 1 if the isnan function is found in <math.h> */
-#define HAVE_ISNAN_IN_MATH_H 1
-
 /* Define if libedit is available on this platform. */
 #define HAVE_LIBEDIT 1
 
-/* Define to 1 if you have the `imagehlp' library (-limagehlp). */
-/* #undef HAVE_LIBIMAGEHLP */
-
 /* Define to 1 if you have the `m' library (-lm). */
 #define HAVE_LIBM 1
 
+/* Define to 1 if you have the `ole32' library (-lole32). */
+/* #undef HAVE_LIBOLE32 */
+
 /* Define to 1 if you have the `psapi' library (-lpsapi). */
 /* #undef HAVE_LIBPSAPI */
 
@@ -179,6 +153,9 @@
 /* Define to 1 if you have the `shell32' library (-lshell32). */
 /* #undef HAVE_LIBSHELL32 */
 
+/* Define to 1 if you have the `uuid' library (-luuid). */
+/* #undef HAVE_LIBUUID */
+
 /* Define to 1 if you have the `z' library (-lz). */
 #define HAVE_LIBZ 1
 
@@ -192,15 +169,6 @@
    the current directory to the dynamic linker search path. */
 #define HAVE_LINK_R 1
 
-/* Define to 1 if you have the `log' function. */
-#define HAVE_LOG 1
-
-/* Define to 1 if you have the `log10' function. */
-#define HAVE_LOG10 1
-
-/* Define to 1 if you have the `log2' function. */
-#define HAVE_LOG2 1
-
 /* Define to 1 if you have the `longjmp' function. */
 /* #undef HAVE_LONGJMP */
 
@@ -244,15 +212,9 @@
 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
 /* #undef HAVE_NDIR_H */
 
-/* Define to 1 if you have the `nearbyintf' function. */
-#define HAVE_NEARBYINTF 1
-
 /* Define to 1 if you have the `posix_spawn' function. */
 #define HAVE_POSIX_SPAWN 1
 
-/* Define to 1 if you have the `powf' function. */
-#define HAVE_POWF 1
-
 /* Define to 1 if you have the `pread' function. */
 #define HAVE_PREAD 1
 
@@ -271,21 +233,9 @@
 /* Have pthread_rwlock_init */
 #define HAVE_PTHREAD_RWLOCK_INIT 1
 
-/* Define to 1 if srand48/lrand48/drand48 exist in <stdlib.h> */
-#define HAVE_RAND48 1
-
 /* Define to 1 if you have the `realpath' function. */
 #define HAVE_REALPATH 1
 
-/* Define to 1 if you have the `rintf' function. */
-#define HAVE_RINTF 1
-
-/* Define to 1 if you have the `round' function. */
-#define HAVE_ROUND 1
-
-/* Define to 1 if you have the `roundf' function. */
-#define HAVE_ROUNDF 1
-
 /* Define to 1 if you have the `sbrk' function. */
 #define HAVE_SBRK 1
 
@@ -301,27 +251,15 @@
 /* Define to 1 if you have the `setrlimit' function. */
 #define HAVE_SETRLIMIT 1
 
-/* Define to 1 if you have the `siglongjmp' function. */
-/* #undef HAVE_SIGLONGJMP */
-
 /* Define to 1 if you have the <signal.h> 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 <stdint.h> header file. */
 #define HAVE_STDINT_H 1
 
 /* Define to 1 if you have the <stdlib.h> header file. */
 #define HAVE_STDLIB_H 1
 
-/* Set to 1 if the std::isinf function is found in <cmath> */
-#define HAVE_STD_ISINF_IN_CMATH 1
-
-/* Set to 1 if the std::isnan function is found in <cmath> */
-#define HAVE_STD_ISNAN_IN_CMATH 1
-
 /* Define to 1 if you have the `strerror' function. */
 #define HAVE_STRERROR 1
 
@@ -334,9 +272,6 @@
 /* Define to 1 if you have the <string.h> header file. */
 #define HAVE_STRING_H 1
 
-/* Define to 1 if you have the `strtof' function. */
-#define HAVE_STRTOF 1
-
 /* Define to 1 if you have the `strtoll' function. */
 #define HAVE_STRTOLL 1
 
@@ -378,9 +313,6 @@
 /* Define to 1 if you have the <sys/uio.h> header file. */
 #define HAVE_SYS_UIO_H 1
 
-/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
-#define HAVE_SYS_WAIT_H 1
-
 /* Define if the setupterm() function is supported this platform. */
 #define HAVE_TERMINFO 1
 
@@ -393,9 +325,6 @@
 /* Define to 1 if you have the <unistd.h> header file. */
 #define HAVE_UNISTD_H 1
 
-/* Define to 1 if you have the <utime.h> header file. */
-#define HAVE_UTIME_H 1
-
 /* Define to 1 if the system has the type `u_int64_t'. */
 /* #undef HAVE_U_INT64_T */
 
@@ -483,6 +412,9 @@
 /* Installation directory for documentation */
 #define LLVM_DOCSDIR "/usr/share/doc/llvm"
 
+/* Define to enable checks that alter the LLVM C++ ABI */
+#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
+
 /* Define if threads enabled */
 #define LLVM_ENABLE_THREADS 1
 
@@ -550,13 +482,13 @@
 #define LLVM_VERSION_MAJOR 3
 
 /* Minor version of the LLVM API */
-#define LLVM_VERSION_MINOR 6
+#define LLVM_VERSION_MINOR 8
 
 /* Patch version of the LLVM API */
-#define LLVM_VERSION_PATCH 1
+#define LLVM_VERSION_PATCH 0
 
 /* LLVM version string */
-#define LLVM_VERSION_STRING "3.6.1"
+#define LLVM_VERSION_STRING "3.8.0"
 
 /* The shared library extension */
 #define LTDL_SHLIB_EXT ".so"
@@ -572,13 +504,13 @@
 #define PACKAGE_NAME "LLVM"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "LLVM 3.6.1"
+#define PACKAGE_STRING "LLVM 3.8.0"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "llvm"
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "3.6.1"
+#define PACKAGE_VERSION "3.8.0"
 
 /* Define as the return type of signal handlers (`int' or `void'). */
 #define RETSIGTYPE void
--- a/external/bsd/llvm/config/llvm/Config/llvm-config.h.in	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/config/llvm/Config/llvm-config.h.in	Sat Feb 27 21:47:30 2016 +0000
@@ -30,6 +30,9 @@
 /* Installation directory for documentation */
 #define LLVM_DOCSDIR "/usr/share/doc/llvm"
 
+/* Define to enable checks that alter the LLVM C++ ABI */
+#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
+
 /* Define if threads enabled */
 #define LLVM_ENABLE_THREADS 1
 
@@ -91,12 +94,12 @@
 #define LLVM_VERSION_MAJOR 3
 
 /* Minor version of the LLVM API */
-#define LLVM_VERSION_MINOR 6
+#define LLVM_VERSION_MINOR 8
 
 /* Patch version of the LLVM API */
-#define LLVM_VERSION_PATCH 1
+#define LLVM_VERSION_PATCH 0
 
 /* LLVM version string */
-#define LLVM_VERSION_STRING "3.6.1"
+#define LLVM_VERSION_STRING "3.8.0"
 
 #endif
--- a/external/bsd/llvm/include/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/include/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.38 2015/11/07 00:12:57 joerg Exp $
+#	$NetBSD: Makefile,v 1.39 2016/02/27 21:47:32 joerg Exp $
 
 .include <bsd.init.mk>
 
@@ -11,9 +11,12 @@
 	ammintrin.h \
 	avx2intrin.h \
 	avx512bwintrin.h \
+	avx512cdintrin.h \
+	avx512dqintrin.h \
 	avx512fintrin.h \
 	avx512erintrin.h \
 	avx512vlbwintrin.h \
+	avx512vldqintrin.h \
 	avx512vlintrin.h \
 	avxintrin.h \
 	bmi2intrin.h \
@@ -23,6 +26,7 @@
 	f16cintrin.h \
 	fmaintrin.h \
 	fma4intrin.h \
+	fxsrintrin.h \
 	ia32intrin.h \
 	immintrin.h \
 	lzcntintrin.h \
@@ -30,6 +34,7 @@
 	mmintrin.h \
 	mm_malloc.h \
 	nmmintrin.h \
+	pkuintrin.h \
 	pmmintrin.h \
 	popcntintrin.h \
 	prfchwintrin.h \
@@ -42,9 +47,17 @@
 	wmmintrin.h \
 	x86intrin.h \
 	xmmintrin.h \
-	xopintrin.h
+	xopintrin.h \
+	xsavesintrin.h \
+	xsaveintrin.h \
+	xsaveoptintrin.h \
+	xsavecintrin.h \
+	xtestintrin.h
+
 .elif ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64"
-INCS=	altivec.h
+INCS=	altivec.h \
+	htmintrin.h \
+	htmxlintrin.h
 .elif ${MACHINE_CPU} == "arm"
 INCS=	arm_acle.h \
 	arm_neon.h
@@ -57,7 +70,10 @@
 	${CLANG_SRCDIR}/include/clang/Basic \
 	${CLANG_SRCDIR}/include/clang/Driver
 
-TABLEGEN_SRC=	Intrinsics.td Options.td
+TABLEGEN_SRC=	Attributes.td Intrinsics.td Options.td
+
+TABLEGEN_OUTPUT.Attributes.td= \
+	llvm/IR/Attributes.inc|-gen-attrs
 
 TABLEGEN_OUTPUT.Intrinsics.td= \
 	llvm/IR/Intrinsics.gen|-gen-intrinsic
@@ -159,6 +175,8 @@
 DPSRCS+=	llvm/Config/config.h llvm/Config/llvm-config.h
 CLEANFILES+=	llvm/Config/config.h llvm/Config/llvm-config.h
 
+NATIVE_LIBS=	-lm -lexecinfo
+
 llvm/Config/config.h: ${LLVM_TOPLEVEL}/Makefile.inc ${LLVM_TOPLEVEL}/config/llvm/Config/config.h.in
 	mkdir -p ${.TARGET:H}
 	${TOOL_SED} -e /LLVM_DEFAULT_TARGET_TRIPLE/d -e /LLVM_NATIVE_/d \
@@ -169,6 +187,7 @@
 	printf '#define PACKAGE_VERSION "${LLVM_VERSION} (trunk ${LLVM_REVISION})"\n' >> ${.TARGET}.tmp
 	printf '#define LLVM_VERSION_MAJOR ${LLVM_VERSION:R:R}\n' >> ${.TARGET}.tmp
 	printf '#define LLVM_VERSION_MINOR ${LLVM_VERSION:R:E}\n' >> ${.TARGET}.tmp
+	printf '#define LLVM_VERSION_STRING "${LLVM_VERSION}"\n' >> ${.TARGET}.tmp
 	printf '#endif\n' >> ${.TARGET}.tmp
 	mv ${.TARGET}.tmp ${.TARGET}
 
@@ -181,6 +200,7 @@
 	printf '#define LLVM_DEFAULT_TARGET_TRIPLE "${MACHINE_GNU_PLATFORM}"\n' >> ${.TARGET}.tmp
 	printf '#define LLVM_VERSION_MAJOR ${LLVM_VERSION:R:R}\n' >> ${.TARGET}.tmp
 	printf '#define LLVM_VERSION_MINOR ${LLVM_VERSION:R:E}\n' >> ${.TARGET}.tmp
+	printf '#define LLVM_VERSION_STRING "${LLVM_VERSION}"\n' >> ${.TARGET}.tmp
 	printf '#endif\n' >> ${.TARGET}.tmp
 	mv ${.TARGET}.tmp ${.TARGET}
 
@@ -189,15 +209,15 @@
 	mkdir -p tmp
 	cd tmp && ${LLVM_SRCDIR}/configure ${LLVM_CONFIGURE_ARGS} \
 	    CC=${CC:Q} CFLAGS=${CFLAGS:N-Werror:Q} CXX=${CXX:Q} CXXFLAGS=${CXXFLAGS:N-Werror:Q} \
-	    CPPFLAGS=${CPPFLAGS:N-std=c++11:Q} LDFLAGS=${LDFLAGS:Q} LD=${LD:Q} LIBS=-lm \
+	    CPPFLAGS=${CPPFLAGS:N-std=c++11:Q} LDFLAGS=${LDFLAGS:Q} LD=${LD:Q} LIBS=${NATIVE_LIBS:Q} \
 	    ac_cv_func_mmap_fixed_mapped=yes ac_cv_func_mmap_file=yes llvm_cv_c_printf_a=yes
 	cp -r tmp/include/llvm/* ${LLVM_INCLUDE_CONFIG}/llvm/
-	mv ${LLVM_INCLUDE_CONFIG}/llvm/Config/config.h \
-	   ${LLVM_INCLUDE_CONFIG}/llvm/Config/config.h.in
 	mv ${LLVM_INCLUDE_CONFIG}/llvm/Config/llvm-config.h \
 	   ${LLVM_INCLUDE_CONFIG}/llvm/Config/llvm-config.h.in
 	cp -r tmp/tools/clang/include/clang/* ${CLANG_INCLUDE_CONFIG}/clang/
 	rm -r tmp
+	mv ${LLVM_INCLUDE_CONFIG}/llvm/Config/config.h \
+	    ${LLVM_INCLUDE_CONFIG}/llvm/Config/config.h.in
 .endif
 
 depend dependall all: ${DPSRCS}
--- a/external/bsd/llvm/lib/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2015/01/29 20:41:34 joerg Exp $
+# $NetBSD: Makefile,v 1.43 2016/02/27 21:47:32 joerg Exp $
 
 .include <bsd.own.mk>
 
@@ -13,7 +13,6 @@
 	libLLVMIRReader \
 	libLLVMInstCombine \
 	libLLVMInstrumentation \
-	libLLVMipa \
 	libLLVMipo \
 	libLLVMLinker \
 	libLLVMMC \
@@ -87,12 +86,18 @@
 SUBDIR+= \
 	libLLVMExecutionEngine \
 	libLLVMMCJIT \
+	libLLVMMIRParser \
+	libLLVMPasses \
+	libLLVMOrc \
 	libLLVMRuntimeDyld
 .endif
 
 .if (${NO_LLVM_DEVELOPER:Uno} == "no" && ${LLVM_DEVELOPER:U} == "yes") || ${MKLLD} == "yes"
 SUBDIR+= \
-	libLLVMDebugInfo
+	libLLVMDebugInfoCodeView \
+	libLLVMDebugInfoDWARF \
+	libLLVMDebugInfoPDB \
+	libLLVMDebugInfoSymbolize
 .endif
 
 .if ${NO_LLVM_DEVELOPER:Uno} == "no" && ${LLVM_DEVELOPER:U} == "yes"
@@ -102,6 +107,7 @@
 	libLLVMHello \
 	libLLVMInterpreter \
 	libLLVMLTO \
+	libLLVMLibDriver \
 	libLLVMLineEditor
 .endif
 
--- a/external/bsd/llvm/lib/libLLVMARMCodeGen/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMARMCodeGen/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2015/01/29 20:41:35 joerg Exp $
+#	$NetBSD: Makefile,v 1.15 2016/02/27 21:47:32 joerg Exp $
 
 LIB=	LLVMARMCodeGen
 
@@ -30,12 +30,11 @@
 	ARMTargetTransformInfo.cpp \
 	A15SDOptimizer.cpp \
 	MLxExpansionPass.cpp \
+	ThumbRegisterInfo.cpp \
 	Thumb1InstrInfo.cpp \
 	Thumb1FrameLowering.cpp \
-	Thumb1RegisterInfo.cpp \
 	Thumb2ITBlockPass.cpp \
 	Thumb2InstrInfo.cpp \
-	Thumb2RegisterInfo.cpp \
 	Thumb2SizeReduction.cpp
 
 TABLEGEN_SRC=		ARM.td
--- a/external/bsd/llvm/lib/libLLVMAnalysis/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMAnalysis/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.20 2015/01/29 20:41:35 joerg Exp $
+#	$NetBSD: Makefile,v 1.21 2016/02/27 21:47:32 joerg Exp $
 
 LIB=	LLVMAnalysis
 
@@ -7,9 +7,7 @@
 .PATH: ${LLVM_SRCDIR}/lib/Analysis
 
 SRCS+=	AliasAnalysis.cpp \
-	AliasAnalysisCounter.cpp \
 	AliasAnalysisEvaluator.cpp \
-	AliasDebugger.cpp \
 	AliasSetTracker.cpp \
 	Analysis.cpp \
 	AssumptionCache.cpp \
@@ -21,34 +19,45 @@
 	CFGPrinter.cpp \
 	CFLAliasAnalysis.cpp \
 	CGSCCPassManager.cpp \
+	CallGraphSCCPass.cpp \
+	CallGraph.cpp \
+	CallPrinter.cpp \
 	CaptureTracking.cpp \
 	CodeMetrics.cpp \
 	ConstantFolding.cpp \
 	CostModel.cpp \
 	Delinearization.cpp \
+	DemandedBits.cpp \
 	DependenceAnalysis.cpp \
+	DivergenceAnalysis.cpp \
 	DomPrinter.cpp \
 	DominanceFrontier.cpp \
-	FunctionTargetTransformInfo.cpp \
+	EHPersonalities.cpp \
+	GlobalsModRef.cpp \
 	IVUsers.cpp \
+	InlineCost.cpp \
 	InstCount.cpp \
 	InstructionSimplify.cpp \
 	Interval.cpp \
 	IntervalPartition.cpp \
-	JumpInstrTableInfo.cpp \
+	IteratedDominanceFrontier.cpp \
 	LazyCallGraph.cpp \
 	LazyValueInfo.cpp \
-	LibCallAliasAnalysis.cpp \
-	LibCallSemantics.cpp \
 	Lint.cpp \
 	Loads.cpp \
+	LoopAccessAnalysis.cpp \
 	LoopInfo.cpp \
 	LoopPass.cpp \
 	MemDepPrinter.cpp \
+	MemDerefPrinter.cpp \
 	MemoryBuiltins.cpp \
 	MemoryDependenceAnalysis.cpp \
+	MemoryLocation.cpp \
 	ModuleDebugInfoPrinter.cpp \
-	NoAliasAnalysis.cpp \
+	ObjCARCAliasAnalysis.cpp \
+	ObjCARCAnalysisUtils.cpp \
+	ObjCARCInstKind.cpp \
+	OrderedBasicBlock.cpp \
 	PHITransAddr.cpp \
 	PostDominators.cpp \
 	PtrUseVisitor.cpp \
@@ -61,10 +70,12 @@
 	ScalarEvolutionNormalization.cpp \
 	ScopedNoAliasAA.cpp \
 	SparsePropagation.cpp \
+	TargetLibraryInfo.cpp \
 	TargetTransformInfo.cpp \
 	Trace.cpp \
 	TypeBasedAliasAnalysis.cpp \
-	ValueTracking.cpp
+	ValueTracking.cpp \
+	VectorUtils.cpp
 
 .if defined(HOSTLIB)
 .include <bsd.hostlib.mk>
--- a/external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2015/01/29 20:41:35 joerg Exp $
+#	$NetBSD: Makefile,v 1.14 2016/02/27 21:47:32 joerg Exp $
 
 LIB=	LLVMAsmPrinter
 
@@ -14,6 +14,7 @@
 	DIE.cpp \
 	DIEHash.cpp \
 	DbgValueHistoryCalculator.cpp \
+	DebugLocStream.cpp \
 	DwarfAccelTable.cpp \
 	DwarfCFIException.cpp \
 	DwarfCompileUnit.cpp \
@@ -25,7 +26,7 @@
 	EHStreamer.cpp \
 	ErlangGCPrinter.cpp \
 	OcamlGCPrinter.cpp \
-	Win64Exception.cpp \
+	WinException.cpp \
 	WinCodeViewLineTables.cpp
 
 .if defined(HOSTLIB)
--- a/external/bsd/llvm/lib/libLLVMCodeGen/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMCodeGen/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.30 2015/01/29 20:41:35 joerg Exp $
+#	$NetBSD: Makefile,v 1.31 2016/02/27 21:47:32 joerg Exp $
 
 LIB=	LLVMCodeGen
 
@@ -16,6 +16,7 @@
 	CallingConvLower.cpp \
 	CodeGen.cpp \
 	CodeGenPrepare.cpp \
+	CoreCLRGC.cpp \
 	CriticalAntiDepBreaker.cpp \
 	DFAPacketizer.cpp \
 	DeadMachineInstructionElim.cpp \
@@ -26,19 +27,23 @@
 	ExecutionDepsFix.cpp \
 	ExpandISelPseudos.cpp \
 	ExpandPostRAPseudos.cpp \
-	ForwardControlFlowIntegrity.cpp \
+	FaultMaps.cpp \
+	FuncletLayout.cpp \
 	GCMetadata.cpp \
 	GCMetadataPrinter.cpp \
+	GCRootLowering.cpp \
 	GCStrategy.cpp \
 	GlobalMerge.cpp \
 	IfConversion.cpp \
+	ImplicitNullChecks.cpp \
 	InlineSpiller.cpp \
 	InterferenceCache.cpp \
+	InterleavedAccessPass.cpp \
 	IntrinsicLowering.cpp \
-	JumpInstrTables.cpp \
 	LLVMTargetMachine.cpp \
 	LatencyPriorityQueue.cpp \
 	LexicalScopes.cpp \
+	LiveDebugValues.cpp \
 	LiveDebugVariables.cpp \
 	LiveInterval.cpp \
 	LiveIntervalAnalysis.cpp \
@@ -50,6 +55,8 @@
 	LiveStackAnalysis.cpp \
 	LiveVariables.cpp \
 	LocalStackSlotAllocation.cpp \
+	MIRPrinter.cpp \
+	MIRPrintingPass.cpp \
 	MachineBasicBlock.cpp \
 	MachineBranchProbabilityInfo.cpp \
 	MachineBlockFrequencyInfo.cpp \
@@ -82,6 +89,7 @@
 	OptimizePHIs.cpp \
 	PHIElimination.cpp \
 	PHIEliminationUtils.cpp \
+	ParallelCG.cpp \
 	Passes.cpp \
 	PeepholeOptimizer.cpp \
 	ScoreboardHazardRecognizer.cpp \
@@ -102,6 +110,8 @@
 	ScheduleDAGInstrs.cpp \
 	ScheduleDAGPrinter.cpp \
 	ShadowStackGC.cpp \
+	ShadowStackGCLowering.cpp \
+	ShrinkWrap.cpp \
 	SjLjEHPrepare.cpp \
 	SlotIndexes.cpp \
 	SpillPlacement.cpp \
@@ -122,7 +132,8 @@
 	TargetSchedule.cpp \
 	TwoAddressInstructionPass.cpp \
 	UnreachableBlockElim.cpp \
-	VirtRegMap.cpp
+	VirtRegMap.cpp \
+	WinEHPrepare.cpp
 
 .if defined(HOSTLIB)
 .include <bsd.hostlib.mk>
--- a/external/bsd/llvm/lib/libLLVMDebugInfo/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-#	$NetBSD: Makefile,v 1.6 2015/01/29 20:41:35 joerg Exp $
-
-LIB=	LLVMDebugInfo
-
-.include <bsd.init.mk>
-
-.PATH: ${LLVM_SRCDIR}/lib/DebugInfo
-
-SRCS+=	DIContext.cpp \
-	DWARFAbbreviationDeclaration.cpp \
-	DWARFAcceleratorTable.cpp \
-	DWARFCompileUnit.cpp \
-	DWARFContext.cpp \
-	DWARFDebugAbbrev.cpp \
-	DWARFDebugArangeSet.cpp \
-	DWARFDebugAranges.cpp \
-	DWARFDebugFrame.cpp \
-	DWARFDebugInfoEntry.cpp \
-	DWARFDebugLine.cpp \
-	DWARFDebugLoc.cpp \
-	DWARFDebugRangeList.cpp \
-	DWARFFormValue.cpp \
-	DWARFTypeUnit.cpp \
-	DWARFUnit.cpp \
-	SyntaxHighlighting.cpp
-
-.if defined(HOSTLIB)
-.include <bsd.hostlib.mk>
-.else
-.include <bsd.lib.mk>
-.endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMDebugInfoCodeView/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -0,0 +1,21 @@
+#	$NetBSD: Makefile,v 1.1 2016/02/27 21:47:33 joerg Exp $
+
+LIB=	LLVMDebugInfoCodeView
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/DebugInfo/CodeView
+
+SRCS+=	FieldListRecordBuilder.cpp \
+	Line.cpp \
+	MemoryTypeTableBuilder.cpp \
+	MethodListRecordBuilder.cpp \
+	ListRecordBuilder.cpp \
+	TypeRecordBuilder.cpp \
+	TypeTableBuilder.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMDebugInfoDWARF/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -0,0 +1,32 @@
+#	$NetBSD: Makefile,v 1.1 2016/02/27 21:47:33 joerg Exp $
+
+LIB=	LLVMDebugInfoDWARF
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/DebugInfo/DWARF
+
+SRCS+=	DWARFAbbreviationDeclaration.cpp \
+	DWARFAcceleratorTable.cpp \
+	DWARFCompileUnit.cpp \
+	DWARFContext.cpp \
+	DWARFDebugAbbrev.cpp \
+	DWARFDebugArangeSet.cpp \
+	DWARFDebugAranges.cpp \
+	DWARFDebugFrame.cpp \
+	DWARFDebugInfoEntry.cpp \
+	DWARFDebugLine.cpp \
+	DWARFDebugLoc.cpp \
+	DWARFDebugMacro.cpp \
+	DWARFDebugRangeList.cpp \
+	DWARFFormValue.cpp \
+	DWARFTypeUnit.cpp \
+	DWARFUnit.cpp \
+	DWARFUnitIndex.cpp \
+	SyntaxHighlighting.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMDebugInfoPDB/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -0,0 +1,52 @@
+#	$NetBSD: Makefile,v 1.1 2016/02/27 21:47:33 joerg Exp $
+
+LIB=	LLVMDebugInfoPDB
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/DebugInfo/PDB
+
+SRCS+=	IPDBSourceFile.cpp \
+	PDB.cpp \
+	PDBContext.cpp \
+	PDBExtras.cpp \
+	PDBInterfaceAnchors.cpp \
+	PDBSymbol.cpp \
+	PDBSymbolAnnotation.cpp \
+	PDBSymbolBlock.cpp \
+	PDBSymbolCompiland.cpp \
+	PDBSymbolCompilandDetails.cpp \
+	PDBSymbolCompilandEnv.cpp \
+	PDBSymbolCustom.cpp \
+	PDBSymbolData.cpp \
+	PDBSymbolExe.cpp \
+	PDBSymbolFunc.cpp \
+	PDBSymbolFuncDebugEnd.cpp \
+	PDBSymbolFuncDebugStart.cpp \
+	PDBSymbolLabel.cpp \
+	PDBSymbolPublicSymbol.cpp \
+	PDBSymbolThunk.cpp \
+	PDBSymbolTypeArray.cpp \
+	PDBSymbolTypeBaseClass.cpp \
+	PDBSymbolTypeBuiltin.cpp \
+	PDBSymbolTypeCustom.cpp \
+	PDBSymbolTypeDimension.cpp \
+	PDBSymbolTypeEnum.cpp \
+	PDBSymbolTypeFriend.cpp \
+	PDBSymbolTypeFunctionArg.cpp \
+	PDBSymbolTypeFunctionSig.cpp \
+	PDBSymbolTypeManaged.cpp \
+	PDBSymbolTypePointer.cpp \
+	PDBSymbolTypeTypedef.cpp \
+	PDBSymbolTypeUDT.cpp \
+	PDBSymbolTypeVTable.cpp \
+	PDBSymbolTypeVTableShape.cpp \
+	PDBSymbolUnknown.cpp \
+	PDBSymbolUsingNamespace.cpp \
+	PDBSymDumper.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMDebugInfoSymbolize/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -0,0 +1,17 @@
+#	$NetBSD: Makefile,v 1.1 2016/02/27 21:47:33 joerg Exp $
+
+LIB=	LLVMDebugInfoSymbolize
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/DebugInfo/Symbolize
+
+SRCS+=	DIPrinter.cpp \
+	Symbolize.cpp \
+	SymbolizableObjectFile.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
--- a/external/bsd/llvm/lib/libLLVMExecutionEngine/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMExecutionEngine/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.5 2015/03/18 17:43:20 joerg Exp $
+#	$NetBSD: Makefile,v 1.6 2016/02/27 21:47:33 joerg Exp $
 
 LIB=	LLVMExecutionEngine
 
@@ -9,6 +9,7 @@
 SRCS+=	GDBRegistrationListener.cpp \
 	ExecutionEngine.cpp \
 	ExecutionEngineBindings.cpp \
+	SectionMemoryManager.cpp \
 	TargetSelect.cpp
 
 .include <bsd.lib.mk>
--- a/external/bsd/llvm/lib/libLLVMIR/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMIR/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.9 2015/01/29 20:41:35 joerg Exp $
+#	$NetBSD: Makefile,v 1.10 2016/02/27 21:47:33 joerg Exp $
 
 LIB=	LLVMIR
 
@@ -6,6 +6,10 @@
 
 .PATH: ${LLVM_SRCDIR}/lib/IR
 
+TABLEGEN_SRC=		AttributesCompatFunc.td
+TABLEGEN_OUTPUT= \
+	AttributesCompatFunc.inc|-gen-attrs
+
 SRCS+=	AsmWriter.cpp \
 	Attributes.cpp \
 	AutoUpgrade.cpp \
@@ -18,11 +22,13 @@
 	DIBuilder.cpp \
 	DataLayout.cpp \
 	DebugInfo.cpp \
+	DebugInfoMetadata.cpp \
 	DebugLoc.cpp \
 	DiagnosticInfo.cpp \
 	DiagnosticPrinter.cpp \
 	Dominators.cpp \
 	Function.cpp \
+	FunctionInfo.cpp \
 	GCOV.cpp \
 	GVMaterializer.cpp \
 	Globals.cpp \
@@ -38,8 +44,8 @@
 	MDBuilder.cpp \
 	Mangler.cpp \
 	Metadata.cpp \
-	MetadataTracking.cpp \
 	Module.cpp \
+	Operator.cpp \
 	Pass.cpp \
 	PassManager.cpp \
 	PassRegistry.cpp \
@@ -47,13 +53,14 @@
 	Type.cpp \
 	TypeFinder.cpp \
 	Use.cpp \
-	UseListOrder.cpp \
 	User.cpp \
 	Value.cpp \
 	ValueSymbolTable.cpp \
 	ValueTypes.cpp \
 	Verifier.cpp
 
+.include "${.PARSEDIR}/../../tablegen.mk"
+
 .if defined(HOSTLIB)
 .include <bsd.hostlib.mk>
 .else
--- a/external/bsd/llvm/lib/libLLVMInstrumentation/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMInstrumentation/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2015/01/29 20:41:35 joerg Exp $
+#	$NetBSD: Makefile,v 1.14 2016/02/27 21:47:33 joerg Exp $
 
 LIB=	LLVMInstrumentation
 
@@ -13,6 +13,8 @@
 	InstrProfiling.cpp \
 	Instrumentation.cpp \
 	MemorySanitizer.cpp \
+	PGOInstrumentation.cpp \
+	SafeStack.cpp \
 	SanitizerCoverage.cpp \
 	ThreadSanitizer.cpp
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMLibDriver/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -0,0 +1,21 @@
+#	$NetBSD: Makefile,v 1.1 2016/02/27 21:47:33 joerg Exp $
+
+LIB=	LLVMLibDriver
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/LibDriver
+
+SRCS+=	LibDriver.cpp
+
+TABLEGEN_SRC=		Options.td
+TABLEGEN_OUTPUT= \
+	Options.inc|-gen-opt-parser-defs
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
--- a/external/bsd/llvm/lib/libLLVMLinker/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMLinker/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2013/05/28 17:37:34 joerg Exp $
+#	$NetBSD: Makefile,v 1.5 2016/02/27 21:47:33 joerg Exp $
 
 LIB=	LLVMLinker
 
@@ -6,7 +6,8 @@
 
 .PATH: ${LLVM_SRCDIR}/lib/Linker
 
-SRCS+=	LinkModules.cpp
+SRCS+=	IRMover.cpp \
+	LinkModules.cpp
 
 .if defined(HOSTLIB)
 .include <bsd.hostlib.mk>
--- a/external/bsd/llvm/lib/libLLVMMC/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMMC/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.17 2014/08/10 17:34:21 joerg Exp $
+#	$NetBSD: Makefile,v 1.18 2016/02/27 21:47:33 joerg Exp $
 
 LIB=	LLVMMC
 
@@ -19,12 +19,13 @@
 	MCCodeEmitter.cpp \
 	MCContext.cpp \
 	MCDwarf.cpp \
-	MCELF.cpp \
 	MCELFObjectTargetWriter.cpp \
 	MCELFStreamer.cpp \
 	MCExpr.cpp \
+	MCFragment.cpp \
 	MCInst.cpp \
 	MCInstrAnalysis.cpp \
+	MCInstrDesc.cpp \
 	MCInstPrinter.cpp \
 	MCLabel.cpp \
 	MCLinkerOptimizationHint.cpp \
@@ -35,6 +36,7 @@
 	MCObjectStreamer.cpp \
 	MCObjectWriter.cpp \
 	MCRegisterInfo.cpp \
+	MCSchedule.cpp \
 	MCSection.cpp \
 	MCSectionCOFF.cpp \
 	MCSectionELF.cpp \
@@ -43,6 +45,7 @@
 	MCSubtargetInfo.cpp \
 	MCSymbolizer.cpp \
 	MCSymbol.cpp \
+	MCSymbolELF.cpp \
 	MCTargetOptions.cpp \
 	MCValue.cpp \
 	MCWin64EH.cpp \
--- a/external/bsd/llvm/lib/libLLVMMCJIT/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMMCJIT/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.7 2013/01/23 15:02:59 joerg Exp $
+#	$NetBSD: Makefile,v 1.8 2016/02/27 21:47:33 joerg Exp $
 
 LIB=	LLVMMCJIT
 
@@ -6,7 +6,6 @@
 
 .PATH: ${LLVM_SRCDIR}/lib/ExecutionEngine/MCJIT
 
-SRCS+=	MCJIT.cpp \
-	SectionMemoryManager.cpp
+SRCS+=	MCJIT.cpp
 
 .include <bsd.lib.mk>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMMIRParser/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -0,0 +1,17 @@
+#	$NetBSD: Makefile,v 1.1 2016/02/27 21:47:33 joerg Exp $
+
+LIB=	LLVMMIRParser
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/CodeGen/MIRParser
+
+SRCS+=	MILexer.cpp \
+	MIParser.cpp \
+	MIRParser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
--- a/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.25 2015/01/29 20:41:35 joerg Exp $
+#	$NetBSD: Makefile,v 1.26 2016/02/27 21:47:34 joerg Exp $
 
 LIB=	LLVMMipsCodeGen
 
@@ -37,9 +37,7 @@
 	MipsSERegisterInfo.cpp \
 	MipsSubtarget.cpp \
 	MipsTargetMachine.cpp \
-	MipsTargetObjectFile.cpp \
-	MipsSelectionDAGInfo.cpp
-
+	MipsTargetObjectFile.cpp
 
 TABLEGEN_SRC=		Mips.td
 TABLEGEN_INCLUDES=	-I${LLVM_SRCDIR}/lib/Target/Mips
--- a/external/bsd/llvm/lib/libLLVMObjCARC/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMObjCARC/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.2 2015/01/29 20:41:35 joerg Exp $
+#	$NetBSD: Makefile,v 1.3 2016/02/27 21:47:34 joerg Exp $
 
 LIB=	LLVMObjCARC
 
@@ -9,13 +9,12 @@
 SRCS+=	DependencyAnalysis.cpp \
 	ObjCARC.cpp \
 	ObjCARCAPElim.cpp \
-	ObjCARCAliasAnalysis.cpp \
 	ObjCARCContract.cpp \
 	ObjCARCExpand.cpp \
 	ObjCARCOpts.cpp \
-	ObjCARCUtil.cpp \
 	ProvenanceAnalysis.cpp \
-	ProvenanceAnalysisEvaluator.cpp
+	ProvenanceAnalysisEvaluator.cpp \
+	PtrState.cpp
 
 .if defined(HOSTLIB)
 .include <bsd.hostlib.mk>
--- a/external/bsd/llvm/lib/libLLVMObject/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMObject/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,13 +1,13 @@
-#	$NetBSD: Makefile,v 1.11 2014/08/10 17:34:22 joerg Exp $
+#	$NetBSD: Makefile,v 1.12 2016/02/27 21:47:34 joerg Exp $
 
 LIB=	LLVMObject
-NOGCCERROR=	yes
 
 .include <bsd.init.mk>
 
 .PATH: ${LLVM_SRCDIR}/lib/Object
 
 SRCS+=	Archive.cpp \
+	ArchiveWriter.cpp \
 	Binary.cpp \
 	COFFObjectFile.cpp \
 	COFFYAML.cpp \
@@ -15,12 +15,14 @@
 	ELFObjectFile.cpp \
 	ELFYAML.cpp \
 	Error.cpp \
+	FunctionIndexObjectFile.cpp \
 	IRObjectFile.cpp \
 	MachOObjectFile.cpp \
 	MachOUniversal.cpp \
 	Object.cpp \
 	ObjectFile.cpp \
 	RecordStreamer.cpp \
+	SymbolSize.cpp \
 	SymbolicFile.cpp
 
 .if defined(HOSTLIB)
--- a/external/bsd/llvm/lib/libLLVMOption/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMOption/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,9 +1,7 @@
-#	$NetBSD: Makefile,v 1.1 2013/01/23 15:02:59 joerg Exp $
+#	$NetBSD: Makefile,v 1.2 2016/02/27 21:47:34 joerg Exp $
 
 LIB=	LLVMOption
 
-NOGCCERROR=	yes
-
 .include <bsd.init.mk>
 
 .PATH: ${LLVM_SRCDIR}/lib/Option
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMOrc/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -0,0 +1,19 @@
+#	$NetBSD: Makefile,v 1.1 2016/02/27 21:47:34 joerg Exp $
+
+LIB=	LLVMOrc
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/ExecutionEngine/Orc
+
+SRCS+=	ExecutionUtils.cpp \
+	IndirectionUtils.cpp \
+	NullResolver.cpp \
+	OrcArchitectureSupport.cpp \
+	OrcCBindings.cpp \
+	OrcCBindingsStack.cpp \
+	OrcError.cpp \
+	OrcMCJITReplacement.cpp \
+	OrcRemoteTargetRPCAPI.cpp
+
+.include <bsd.lib.mk>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMPasses/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -0,0 +1,15 @@
+#	$NetBSD: Makefile,v 1.1 2016/02/27 21:47:34 joerg Exp $
+
+LIB=	LLVMPasses
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Passes
+
+SRCS+=	PassBuilder.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
--- a/external/bsd/llvm/lib/libLLVMPowerPCAsmPrinter/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMPowerPCAsmPrinter/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,7 +1,6 @@
-#	$NetBSD: Makefile,v 1.1 2011/07/04 22:37:59 joerg Exp $
+#	$NetBSD: Makefile,v 1.2 2016/02/27 21:47:34 joerg Exp $
 
 LIB=	LLVMPowerPCAsmPrinter
-NOGCCERROR=	yes
 
 .include <bsd.init.mk>
 
--- a/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.10 2015/01/29 20:41:35 joerg Exp $
+#	$NetBSD: Makefile,v 1.11 2016/02/27 21:47:34 joerg Exp $
 
 LIB=	LLVMPowerPCCodeGen
 
@@ -7,22 +7,31 @@
 .PATH: ${LLVM_SRCDIR}/lib/Target/PowerPC
 
 SRCS+=	PPCAsmPrinter.cpp \
+	PPCBoolRetToInt.cpp \
 	PPCBranchSelector.cpp \
 	PPCCTRLoops.cpp \
+	PPCEarlyReturn.cpp \
 	PPCHazardRecognizers.cpp \
 	PPCInstrInfo.cpp \
 	PPCISelDAGToDAG.cpp \
 	PPCISelLowering.cpp \
 	PPCFastISel.cpp \
 	PPCFrameLowering.cpp \
+	PPCLoopDataPrefetch.cpp \
+	PPCLoopPreIncPrep.cpp \
 	PPCMachineFunctionInfo.cpp \
 	PPCMCInstLower.cpp \
+	PPCMIPeephole.cpp \
 	PPCRegisterInfo.cpp \
-	PPCSelectionDAGInfo.cpp \
 	PPCSubtarget.cpp \
+	PPCTLSDynamicCall.cpp \
+	PPCTOCRegDeps.cpp \
 	PPCTargetMachine.cpp \
 	PPCTargetObjectFile.cpp \
-	PPCTargetTransformInfo.cpp
+	PPCTargetTransformInfo.cpp \
+	PPCVSXCopy.cpp \
+	PPCVSXFMAMutate.cpp \
+	PPCVSXSwapRemoval.cpp
 
 TABLEGEN_SRC=		PPC.td
 TABLEGEN_INCLUDES=	-I${LLVM_SRCDIR}/lib/Target/PowerPC
--- a/external/bsd/llvm/lib/libLLVMRuntimeDyld/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMRuntimeDyld/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.7 2015/03/18 17:43:20 joerg Exp $
+#	$NetBSD: Makefile,v 1.8 2016/02/27 21:47:34 joerg Exp $
 
 LIB=	LLVMRuntimeDyld
 
@@ -8,6 +8,7 @@
 
 SRCS+=	RTDyldMemoryManager.cpp \
 	RuntimeDyld.cpp \
+	RuntimeDyldCOFF.cpp \
 	RuntimeDyldChecker.cpp \
 	RuntimeDyldELF.cpp \
 	RuntimeDyldMachO.cpp
--- a/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.19 2015/01/29 20:41:36 joerg Exp $
+#	$NetBSD: Makefile,v 1.20 2016/02/27 21:47:34 joerg Exp $
 
 LIB=	LLVMScalarOpts
 
@@ -8,6 +8,7 @@
 
 SRCS+=	ADCE.cpp \
 	AlignmentFromAssumptions.cpp \
+	BDCE.cpp \
 	ConstantHoisting.cpp \
 	ConstantProp.cpp \
 	CorrelatedValuePropagation.cpp \
@@ -15,34 +16,44 @@
 	DeadStoreElimination.cpp \
 	EarlyCSE.cpp \
 	FlattenCFGPass.cpp \
+	Float2Int.cpp \
 	GVN.cpp \
 	IndVarSimplify.cpp \
+	InductiveRangeCheckElimination.cpp \
 	JumpThreading.cpp \
 	LICM.cpp \
 	LoadCombine.cpp \
+	LoopDistribute.cpp \
 	LoopDeletion.cpp \
 	LoopIdiomRecognize.cpp \
 	LoopInstSimplify.cpp \
+	LoopInterchange.cpp \
+	LoopLoadElimination.cpp \
 	LoopRerollPass.cpp \
 	LoopRotation.cpp \
 	LoopStrengthReduce.cpp \
 	LoopUnrollPass.cpp \
 	LoopUnswitch.cpp \
 	LowerAtomic.cpp \
+	LowerExpectIntrinsic.cpp \
 	MemCpyOptimizer.cpp \
 	MergedLoadStoreMotion.cpp \
+	NaryReassociate.cpp \
 	PartiallyInlineLibCalls.cpp \
+	PlaceSafepoints.cpp \
 	Reassociate.cpp \
 	Reg2Mem.cpp \
+	RewriteStatepointsForGC.cpp \
 	SCCP.cpp \
 	SROA.cpp \
-	SampleProfile.cpp \
 	Scalar.cpp \
 	ScalarReplAggregates.cpp \
 	Scalarizer.cpp \
 	SeparateConstOffsetFromGEP.cpp \
 	SimplifyCFGPass.cpp \
 	Sink.cpp \
+	SpeculativeExecution.cpp \
+	StraightLineStrengthReduce.cpp \
 	StructurizeCFG.cpp \
 	TailRecursionElimination.cpp
 
--- a/external/bsd/llvm/lib/libLLVMSparcCodeGen/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMSparcCodeGen/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.9 2015/01/29 20:41:36 joerg Exp $
+#	$NetBSD: Makefile,v 1.10 2016/02/27 21:47:34 joerg Exp $
 
 LIB=	LLVMSparcCodeGen
 
@@ -17,9 +17,7 @@
 	SparcRegisterInfo.cpp \
 	SparcSubtarget.cpp \
 	SparcTargetMachine.cpp \
-	SparcTargetObjectFile.cpp \
-	SparcSelectionDAGInfo.cpp
-
+	SparcTargetObjectFile.cpp
 
 TABLEGEN_SRC=		Sparc.td
 TABLEGEN_INCLUDES=	-I${LLVM_SRCDIR}/lib/Target/Sparc
--- a/external/bsd/llvm/lib/libLLVMSupport/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMSupport/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,9 +1,7 @@
-#	$NetBSD: Makefile,v 1.31 2016/02/27 21:42:14 joerg Exp $
+#	$NetBSD: Makefile,v 1.32 2016/02/27 21:47:34 joerg Exp $
 
 LIB=	LLVMSupport
 
-NOGCCERROR=	yes
-
 .include <bsd.init.mk>
 
 .PATH: ${LLVM_SRCDIR}/lib/Support
@@ -17,6 +15,7 @@
 	BlockFrequency.cpp \
 	BranchProbability.cpp \
 	circular_raw_ostream.cpp \
+	COM.cpp \
 	CommandLine.cpp \
 	Compression.cpp \
 	ConvertUTF.c \
@@ -38,8 +37,7 @@
 	IntEqClasses.cpp \
 	IntervalMap.cpp \
 	IntrusiveRefCntPtr.cpp \
-	IsInf.cpp \
-	IsNAN.cpp \
+	JamCRC.cpp \
 	LEB128.cpp \
 	LineIterator.cpp \
 	Locale.cpp \
@@ -63,7 +61,9 @@
 	StringMap.cpp \
 	StringPool.cpp \
 	StringRef.cpp \
+	StringSaver.cpp \
 	SystemUtils.cpp \
+	TargetParser.cpp \
 	TargetRegistry.cpp \
 	Timer.cpp \
 	ToolOutputFile.cpp \
@@ -96,6 +96,7 @@
 	SearchForAddressOfSpecialSymbol.cpp \
 	Signals.cpp \
 	ThreadLocal.cpp \
+	ThreadPool.cpp \
 	Threading.cpp \
 	TimeValue.cpp \
 	Valgrind.cpp
--- a/external/bsd/llvm/lib/libLLVMTarget/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMTarget/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2015/01/29 20:41:36 joerg Exp $
+#	$NetBSD: Makefile,v 1.14 2016/02/27 21:47:35 joerg Exp $
 
 LIB=	LLVMTarget
 
@@ -8,10 +8,10 @@
 
 SRCS+=	Target.cpp \
 	TargetIntrinsicInfo.cpp \
-	TargetLibraryInfo.cpp \
 	TargetLoweringObjectFile.cpp \
 	TargetMachine.cpp \
 	TargetMachineC.cpp \
+	TargetRecip.cpp \
 	TargetSubtargetInfo.cpp
 
 .if defined(HOSTLIB)
--- a/external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.17 2015/01/29 20:41:36 joerg Exp $
+#	$NetBSD: Makefile,v 1.18 2016/02/27 21:47:35 joerg Exp $
 
 LIB=	LLVMTransformsUtils
 
@@ -28,7 +28,8 @@
 	LoopSimplify.cpp \
 	LoopUnroll.cpp \
 	LoopUnrollRuntime.cpp \
-	LowerExpectIntrinsic.cpp \
+	LoopUtils.cpp \
+	LoopVersioning.cpp \
 	LowerInvoke.cpp \
 	LowerSwitch.cpp \
 	Mem2Reg.cpp \
@@ -40,6 +41,7 @@
 	SimplifyIndVar.cpp \
 	SimplifyInstructions.cpp \
 	SimplifyLibCalls.cpp \
+	SplitModule.cpp \
 	SymbolRewriter.cpp \
 	UnifyFunctionExitNodes.cpp \
 	Utils.cpp \
--- a/external/bsd/llvm/lib/libLLVMX86AsmPrinter/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMX86AsmPrinter/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,7 +1,6 @@
-#	$NetBSD: Makefile,v 1.2 2011/05/12 14:56:24 joerg Exp $
+#	$NetBSD: Makefile,v 1.3 2016/02/27 21:47:35 joerg Exp $
 
 LIB=	LLVMX86AsmPrinter
-NOGCCERROR=	yes
 
 .include <bsd.init.mk>
 
--- a/external/bsd/llvm/lib/libLLVMX86CodeGen/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMX86CodeGen/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2015/01/29 20:41:36 joerg Exp $
+#	$NetBSD: Makefile,v 1.14 2016/02/27 21:47:35 joerg Exp $
 
 LIB=	LLVMX86CodeGen
 
@@ -7,6 +7,8 @@
 .PATH: ${LLVM_SRCDIR}/lib/Target/X86
 
 SRCS+=	X86AsmPrinter.cpp \
+	X86CallFrameOptimization.cpp \
+	X86ExpandPseudo.cpp \
 	X86FastISel.cpp \
 	X86FixupLEAs.cpp \
 	X86FloatingPoint.cpp \
@@ -16,14 +18,17 @@
 	X86InstrInfo.cpp \
 	X86MachineFunctionInfo.cpp \
 	X86MCInstLower.cpp \
+	X86OptimizeLEAs.cpp \
 	X86PadShortFunction.cpp \
 	X86RegisterInfo.cpp \
 	X86SelectionDAGInfo.cpp \
+	X86ShuffleDecodeConstantPool.cpp \
 	X86Subtarget.cpp \
 	X86TargetMachine.cpp \
 	X86TargetObjectFile.cpp \
 	X86TargetTransformInfo.cpp \
-	X86VZeroUpper.cpp
+	X86VZeroUpper.cpp \
+	X86WinEHState.cpp
 
 TABLEGEN_SRC=		X86.td
 TABLEGEN_INCLUDES=	-I${LLVM_SRCDIR}/lib/Target/X86
--- a/external/bsd/llvm/lib/libLLVMipa/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-#	$NetBSD: Makefile,v 1.4 2015/01/29 20:41:36 joerg Exp $
-
-LIB=	LLVMipa
-
-.include <bsd.init.mk>
-
-.PATH: ${LLVM_SRCDIR}/lib/Analysis/IPA
-
-SRCS+=	CallPrinter.cpp \
-	CallGraph.cpp \
-	CallGraphSCCPass.cpp \
-	GlobalsModRef.cpp \
-	IPA.cpp \
-	InlineCost.cpp
-
-.if defined(HOSTLIB)
-.include <bsd.hostlib.mk>
-.else
-.include <bsd.lib.mk>
-.endif
--- a/external/bsd/llvm/lib/libLLVMipo/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libLLVMipo/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.5 2012/10/28 17:07:46 joerg Exp $
+#	$NetBSD: Makefile,v 1.6 2016/02/27 21:47:35 joerg Exp $
 
 LIB=	LLVMipo
 
@@ -9,22 +9,29 @@
 SRCS+=	ArgumentPromotion.cpp \
 	BarrierNoopPass.cpp \
 	ConstantMerge.cpp \
+	CrossDSOCFI.cpp \
 	DeadArgumentElimination.cpp \
+	ElimAvailExtern.cpp \
 	ExtractGV.cpp \
+	ForceFunctionAttrs.cpp \
 	FunctionAttrs.cpp \
+	FunctionImport.cpp \
 	GlobalDCE.cpp \
 	GlobalOpt.cpp \
 	IPConstantPropagation.cpp \
 	IPO.cpp \
+	InferFunctionAttrs.cpp \
 	InlineAlways.cpp \
 	InlineSimple.cpp \
 	Inliner.cpp \
 	Internalize.cpp \
 	LoopExtractor.cpp \
+	LowerBitSets.cpp \
 	MergeFunctions.cpp \
 	PartialInlining.cpp \
 	PassManagerBuilder.cpp \
 	PruneEH.cpp \
+	SampleProfile.cpp \
 	StripDeadPrototypes.cpp \
 	StripSymbols.cpp
 
--- a/external/bsd/llvm/lib/libclangAST/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libclangAST/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2015/01/29 20:41:36 joerg Exp $
+#	$NetBSD: Makefile,v 1.14 2016/02/27 21:47:35 joerg Exp $
 
 LIB=	clangAST
 
@@ -35,6 +35,7 @@
 	ExprClassification.cpp \
 	ExprConstant.cpp \
 	ExprCXX.cpp \
+	ExprObjC.cpp \
 	ExternalASTSource.cpp \
 	InheritViz.cpp \
 	ItaniumCXXABI.cpp \
@@ -44,12 +45,16 @@
 	MicrosoftMangle.cpp \
 	NSAPI.cpp \
 	NestedNameSpecifier.cpp \
+	OpenMPClause.cpp \
 	ParentMap.cpp \
 	RawCommentList.cpp \
 	RecordLayout.cpp \
 	RecordLayoutBuilder.cpp \
 	SelectorLocationsKind.cpp \
 	Stmt.cpp \
+	StmtCXX.cpp \
+	StmtObjC.cpp \
+	StmtOpenMP.cpp \
 	StmtIterator.cpp \
 	StmtPrinter.cpp \
 	StmtProfile.cpp \
--- a/external/bsd/llvm/lib/libclangBasic/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libclangBasic/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2015/01/29 20:41:36 joerg Exp $
+#	$NetBSD: Makefile,v 1.14 2016/02/27 21:47:35 joerg Exp $
 
 LIB=	clangBasic
 
@@ -11,6 +11,7 @@
 	CharInfo.cpp \
 	Diagnostic.cpp \
 	DiagnosticIDs.cpp \
+	DiagnosticOptions.cpp \
 	FileManager.cpp \
 	FileSystemStatCache.cpp \
 	IdentifierTable.cpp \
--- a/external/bsd/llvm/lib/libclangCodeGen/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libclangCodeGen/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.12 2015/01/29 20:41:36 joerg Exp $
+#	$NetBSD: Makefile,v 1.13 2016/02/27 21:47:35 joerg Exp $
 
 LIB=	clangCodeGen
 
@@ -50,6 +50,7 @@
 	ItaniumCXXABI.cpp \
 	MicrosoftCXXABI.cpp \
 	ModuleBuilder.cpp \
+	ObjectFilePCHContainerOperations.cpp \
 	SanitizerMetadata.cpp \
 	TargetInfo.cpp
 
--- a/external/bsd/llvm/lib/libclangDriver/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libclangDriver/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.9 2015/01/29 20:41:37 joerg Exp $
+#	$NetBSD: Makefile,v 1.10 2016/02/27 21:47:35 joerg Exp $
 
 LIB=	clangDriver
 
@@ -13,6 +13,7 @@
 	DriverOptions.cpp \
 	Job.cpp \
 	MSVCToolChain.cpp \
+	MinGWToolChain.cpp \
 	Multilib.cpp \
 	Phases.cpp \
 	SanitizerArgs.cpp \
--- a/external/bsd/llvm/lib/libclangFrontend/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libclangFrontend/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2015/01/29 20:41:37 joerg Exp $
+#	$NetBSD: Makefile,v 1.15 2016/02/27 21:47:35 joerg Exp $
 
 LIB=	clangFrontend
 
@@ -30,9 +30,11 @@
 	LogDiagnosticPrinter.cpp \
 	ModuleDependencyCollector.cpp \
 	MultiplexConsumer.cpp \
+	PCHContainerOperations.cpp \
 	PrintPreprocessedOutput.cpp \
 	SerializedDiagnosticPrinter.cpp \
 	SerializedDiagnosticReader.cpp \
+	TestModuleFileExtension.cpp \
 	TextDiagnostic.cpp \
 	TextDiagnosticBuffer.cpp \
 	TextDiagnosticPrinter.cpp \
--- a/external/bsd/llvm/lib/libclangSema/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libclangSema/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.15 2015/01/29 20:41:37 joerg Exp $
+#	$NetBSD: Makefile,v 1.16 2016/02/27 21:47:35 joerg Exp $
 
 LIB=	clangSema
 
@@ -25,6 +25,7 @@
 	SemaChecking.cpp \
 	SemaCodeComplete.cpp \
 	SemaConsumer.cpp \
+	SemaCoroutine.cpp \
 	SemaDecl.cpp \
 	SemaDeclAttr.cpp \
 	SemaDeclCXX.cpp \
--- a/external/bsd/llvm/lib/libclangSerialization/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libclangSerialization/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.5 2013/02/04 15:00:36 joerg Exp $
+#	$NetBSD: Makefile,v 1.6 2016/02/27 21:47:36 joerg Exp $
 
 LIB=	clangSerialization
 
@@ -16,6 +16,7 @@
 	GeneratePCH.cpp \
 	GlobalModuleIndex.cpp \
 	Module.cpp \
+	ModuleFileExtension.cpp \
 	ModuleManager.cpp
 
 .if defined(HOSTLIB)
--- a/external/bsd/llvm/lib/libclangStaticAnalyzerCheckers/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libclangStaticAnalyzerCheckers/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.24 2014/08/10 17:35:06 joerg Exp $
+#	$NetBSD: Makefile,v 1.25 2016/02/27 21:47:36 joerg Exp $
 
 LIB=	clangStaticAnalyzerCheckers
 
@@ -30,6 +30,7 @@
 	DereferenceChecker.cpp \
 	DirectIvarAssignment.cpp \
 	DivZeroChecker.cpp \
+	DynamicTypeChecker.cpp \
 	DynamicTypePropagation.cpp \
 	ExprInspectionChecker.cpp \
 	FixedAddressChecker.cpp \
@@ -37,6 +38,7 @@
 	IdenticalExprChecker.cpp \
 	IvarInvalidationChecker.cpp \
 	LLVMConventionsChecker.cpp \
+	LocalizationChecker.cpp \
 	MacOSKeychainAPIChecker.cpp \
 	MacOSXAPIChecker.cpp \
 	MallocChecker.cpp \
@@ -46,12 +48,14 @@
 	NSErrorChecker.cpp \
 	NoReturnFunctionChecker.cpp \
 	NonNullParamChecker.cpp \
+	NullabilityChecker.cpp \
 	ObjCAtSyncChecker.cpp \
 	ObjCContainersASTChecker.cpp \
 	ObjCContainersChecker.cpp \
 	ObjCMissingSuperCallChecker.cpp \
 	ObjCSelfInitChecker.cpp \
 	ObjCUnusedIVarsChecker.cpp \
+	PaddingChecker.cpp \
 	PointerArithChecker.cpp \
 	PointerSubChecker.cpp \
 	PthreadLockChecker.cpp \
@@ -72,6 +76,7 @@
 	UnixAPIChecker.cpp \
 	UnreachableCodeChecker.cpp \
 	VLASizeChecker.cpp \
+	VforkChecker.cpp \
 	VirtualCallChecker.cpp
 
 CLANG_TABLEGEN_SRC=		Checkers.td
--- a/external/bsd/llvm/lib/libclangStaticAnalyzerCore/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libclangStaticAnalyzerCore/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2013/10/14 01:37:39 joerg Exp $
+#	$NetBSD: Makefile,v 1.15 2016/02/27 21:47:36 joerg Exp $
 
 LIB=	clangStaticAnalyzerCore
 
@@ -22,6 +22,7 @@
 	CommonBugCategories.cpp \
 	ConstraintManager.cpp \
 	CoreEngine.cpp \
+	DynamicTypeMap.cpp \
 	Environment.cpp \
 	ExplodedGraph.cpp \
 	ExprEngine.cpp \
@@ -31,6 +32,8 @@
 	ExprEngineObjC.cpp \
 	FunctionSummary.cpp \
 	HTMLDiagnostics.cpp \
+	IssueHash.cpp \
+	LoopWidening.cpp \
 	MemRegion.cpp \
 	PathDiagnostic.cpp \
 	PlistDiagnostics.cpp \
--- a/external/bsd/llvm/lib/libclangToolingCore/Makefile	Sat Feb 27 21:42:14 2016 +0000
+++ b/external/bsd/llvm/lib/libclangToolingCore/Makefile	Sat Feb 27 21:47:30 2016 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.1 2015/01/29 20:41:37 joerg Exp $
+#	$NetBSD: Makefile,v 1.2 2016/02/27 21:47:36 joerg Exp $
 
 LIB=	clangToolingCore
 
@@ -6,7 +6,8 @@
 
 .PATH: ${CLANG_SRCDIR}/lib/Tooling/Core
 
-SRCS+=	Replacement.cpp
+SRCS+=	Lookup.cpp \
+	Replacement.cpp
 
 .if defined(HOSTLIB)
 .include <bsd.hostlib.mk>