pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Mar 17 22:38:18 UTC 2017

Modified Files:
        pkgsrc/devel/lldb: Makefile PLIST PLIST.Darwin distinfo
        pkgsrc/devel/lldb/patches: patch-scripts_Python_finishSwigPythonLLDB.py
            patch-source_Utility_CMakeLists.txt
            patch-tools_lldb-mi_MICmnBase.cpp patch-tools_lldb-mi_MICmnBase.h
            patch-tools_lldb-mi_MIDriver.cpp
            patch-tools_lldb-mi_MIUtilString.cpp
            patch-tools_lldb-mi_MIUtilString.h
        pkgsrc/devel/polly: Makefile PLIST distinfo
        pkgsrc/devel/polly/patches: patch-CMakeLists.txt
            patch-lib_External_isl_configure
        pkgsrc/lang/clang: Makefile Makefile.common PLIST distinfo
        pkgsrc/lang/libLLVM: Makefile PLIST distinfo
        pkgsrc/lang/libLLVM/patches: patch-cmake_modules_AddLLVM.cmake
            patch-cmake_modules_CMakeLists.txt
            patch-cmake_modules_TableGen.cmake
            patch-include_llvm_Support_Host.h
            patch-tools_llvm-config_llvm-config.cpp
            patch-tools_llvm-shlib_CMakeLists.txt
        pkgsrc/lang/libunwind: Makefile PLIST distinfo
        pkgsrc/lang/llvm: Makefile PLIST distinfo
        pkgsrc/lang/llvm/patches: patch-cmake_modules_AddLLVM.cmake
            patch-include_llvm_Support_Host.h
Removed Files:
        pkgsrc/devel/lldb/patches: patch-tools_lldb-mi_MIUtilParse.h

Log Message:
LLVM 4.0.0:
The minimum compiler version required for building LLVM has been raised to 4.8 for GCC and 2015 for Visual Studio.
The C API functions LLVMAddFunctionAttr, LLVMGetFunctionAttr, LLVMRemoveFunctionAttr, LLVMAddAttribute, LLVMRemoveAttribute, LLVMGetAttribute, LLVMAddInstrAttribute and LLVMRemoveInstrAttribute have 
been removed.
The C API enum LLVMAttribute has been deleted.
The definition and uses of LLVM_ATRIBUTE_UNUSED_RESULT in the LLVM source were replaced with LLVM_NODISCARD, which matches the C++17 [[nodiscard]] semantics rather than gcc’s 
__attribute__((warn_unused_result)).
The Timer related APIs now expect a Name and Description. When upgrading code the previously used names should become descriptions and a short name in the style of a programming language identifier 
should be added.
LLVM now handles invariant.group across different basic blocks, which makes it possible to devirtualize virtual calls inside loops.
The aggressive dead code elimination phase (“adce”) now removes branches which do not effect program behavior. Loops are retained by default since they may be infinite but these can also be removed 
with LLVM option -adce-remove-loops when the loop body otherwise has no live operations.
The llvm-cov tool can now export coverage data as json. Its html output mode has also improved.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/lldb/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/lldb/PLIST pkgsrc/devel/lldb/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/lldb/PLIST.Darwin
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/devel/lldb/patches/patch-scripts_Python_finishSwigPythonLLDB.py
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/devel/lldb/patches/patch-source_Utility_CMakeLists.txt \
    pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MICmnBase.cpp \
    pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MICmnBase.h \
    pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIDriver.cpp \
    pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIUtilString.cpp \
    pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIUtilString.h
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIUtilParse.h
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/polly/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/polly/PLIST
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/polly/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/polly/patches/patch-CMakeLists.txt
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/devel/polly/patches/patch-lib_External_isl_configure
cvs rdiff -u -r1.43 -r1.44 pkgsrc/lang/clang/Makefile
cvs rdiff -u -r1.18 -r1.19 pkgsrc/lang/clang/Makefile.common
cvs rdiff -u -r1.20 -r1.21 pkgsrc/lang/clang/PLIST
cvs rdiff -u -r1.46 -r1.47 pkgsrc/lang/clang/distinfo
cvs rdiff -u -r1.18 -r1.19 pkgsrc/lang/libLLVM/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/lang/libLLVM/PLIST \
    pkgsrc/lang/libLLVM/distinfo
cvs rdiff -u -r1.3 -r1.4 \
    pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/lang/libLLVM/patches/patch-cmake_modules_CMakeLists.txt \
    pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake \
    pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h \
    pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp \
    pkgsrc/lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt
cvs rdiff -u -r1.4 -r1.5 pkgsrc/lang/libunwind/Makefile \
    pkgsrc/lang/libunwind/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/libunwind/PLIST
cvs rdiff -u -r1.14 -r1.15 pkgsrc/lang/llvm/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/llvm/PLIST
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/llvm/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/lang/llvm/patches/patch-include_llvm_Support_Host.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/lldb/Makefile
diff -u pkgsrc/devel/lldb/Makefile:1.6 pkgsrc/devel/lldb/Makefile:1.7
--- pkgsrc/devel/lldb/Makefile:1.6      Thu Jan  5 11:54:32 2017
+++ pkgsrc/devel/lldb/Makefile  Fri Mar 17 22:38:17 2017
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2017/01/05 11:54:32 adam Exp $
+# $NetBSD: Makefile,v 1.7 2017/03/17 22:38:17 adam Exp $
 
-DISTNAME=      lldb-3.9.1.src
+DISTNAME=      lldb-4.0.0.src
 PKGNAME=       ${DISTNAME:S/.src//}
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
@@ -131,17 +131,17 @@ CMAKE_ARGS+=      -DLLDB_DISABLE_CURSES:BOOL=
 post-extract:
        ${RUN} mkdir -p ${WRKDIR}/build
 
-.include "../../mk/readline.buildlink3.mk"
-.include "../../mk/curses.buildlink3.mk"
-.include "../../textproc/libxml2/buildlink3.mk"
-DEPENDS+=      llvm-${PKGVERSION_NOREV}{,nb*}:../../lang/llvm
-.include "../../lang/llvm/buildlink3.mk"
+.include "../../devel/libatomic_ops/buildlink3.mk"
+.include "../../devel/swig/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
 DEPENDS+=      clang-${PKGVERSION_NOREV}{,nb*}:../../lang/clang
 .include "../../lang/clang/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
+DEPENDS+=      llvm-${PKGVERSION_NOREV}{,nb*}:../../lang/llvm
+.include "../../lang/llvm/buildlink3.mk"
 .include "../../lang/python/application.mk"
 .include "../../lang/python/tool.mk"
 .include "../../lang/python/extension.mk"
-.include "../../devel/swig/buildlink3.mk"
-.include "../../devel/libatomic_ops/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/readline.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/lldb/PLIST
diff -u pkgsrc/devel/lldb/PLIST:1.4 pkgsrc/devel/lldb/PLIST:1.5
--- pkgsrc/devel/lldb/PLIST:1.4 Thu Jan  5 11:54:32 2017
+++ pkgsrc/devel/lldb/PLIST     Fri Mar 17 22:38:17 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2017/01/05 11:54:32 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2017/03/17 22:38:17 adam Exp $
 bin/lldb
 bin/${PKGNAME}
 bin/lldb-argdumper
@@ -48,6 +48,7 @@ include/lldb/API/SBSection.h
 include/lldb/API/SBSourceManager.h
 include/lldb/API/SBStream.h
 include/lldb/API/SBStringList.h
+include/lldb/API/SBStructuredData.h
 include/lldb/API/SBSymbol.h
 include/lldb/API/SBSymbolContext.h
 include/lldb/API/SBSymbolContextList.h
@@ -101,10 +102,7 @@ include/lldb/Core/Broadcaster.h
 include/lldb/Core/ClangForward.h
 include/lldb/Core/Communication.h
 include/lldb/Core/Connection.h
-include/lldb/Core/ConnectionMachPort.h
-include/lldb/Core/ConnectionSharedMemory.h
 include/lldb/Core/ConstString.h
-include/lldb/Core/CxaDemangle.h
 include/lldb/Core/DataBuffer.h
 include/lldb/Core/DataBufferHeap.h
 include/lldb/Core/DataBufferMemoryMap.h
@@ -217,7 +215,6 @@ include/lldb/Expression/Materializer.h
 include/lldb/Expression/REPL.h
 include/lldb/Expression/UserExpression.h
 include/lldb/Expression/UtilityFunction.h
-include/lldb/Host/Condition.h
 include/lldb/Host/Config.h
 include/lldb/Host/ConnectionFileDescriptor.h
 include/lldb/Host/Debug.h
@@ -244,10 +241,10 @@ include/lldb/Host/LockFileBase.h
 include/lldb/Host/MainLoop.h
 include/lldb/Host/MainLoopBase.h
 include/lldb/Host/MonitoringProcessLauncher.h
-include/lldb/Host/Mutex.h
 include/lldb/Host/OptionParser.h
 include/lldb/Host/Pipe.h
 include/lldb/Host/PipeBase.h
+include/lldb/Host/PosixApi.h
 include/lldb/Host/Predicate.h
 include/lldb/Host/ProcessLauncher.h
 include/lldb/Host/ProcessRunLock.h
@@ -259,12 +256,9 @@ include/lldb/Host/Terminal.h
 include/lldb/Host/ThisThread.h
 include/lldb/Host/ThreadLauncher.h
 include/lldb/Host/Time.h
-include/lldb/Host/TimeValue.h
 include/lldb/Host/XML.h
-include/lldb/Host/android/Android.h
 include/lldb/Host/android/Config.h
 include/lldb/Host/android/HostInfoAndroid.h
-include/lldb/Host/android/ProcessLauncherAndroid.h
 include/lldb/Host/common/GetOptInc.h
 include/lldb/Host/common/NativeBreakpoint.h
 include/lldb/Host/common/NativeBreakpointList.h
@@ -283,7 +277,7 @@ include/lldb/Host/linux/AbstractSocket.h
 include/lldb/Host/linux/Config.h
 include/lldb/Host/linux/HostInfoLinux.h
 include/lldb/Host/linux/HostThreadLinux.h
-include/lldb/Host/linux/Personality.h
+include/lldb/Host/linux/ProcessLauncherLinux.h
 include/lldb/Host/linux/Ptrace.h
 include/lldb/Host/linux/Uio.h
 include/lldb/Host/macosx/Config.h
@@ -311,9 +305,9 @@ include/lldb/Host/windows/HostProcessWin
 include/lldb/Host/windows/HostThreadWindows.h
 include/lldb/Host/windows/LockFileWindows.h
 include/lldb/Host/windows/PipeWindows.h
+include/lldb/Host/windows/PosixApi.h
 include/lldb/Host/windows/ProcessLauncherWindows.h
 include/lldb/Host/windows/editlinewin.h
-include/lldb/Host/windows/win32.h
 include/lldb/Host/windows/windows.h
 include/lldb/Initialization/SystemInitializer.h
 include/lldb/Initialization/SystemInitializerCommon.h
@@ -386,6 +380,7 @@ include/lldb/Symbol/GoASTContext.h
 include/lldb/Symbol/JavaASTContext.h
 include/lldb/Symbol/LineEntry.h
 include/lldb/Symbol/LineTable.h
+include/lldb/Symbol/OCamlASTContext.h
 include/lldb/Symbol/ObjectContainer.h
 include/lldb/Symbol/ObjectFile.h
 include/lldb/Symbol/Symbol.h
@@ -437,6 +432,7 @@ include/lldb/Target/StackFrame.h
 include/lldb/Target/StackFrameList.h
 include/lldb/Target/StackID.h
 include/lldb/Target/StopInfo.h
+include/lldb/Target/StructuredDataPlugin.h
 include/lldb/Target/SystemRuntime.h
 include/lldb/Target/Target.h
 include/lldb/Target/TargetList.h
@@ -447,6 +443,7 @@ include/lldb/Target/ThreadPlan.h
 include/lldb/Target/ThreadPlanBase.h
 include/lldb/Target/ThreadPlanCallFunction.h
 include/lldb/Target/ThreadPlanCallFunctionUsingABI.h
+include/lldb/Target/ThreadPlanCallOnFunctionExit.h
 include/lldb/Target/ThreadPlanCallUserExpression.h
 include/lldb/Target/ThreadPlanPython.h
 include/lldb/Target/ThreadPlanRunToAddress.h
@@ -478,11 +475,13 @@ include/lldb/Utility/PseudoTerminal.h
 include/lldb/Utility/Range.h
 include/lldb/Utility/RegisterNumber.h
 include/lldb/Utility/SafeMachO.h
+include/lldb/Utility/SelectHelper.h
 include/lldb/Utility/SharedCluster.h
 include/lldb/Utility/SharingPtr.h
 include/lldb/Utility/StringExtractor.h
 include/lldb/Utility/StringLexer.h
 include/lldb/Utility/TaskPool.h
+include/lldb/Utility/Timeout.h
 include/lldb/Utility/Utils.h
 include/lldb/Utility/regcclass.h
 include/lldb/Utility/regcname.h
@@ -502,6 +501,7 @@ include/lldb/lldb-public.h
 include/lldb/lldb-types.h
 include/lldb/lldb-versioning.h
 lib/liblldb.so
+${PLIST.posix}lib/liblldb.so.4
 lib/liblldb.so.${PKGVERSION}
 lib/liblldbBase.a
 lib/liblldbBreakpoint.a
@@ -548,6 +548,7 @@ lib/liblldbPluginJavaLanguage.a
 lib/liblldbPluginLanguageRuntimeGo.a
 lib/liblldbPluginLanguageRuntimeJava.a
 lib/liblldbPluginMemoryHistoryASan.a
+lib/liblldbPluginOCamlLanguage.a
 lib/liblldbPluginOSGo.a
 lib/liblldbPluginOSPython.a
 lib/liblldbPluginObjCLanguage.a
@@ -571,10 +572,12 @@ lib/liblldbPluginProcessElfCore.a
 lib/liblldbPluginProcessGDBRemote.a
 lib/liblldbPluginProcessMachCore.a
 ${PLIST.posix}lib/liblldbPluginProcessPOSIX.a
+lib/liblldbPluginProcessMinidump.a
 lib/liblldbPluginProcessUtility.a
 lib/liblldbPluginRenderScriptRuntime.a
 lib/liblldbPluginScriptInterpreterNone.a
 lib/liblldbPluginScriptInterpreterPython.a
+lib/liblldbPluginStructuredDataDarwinLog.a
 lib/liblldbPluginSymbolFileDWARF.a
 lib/liblldbPluginSymbolFilePDB.a
 lib/liblldbPluginSymbolFileSymtab.a
@@ -596,6 +599,7 @@ ${PYSITELIB}/lldb/formatters/cpp/__init_
 ${PYSITELIB}/lldb/formatters/cpp/gnu_libstdcpp.py
 ${PYSITELIB}/lldb/formatters/cpp/libcxx.py
 ${PYSITELIB}/lldb/formatters/metrics.py
+${PYSITELIB}/lldb/formatters/synth.py
 ${PYSITELIB}/lldb/lldb-argdumper
 ${PYSITELIB}/lldb/runtime/__init__.py
 ${PYSITELIB}/lldb/utils/__init__.py
Index: pkgsrc/devel/lldb/distinfo
diff -u pkgsrc/devel/lldb/distinfo:1.4 pkgsrc/devel/lldb/distinfo:1.5
--- pkgsrc/devel/lldb/distinfo:1.4      Thu Jan  5 11:54:32 2017
+++ pkgsrc/devel/lldb/distinfo  Fri Mar 17 22:38:17 2017
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.4 2017/01/05 11:54:32 adam Exp $
+$NetBSD: distinfo,v 1.5 2017/03/17 22:38:17 adam Exp $
 
-SHA1 (lldb-3.9.1.src.tar.xz) = f6da59c9ed570c4c7091c25f0abe59aba0e29de3
-RMD160 (lldb-3.9.1.src.tar.xz) = ccf20f4099bca5b02aea9173e863d1b2cfa6b72c
-SHA512 (lldb-3.9.1.src.tar.xz) = e2957a1da60284595b21c205b07fa3db5c474bfad1935ab8e1bc832f30af497e9eb709efeb703591ef62e7dd73a28d22fc21398097a232c8a729946d72eb5df7
-Size (lldb-3.9.1.src.tar.xz) = 13750816 bytes
+SHA1 (lldb-4.0.0.src.tar.xz) = da78ed1453a5e62ff058bebf0cd91c8f51ec5504
+RMD160 (lldb-4.0.0.src.tar.xz) = a4f8d036901ae17ca0959dc4cd1064bbbbaa05af
+SHA512 (lldb-4.0.0.src.tar.xz) = 931e8c6e74b66c4ac1c56c9d067309a319aa9a9f4c72d4ed9703be3decefeb8730084ad8c3581e4e31d61cdd4074518d2ed72bacce1e689e087b2f62ad4bb2e8
+Size (lldb-4.0.0.src.tar.xz) = 19122324 bytes
 SHA1 (patch-cmake_modules_LLDBStandalone.cmake) = 8f7d06a4b3a1e996af9af4affd650291c4f01fe5
 SHA1 (patch-include_lldb_Utility_regcclass.h) = 9ed649e8deb5924feaf82a6e675f5c596367b3d6
 SHA1 (patch-include_lldb_Utility_regcname.h) = b67145f0437d3c09adc33a925d49267cd9ba4fd7
@@ -11,17 +11,16 @@ SHA1 (patch-include_lldb_Utility_regengi
 SHA1 (patch-include_lldb_Utility_regex2.h) = 822a47b1221368ec5442bfbdbc20fe4e370c1a6b
 SHA1 (patch-include_lldb_Utility_regex__impl.h) = 4d99669a756bd662ae28abc8cefe6e1538ef84b6
 SHA1 (patch-include_lldb_Utility_regutils.h) = ea36409f8cd05dcf9b81144cbc136abc5fc3a190
-SHA1 (patch-scripts_Python_finishSwigPythonLLDB.py) = fc0723771d886f0f174f25d91dac85376376af79
+SHA1 (patch-scripts_Python_finishSwigPythonLLDB.py) = 512819d31de6280ccb143ed2fe5a37ecf58265ea
 SHA1 (patch-scripts_Python_modules_readline_readline.cpp) = 4a030226c47cf7d54ebc727e92e278c163e48bf5
-SHA1 (patch-source_Utility_CMakeLists.txt) = 5b10fe94d76135d8d5ba31862066841394dd45c1
+SHA1 (patch-source_Utility_CMakeLists.txt) = 8cfb4acae81e10fb69d5c520ea7b40c0a42ed64e
 SHA1 (patch-source_Utility_regcomp.c) = bd315000773bab38b6fe6d119420afbcb5b83a59
 SHA1 (patch-source_Utility_regerror.c) = 6bbf8dc3f12e64515d166a475452f3f08d849ad3
 SHA1 (patch-source_Utility_regexec.c) = 6e523b4d00d74fb51d5971d415fd3d0a8323461b
 SHA1 (patch-source_Utility_regfree.c) = a3033a951c2773b5fd1209ee2a60be2e042970ee
 SHA1 (patch-source_Utility_regstrlcpy.c) = 284dc5d06d88e243fb91a1225008319b282d6fdc
-SHA1 (patch-tools_lldb-mi_MICmnBase.cpp) = c673fa0c89c509a3c6acad1d5b154396cacb9bb2
-SHA1 (patch-tools_lldb-mi_MICmnBase.h) = 07355c151ee67a71da95056b15d9efee7b033de3
-SHA1 (patch-tools_lldb-mi_MIDriver.cpp) = 14c529a92d37a4a83221013e49b6ed18ef404e3b
-SHA1 (patch-tools_lldb-mi_MIUtilParse.h) = cbd524e70c10cee25e44f1befe594a7198b008b9
-SHA1 (patch-tools_lldb-mi_MIUtilString.cpp) = fb6266ce614eec8a4836fd02a34d5a2ea94c7480
-SHA1 (patch-tools_lldb-mi_MIUtilString.h) = 34419e7f3bfccb6f669ae3075a5a27dd1064d202
+SHA1 (patch-tools_lldb-mi_MICmnBase.cpp) = 32284de30fd5e24ac2a8ca9f58004eab1ed21e60
+SHA1 (patch-tools_lldb-mi_MICmnBase.h) = 079e84091086d77dad3dbf7f232592b1ff80b8f6
+SHA1 (patch-tools_lldb-mi_MIDriver.cpp) = 8ce865888f1f9e3338a7af1fb65050d724e97773
+SHA1 (patch-tools_lldb-mi_MIUtilString.cpp) = 030554c65661c5d2b3a21637bab0746c23345dac
+SHA1 (patch-tools_lldb-mi_MIUtilString.h) = 44e6e22fa521de9bbb92833fdc9c80f1cd7e22bd

Index: pkgsrc/devel/lldb/PLIST.Darwin
diff -u pkgsrc/devel/lldb/PLIST.Darwin:1.1 pkgsrc/devel/lldb/PLIST.Darwin:1.2
--- pkgsrc/devel/lldb/PLIST.Darwin:1.1  Thu Jan  5 11:54:32 2017
+++ pkgsrc/devel/lldb/PLIST.Darwin      Fri Mar 17 22:38:17 2017
@@ -1,10 +1,9 @@
-$NetBSD: PLIST.Darwin,v 1.1 2017/01/05 11:54:32 adam Exp $
+@comment $NetBSD: PLIST.Darwin,v 1.2 2017/03/17 22:38:17 adam Exp $
+bin/darwin-debug
 bin/debugserver
-bin/lldb-launcher
 lib/liblldbPluginDynamicLoaderDarwinKernel.a
 lib/liblldbPluginProcessMacOSXKernel.a
 lib/liblldbPluginSymbolVendorMacOSX.a
-${PYSITELIB}/lldb/darwin-debug
 ${PYSITELIB}/lldb/diagnose/__init__.py
 ${PYSITELIB}/lldb/diagnose/diagnose_nsstring.py
 ${PYSITELIB}/lldb/diagnose/diagnose_unwind.py

Index: pkgsrc/devel/lldb/patches/patch-scripts_Python_finishSwigPythonLLDB.py
diff -u pkgsrc/devel/lldb/patches/patch-scripts_Python_finishSwigPythonLLDB.py:1.2 pkgsrc/devel/lldb/patches/patch-scripts_Python_finishSwigPythonLLDB.py:1.3
--- pkgsrc/devel/lldb/patches/patch-scripts_Python_finishSwigPythonLLDB.py:1.2  Wed Jul 27 09:17:42 2016
+++ pkgsrc/devel/lldb/patches/patch-scripts_Python_finishSwigPythonLLDB.py      Fri Mar 17 22:38:17 2017
@@ -1,17 +1,15 @@
-$NetBSD: patch-scripts_Python_finishSwigPythonLLDB.py,v 1.2 2016/07/27 09:17:42 wiz Exp $
+$NetBSD: patch-scripts_Python_finishSwigPythonLLDB.py,v 1.3 2017/03/17 22:38:17 adam Exp $
 
 Don't conflict with lang/py-six.
 
---- scripts/Python/finishSwigPythonLLDB.py.orig        2016-05-19 21:02:17.000000000 +0000
+--- scripts/Python/finishSwigPythonLLDB.py.orig        2016-10-27 22:51:41.000000000 +0000
 +++ scripts/Python/finishSwigPythonLLDB.py
-@@ -749,8 +749,8 @@ def main(vDictArgs):
-     if bOk:
-         bOk, strMsg = create_symlinks(vDictArgs, strFrameworkPythonDir, strLldbLibDir)
+@@ -821,8 +821,6 @@ def main(vDictArgs):
+         bOk, strMsg = create_symlinks(
+             vDictArgs, strFrameworkPythonDir, strLldbLibDir)
  
 -    if bOk:
 -        bOk, strMsg = copy_six(vDictArgs, strFrameworkPythonDir)
-+    # if bOk:
-+    #     bOk, strMsg = copy_six(vDictArgs, strFrameworkPythonDir)
  
      if bOk:
          bOk, strMsg = copy_lldbpy_file_to_lldb_pkg_dir(vDictArgs,

Index: pkgsrc/devel/lldb/patches/patch-source_Utility_CMakeLists.txt
diff -u pkgsrc/devel/lldb/patches/patch-source_Utility_CMakeLists.txt:1.1 pkgsrc/devel/lldb/patches/patch-source_Utility_CMakeLists.txt:1.2
--- pkgsrc/devel/lldb/patches/patch-source_Utility_CMakeLists.txt:1.1   Mon Mar 28 13:13:55 2016
+++ pkgsrc/devel/lldb/patches/patch-source_Utility_CMakeLists.txt       Fri Mar 17 22:38:17 2017
@@ -1,10 +1,10 @@
-$NetBSD: patch-source_Utility_CMakeLists.txt,v 1.1 2016/03/28 13:13:55 kamil Exp $
+$NetBSD: patch-source_Utility_CMakeLists.txt,v 1.2 2017/03/17 22:38:17 adam Exp $
 
---- source/Utility/CMakeLists.txt.orig 2015-12-06 02:57:30.000000000 +0000
+--- source/Utility/CMakeLists.txt.orig 2016-11-03 09:29:56.000000000 +0000
 +++ source/Utility/CMakeLists.txt
-@@ -17,4 +17,9 @@ add_lldb_library(lldbUtility
+@@ -16,4 +16,9 @@ add_lldb_library(lldbUtility
+   StringLexer.cpp
    TaskPool.cpp
-   TimeSpecTimeout.cpp
    UriParser.cpp
 +  regcomp.c
 +  regerror.c
Index: pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MICmnBase.cpp
diff -u pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MICmnBase.cpp:1.1 pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MICmnBase.cpp:1.2
--- pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MICmnBase.cpp:1.1     Mon Mar 28 13:13:55 2016
+++ pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MICmnBase.cpp Fri Mar 17 22:38:17 2017
@@ -1,16 +1,16 @@
-$NetBSD: patch-tools_lldb-mi_MICmnBase.cpp,v 1.1 2016/03/28 13:13:55 kamil Exp $
+$NetBSD: patch-tools_lldb-mi_MICmnBase.cpp,v 1.2 2017/03/17 22:38:17 adam Exp $
 
 Cannot pass object of non-trivial type 'const CMIUtilString'
 through variadic function.
 
---- tools/lldb-mi/MICmnBase.cpp.orig   2016-02-21 02:08:07.000000000 +0000
+--- tools/lldb-mi/MICmnBase.cpp.orig   2016-09-06 20:57:50.000000000 +0000
 +++ tools/lldb-mi/MICmnBase.cpp
-@@ -127,7 +127,7 @@ CMICmnBase::ClrErrorDescription() const
+@@ -122,7 +122,7 @@ void CMICmnBase::ClrErrorDescription() c
+ // Return:  None.
  // Throws:  None.
  //--
- void
--CMICmnBase::SetErrorDescriptionn(const CMIUtilString vFormat, ...) const
-+CMICmnBase::SetErrorDescriptionn(const char *vFormat, ...) const
- {
-     va_list args;
-     va_start(args, vFormat);
+-void CMICmnBase::SetErrorDescriptionn(const CMIUtilString vFormat, ...) const {
++void CMICmnBase::SetErrorDescriptionn(const char *vFormat, ...) const {
+   va_list args;
+   va_start(args, vFormat);
+   CMIUtilString strResult = CMIUtilString::FormatValist(vFormat, args);
Index: pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MICmnBase.h
diff -u pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MICmnBase.h:1.1 pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MICmnBase.h:1.2
--- pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MICmnBase.h:1.1       Mon Mar 28 13:13:55 2016
+++ pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MICmnBase.h   Fri Mar 17 22:38:17 2017
@@ -1,16 +1,16 @@
-$NetBSD: patch-tools_lldb-mi_MICmnBase.h,v 1.1 2016/03/28 13:13:55 kamil Exp $
+$NetBSD: patch-tools_lldb-mi_MICmnBase.h,v 1.2 2017/03/17 22:38:17 adam Exp $
 
 Cannot pass object of non-trivial type 'const CMIUtilString'
 through variadic function.
 
---- tools/lldb-mi/MICmnBase.h.orig     2015-08-04 10:24:20.000000000 +0000
+--- tools/lldb-mi/MICmnBase.h.orig     2016-09-06 20:57:50.000000000 +0000
 +++ tools/lldb-mi/MICmnBase.h
-@@ -28,7 +28,7 @@ class CMICmnBase
-     bool HaveErrorDescription() const;
-     const CMIUtilString &GetErrorDescription() const;
-     void SetErrorDescription(const CMIUtilString &vrTxt) const;
--    void SetErrorDescriptionn(const CMIUtilString vFormat, ...) const;
-+    void SetErrorDescriptionn(const char *vFormat, ...) const;
-     void SetErrorDescriptionNoLog(const CMIUtilString &vrTxt) const;
-     void ClrErrorDescription() const;
+@@ -28,7 +28,7 @@ public:
+   bool HaveErrorDescription() const;
+   const CMIUtilString &GetErrorDescription() const;
+   void SetErrorDescription(const CMIUtilString &vrTxt) const;
+-  void SetErrorDescriptionn(const CMIUtilString vFormat, ...) const;
++  void SetErrorDescriptionn(const char *vFormat, ...) const;
+   void SetErrorDescriptionNoLog(const CMIUtilString &vrTxt) const;
+   void ClrErrorDescription() const;
  
Index: pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIDriver.cpp
diff -u pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIDriver.cpp:1.1 pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIDriver.cpp:1.2
--- pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIDriver.cpp:1.1      Mon Mar 28 13:13:55 2016
+++ pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIDriver.cpp  Fri Mar 17 22:38:17 2017
@@ -1,16 +1,16 @@
-$NetBSD: patch-tools_lldb-mi_MIDriver.cpp,v 1.1 2016/03/28 13:13:55 kamil Exp $
+$NetBSD: patch-tools_lldb-mi_MIDriver.cpp,v 1.2 2017/03/17 22:38:17 adam Exp $
 
 Cannot pass object of non-trivial type 'const CMIUtilString'
 through variadic function.
 
---- tools/lldb-mi/MIDriver.cpp.orig    2016-02-21 02:08:07.000000000 +0000
+--- tools/lldb-mi/MIDriver.cpp.orig    2016-09-12 07:14:51.000000000 +0000
 +++ tools/lldb-mi/MIDriver.cpp
-@@ -491,7 +491,7 @@ CMIDriver::StartWorkerThreads()
-     {
-         const CMIUtilString errMsg = CMIUtilString::Format(MIRSRC(IDS_THREADMGR_ERR_THREAD_FAIL_CREATE),
-                                                            CMICmnThreadMgrStd::Instance().GetErrorDescription().c_str());
--        SetErrorDescriptionn(errMsg);
-+        SetErrorDescriptionn(errMsg.c_str());
-         return MIstatus::failure;
-     }
+@@ -509,7 +509,7 @@ bool CMIDriver::StartWorkerThreads() {
+     const CMIUtilString errMsg = CMIUtilString::Format(
+         MIRSRC(IDS_THREADMGR_ERR_THREAD_FAIL_CREATE),
+         CMICmnThreadMgrStd::Instance().GetErrorDescription().c_str());
+-    SetErrorDescriptionn(errMsg);
++    SetErrorDescriptionn(errMsg.c_str());
+     return MIstatus::failure;
+   }
  
Index: pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIUtilString.cpp
diff -u pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIUtilString.cpp:1.1 pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIUtilString.cpp:1.2
--- pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIUtilString.cpp:1.1  Mon Mar 28 13:13:55 2016
+++ pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIUtilString.cpp      Fri Mar 17 22:38:17 2017
@@ -1,16 +1,16 @@
-$NetBSD: patch-tools_lldb-mi_MIUtilString.cpp,v 1.1 2016/03/28 13:13:55 kamil Exp $
+$NetBSD: patch-tools_lldb-mi_MIUtilString.cpp,v 1.2 2017/03/17 22:38:17 adam Exp $
 
 Cannot pass object of non-trivial type 'const CMIUtilString'
 through variadic function.
 
---- tools/lldb-mi/MIUtilString.cpp.orig        2016-02-21 02:08:07.000000000 +0000
+--- tools/lldb-mi/MIUtilString.cpp.orig        2016-12-05 11:15:36.000000000 +0000
 +++ tools/lldb-mi/MIUtilString.cpp
-@@ -159,7 +159,7 @@ CMIUtilString::FormatPriv(const CMIUtilS
+@@ -157,7 +157,7 @@ CMIUtilString CMIUtilString::FormatPriv(
+ // Return:  CMIUtilString - Number of splits found in the string data.
  // Throws:  None.
  //--
- CMIUtilString
--CMIUtilString::Format(const CMIUtilString vFormating, ...)
-+CMIUtilString::Format(const char* vFormating, ...)
- {
-     va_list args;
-     va_start(args, vFormating);
+-CMIUtilString CMIUtilString::Format(const CMIUtilString vFormating, ...) {
++CMIUtilString CMIUtilString::Format(const char *vFormating, ...) {
+   va_list args;
+   va_start(args, vFormating);
+   CMIUtilString strResult = CMIUtilString::FormatPriv(vFormating, args);
Index: pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIUtilString.h
diff -u pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIUtilString.h:1.1 pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIUtilString.h:1.2
--- pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIUtilString.h:1.1    Mon Mar 28 13:13:55 2016
+++ pkgsrc/devel/lldb/patches/patch-tools_lldb-mi_MIUtilString.h        Fri Mar 17 22:38:17 2017
@@ -1,16 +1,16 @@
-$NetBSD: patch-tools_lldb-mi_MIUtilString.h,v 1.1 2016/03/28 13:13:55 kamil Exp $
+$NetBSD: patch-tools_lldb-mi_MIUtilString.h,v 1.2 2017/03/17 22:38:17 adam Exp $
 
 Cannot pass object of non-trivial type 'const CMIUtilString'
 through variadic function.
 
---- tools/lldb-mi/MIUtilString.h.orig  2016-02-21 02:08:07.000000000 +0000
+--- tools/lldb-mi/MIUtilString.h.orig  2016-09-06 20:57:50.000000000 +0000
 +++ tools/lldb-mi/MIUtilString.h
-@@ -30,7 +30,7 @@ class CMIUtilString : public std::string
+@@ -30,7 +30,7 @@ public:
  
-     // Static method:
-   public:
--    static CMIUtilString Format(const CMIUtilString vFormating, ...);
-+    static CMIUtilString Format(const char *vFormating, ...);
-     static CMIUtilString FormatBinary(const MIuint64 vnDecimal);
-     static CMIUtilString FormatValist(const CMIUtilString &vrFormating, va_list vArgs);
-     static bool IsAllValidAlphaAndNumeric(const char *vpText);
+   // Static method:
+ public:
+-  static CMIUtilString Format(const CMIUtilString vFormating, ...);
++  static CMIUtilString Format(const char *vFormating, ...);
+   static CMIUtilString FormatBinary(const MIuint64 vnDecimal);
+   static CMIUtilString FormatValist(const CMIUtilString &vrFormating,
+                                     va_list vArgs);

Index: pkgsrc/devel/polly/Makefile
diff -u pkgsrc/devel/polly/Makefile:1.3 pkgsrc/devel/polly/Makefile:1.4
--- pkgsrc/devel/polly/Makefile:1.3     Thu Jan  5 11:54:32 2017
+++ pkgsrc/devel/polly/Makefile Fri Mar 17 22:38:17 2017
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2017/01/05 11:54:32 adam Exp $
+# $NetBSD: Makefile,v 1.4 2017/03/17 22:38:17 adam Exp $
 
-DISTNAME=      polly-3.9.1.src
+DISTNAME=      polly-4.0.0.src
 PKGNAME=       ${DISTNAME:S/.src//}
 CATEGORIES=    devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/

Index: pkgsrc/devel/polly/PLIST
diff -u pkgsrc/devel/polly/PLIST:1.2 pkgsrc/devel/polly/PLIST:1.3
--- pkgsrc/devel/polly/PLIST:1.2        Mon Nov 14 20:49:15 2016
+++ pkgsrc/devel/polly/PLIST    Fri Mar 17 22:38:17 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2016/11/14 20:49:15 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.3 2017/03/17 22:38:17 adam Exp $
 include/polly/Canonicalization.h
 include/polly/CodeGen/BlockGenerators.h
 include/polly/CodeGen/CodeGeneration.h
@@ -11,9 +11,13 @@ include/polly/CodeGen/LoopGenerators.h
 include/polly/CodeGen/RuntimeDebugBuilder.h
 include/polly/CodeGen/Utils.h
 include/polly/Config/config.h
+include/polly/DeLICM.h
 include/polly/DependenceInfo.h
+include/polly/FlattenAlgo.h
+include/polly/FlattenSchedule.h
 include/polly/LinkAllPasses.h
 include/polly/Options.h
+include/polly/PolyhedralInfo.h
 include/polly/RegisterPasses.h
 include/polly/ScheduleOptimizer.h
 include/polly/ScopBuilder.h

Index: pkgsrc/devel/polly/distinfo
diff -u pkgsrc/devel/polly/distinfo:1.4 pkgsrc/devel/polly/distinfo:1.5
--- pkgsrc/devel/polly/distinfo:1.4     Thu Jan  5 11:54:32 2017
+++ pkgsrc/devel/polly/distinfo Fri Mar 17 22:38:17 2017
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.4 2017/01/05 11:54:32 adam Exp $
+$NetBSD: distinfo,v 1.5 2017/03/17 22:38:17 adam Exp $
 
-SHA1 (polly-3.9.1.src.tar.xz) = 01db5a1fa44a165ec7b2950292a5b785f2b9c3d2
-RMD160 (polly-3.9.1.src.tar.xz) = 4d4109afd1f5b090301134dbba7dfd66a25a2bc3
-SHA512 (polly-3.9.1.src.tar.xz) = 2efe3858069e076fe3961fa117dd0c93ead0559ff04a9b43a76a3a3742cd186b5a14f6482cd208806336b61aa8c09c4152adc00838919ac8f4d38bc293e29c96
-Size (polly-3.9.1.src.tar.xz) = 8683324 bytes
-SHA1 (patch-CMakeLists.txt) = 5a5eca0d2b6ceee8fe92b60392d4af06ed69f1c0
-SHA1 (patch-lib_External_isl_configure) = dad55f0d959b64f0cb910dad412bfe5bb3702ec9
+SHA1 (polly-4.0.0.src.tar.xz) = 97f288ef99240642af432fb59e079a4a0e2205e5
+RMD160 (polly-4.0.0.src.tar.xz) = 5e37430f0bc80a9a1acfce1643c02815609b2504
+SHA512 (polly-4.0.0.src.tar.xz) = 2c5969290c7478169db40385012283f983df7679d7e6031fa82e5704fc887b7aa45a69cdd3533b29418aa37b91b92293e154e40257c78781e765d523045de785
+Size (polly-4.0.0.src.tar.xz) = 8784016 bytes
+SHA1 (patch-CMakeLists.txt) = 4f9c2d74c9ed58e1835dd1113859ff0eed06e44a
+SHA1 (patch-lib_External_isl_configure) = 5b82426a85afd95923418bbeef5b7bbe4bc43748

Index: pkgsrc/devel/polly/patches/patch-CMakeLists.txt
diff -u pkgsrc/devel/polly/patches/patch-CMakeLists.txt:1.2 pkgsrc/devel/polly/patches/patch-CMakeLists.txt:1.3
--- pkgsrc/devel/polly/patches/patch-CMakeLists.txt:1.2 Mon Nov 14 20:49:15 2016
+++ pkgsrc/devel/polly/patches/patch-CMakeLists.txt     Fri Mar 17 22:38:17 2017
@@ -1,12 +1,12 @@
-$NetBSD: patch-CMakeLists.txt,v 1.2 2016/11/14 20:49:15 ryoon Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.3 2017/03/17 22:38:17 adam Exp $
 
 Bump minimal required CMake version to 3.4.3 like modern LLVM
 Add support for standalone builds
 Disable tests - they require missing files from standard LLVM build (lit tool)
 
---- CMakeLists.txt.orig        2016-07-15 07:50:36.000000000 +0000
+--- CMakeLists.txt.orig        2017-01-11 01:07:37.000000000 +0000
 +++ CMakeLists.txt
-@@ -1,90 +1,107 @@
+@@ -1,117 +1,106 @@
  # Check if this is a in tree build.
  if (NOT DEFINED LLVM_MAIN_SRC_DIR)
    project(Polly)
@@ -19,35 +19,30 @@ Disable tests - they require missing fil
 -  if( NOT EXISTS ${LLVM_INSTALL_ROOT}/include/llvm )
 -    message(FATAL_ERROR "LLVM_INSTALL_ROOT (${LLVM_INSTALL_ROOT}) is not a valid LLVM installation.")
 -  endif(NOT EXISTS ${LLVM_INSTALL_ROOT}/include/llvm)
--  #FileCheck is not install by default, warn the user to Copy FileCheck
+-  # FileCheck, not and llvm-lit are not install by default, warn the user to copy them.
 -  if( NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/FileCheck
--      OR NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/not)
--    message(WARNING "FileCheck or not are required by running regress tests, "
--                    "but they are not installed! Please copy it to "
+-      OR NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/not
+-      OR NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/llvm-lit )
+-    message(WARNING "'FileCheck', 'not' and 'llvm-lit' are required by running regress tests, "
+-                    "but they are not installed! Please copy them to "
 -                    "${LLVM_INSTALL_ROOT}/bin.")
--  endif(NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/FileCheck
--        OR NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/not)
+-  endif()
 -  # Add the llvm header path.
 -  include_directories(${LLVM_INSTALL_ROOT}/include/)
 -
 -  # Get the system librarys that will link into LLVM.
--  function(get_system_libs return_var)
--    # Returns in `return_var' a list of system libraries used by LLVM.
--    if( NOT MSVC )
--      if( MINGW )
--        set(system_libs ${system_libs} imagehlp psapi)
--      elseif( CMAKE_HOST_UNIX )
--        if( HAVE_LIBDL )
--          set(system_libs ${system_libs} ${CMAKE_DL_LIBS})
--        endif()
--        if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD )
--          set(system_libs ${system_libs} pthread)
--        endif()
--      endif( MINGW )
--    endif( NOT MSVC )
--    set(${return_var} ${system_libs} PARENT_SCOPE)
--  endfunction(get_system_libs)
+-  execute_process(COMMAND "${LLVM_INSTALL_ROOT}/bin/llvm-config" --system-libs
+-                  OUTPUT_VARIABLE LLVM_SYSTEM_LIBS
+-                  OUTPUT_STRIP_TRAILING_WHITESPACE)
+-  message(STATUS "System libs required by LLVM: ${LLVM_SYSTEM_LIBS}")
 -
+-  # Determine where LLVM stores its libraries.
+-  execute_process(COMMAND "${LLVM_INSTALL_ROOT}/bin/llvm-config" --libdir
+-                  OUTPUT_VARIABLE LLVM_LIBRARY_DIR
+-                  OUTPUT_STRIP_TRAILING_WHITESPACE)
+-  link_directories("${LLVM_LIBRARY_DIR}")
++  option(LLVM_INSTALL_TOOLCHAIN_ONLY "Only include toolchain files in the 'install' target." OFF)
+ 
 -  # Now set the header paths.
 -  execute_process(COMMAND "${LLVM_INSTALL_ROOT}/bin/llvm-config" --includedir
 -                  OUTPUT_VARIABLE LLVM_INCLUDE_DIR
@@ -91,8 +86,29 @@ Disable tests - they require missing fil
 -          "${flags_var_to_scrub}" "${${flags_var_to_scrub}}")
 -      endforeach()
 -    endif()
-+  option(LLVM_INSTALL_TOOLCHAIN_ONLY "Only include toolchain files in the 'install' target." OFF)
-+
+-  endif()
+-
+-  # Sources available, too?
+-  execute_process(COMMAND "${LLVM_INSTALL_ROOT}/bin/llvm-config" --src-root
+-                  OUTPUT_VARIABLE MAIN_SRC_DIR
+-                  OUTPUT_STRIP_TRAILING_WHITESPACE)
+-  set(LLVM_SOURCE_ROOT ${MAIN_SRC_DIR} CACHE PATH "Path to LLVM source tree")
+-
+-  # Enable unit tests if available.
+-  set(UNITTEST_DIR ${LLVM_SOURCE_ROOT}/utils/unittest)
+-  if(EXISTS ${UNITTEST_DIR}/googletest/include/gtest/gtest.h)
+-    add_library(gtest
+-      ${UNITTEST_DIR}/googletest/src/gtest-all.cc
+-      ${UNITTEST_DIR}/googlemock/src/gmock-all.cc
+-    )
+-    target_include_directories(gtest
+-      PUBLIC
+-      "${UNITTEST_DIR}/googletest/include"
+-      "${UNITTEST_DIR}/googlemock/include"
+-
+-      PRIVATE
+-      "${UNITTEST_DIR}/googletest"
+-      "${UNITTEST_DIR}/googlemock"
 +  # Rely on llvm-config.
 +  set(CONFIG_OUTPUT)
 +  find_program(LLVM_CONFIG "llvm-config")
@@ -109,7 +125,8 @@ Disable tests - they require missing fil
 +      COMMAND ${CONFIG_COMMAND}
 +      RESULT_VARIABLE HAD_ERROR
 +      OUTPUT_VARIABLE CONFIG_OUTPUT
-+    )
+     )
+-    target_link_libraries(gtest ${LLVM_SYSTEM_LIBS})
 +    if(NOT HAD_ERROR)
 +      string(REGEX REPLACE
 +        "[ \t]*[\r\n]+[ \t]*" ";"
@@ -118,12 +135,13 @@ Disable tests - they require missing fil
 +      string(REPLACE ";" " " CONFIG_COMMAND_STR "${CONFIG_COMMAND}")
 +      message(STATUS "${CONFIG_COMMAND_STR}")
 +      message(FATAL_ERROR "llvm-config failed with status ${HAD_ERROR}")
-+
 +     endif()
 +  else()
 +    message(FATAL_ERROR "llvm-config not found -- ${LLVM_CONFIG}")
 +  endif()
-+
+ 
+-    add_library(gtest_main ${UNITTEST_DIR}/UnitTestMain/TestMain.cpp)
+-    target_link_libraries(gtest_main gtest)
 +  list(GET CONFIG_OUTPUT 0 ENABLE_ASSERTIONS)
 +  list(GET CONFIG_OUTPUT 1 TOOLS_BINARY_DIR)
 +  list(GET CONFIG_OUTPUT 2 LIBRARY_DIR)
@@ -151,12 +169,13 @@ Disable tests - they require missing fil
 +  set(LLVM_CMAKE_PATH "${LLVM_BINARY_DIR}/lib/cmake/llvm")
 +  set(LLVMCONFIG_FILE "${LLVM_CMAKE_PATH}/LLVMConfig.cmake")
 +  if(EXISTS ${LLVMCONFIG_FILE})
-+    list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_PATH}")                                                                                                                                     
++    list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_PATH}")
 +    include(${LLVMCONFIG_FILE})
 +  else()
 +    message(FATAL_ERROR "Not found: ${LLVMCONFIG_FILE}")
 +  endif()
-+
+ 
+-    set(POLLY_GTEST_AVAIL 1)
 +  # They are used as destination of target generators.
 +  set(LLVM_RUNTIME_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin)
 +  set(LLVM_LIBRARY_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${LLVM_LIBDIR_SUFFIX})
@@ -165,10 +184,8 @@ Disable tests - they require missing fil
 +    set(LLVM_SHLIB_OUTPUT_INTDIR ${LLVM_RUNTIME_OUTPUT_INTDIR})
 +  else()
 +    set(LLVM_SHLIB_OUTPUT_INTDIR ${LLVM_LIBRARY_OUTPUT_INTDIR})
-   endif()
- 
--  # Make sure the isl c files are built as fPIC
--  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
++  endif()
++ 
 +  include(AddLLVM)
 +  include(HandleLLVMOptions)
 +  include(TableGen)
@@ -184,32 +201,30 @@ Disable tests - they require missing fil
 +  # LLVM and Cland are assumed to be built together
 +  if (EXISTS "${LLVM_OBJ_ROOT}/include")
 +    include_directories("${LLVM_OBJ_ROOT}/include")
-+   endif()
+   endif()
 +  link_directories("${LLVM_LIBRARY_DIR}")
-+
+ 
+-  # Make sure the isl c files are built as fPIC
+-  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
+-else ()
+-  set(LLVM_SOURCE_ROOT "${LLVM_MAIN_SRC_DIR}")
+-  set(POLLY_GTEST_AVAIL 1)
 +  set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
-+  set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})                                                                                                          
++  set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
 +  set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
 + 
 +  set(POLLY_BUILT_STANDALONE 1)
- endif(NOT DEFINED LLVM_MAIN_SRC_DIR)
- 
- set(POLLY_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
-@@ -111,7 +128,7 @@ else ()
  endif ()
  
- # Add path for custom modules
--set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${POLLY_SOURCE_DIR}/cmake")
-+set (CMAKE_MODULE_PATH "/usr/tmp/pkgsrc/devel/polly/work/.buildlink/cmake-Modules" ${CMAKE_MODULE_PATH} "${POLLY_SOURCE_DIR}/cmake")
- 
- SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
- 
-@@ -163,7 +180,7 @@ add_definitions( -D_GNU_SOURCE )
+ set(POLLY_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
+@@ -190,10 +179,6 @@ add_definitions( -D_GNU_SOURCE )
  
  add_subdirectory(docs)
  add_subdirectory(lib)
 -add_subdirectory(test)
-+#add_subdirectory(test)
+-if (POLLY_GTEST_AVAIL)
+-  add_subdirectory(unittests)
+-endif ()
  add_subdirectory(tools)
  # TODO: docs.
  

Index: pkgsrc/devel/polly/patches/patch-lib_External_isl_configure
diff -u pkgsrc/devel/polly/patches/patch-lib_External_isl_configure:1.1 pkgsrc/devel/polly/patches/patch-lib_External_isl_configure:1.2
--- pkgsrc/devel/polly/patches/patch-lib_External_isl_configure:1.1     Mon Sep 12 22:49:24 2016
+++ pkgsrc/devel/polly/patches/patch-lib_External_isl_configure Fri Mar 17 22:38:17 2017
@@ -1,10 +1,10 @@
-$NetBSD: patch-lib_External_isl_configure,v 1.1 2016/09/12 22:49:24 kamil Exp $
+$NetBSD: patch-lib_External_isl_configure,v 1.2 2017/03/17 22:38:17 adam Exp $
 
 Fix shell portability issue.
 
---- lib/External/isl/configure.orig    2015-12-02 09:35:04.000000000 +0000
+--- lib/External/isl/configure.orig    2016-12-22 23:08:57.000000000 +0000
 +++ lib/External/isl/configure
-@@ -17487,7 +17487,7 @@ else
+@@ -18156,7 +18156,7 @@ else
  fi
  
  
@@ -13,7 +13,7 @@ Fix shell portability issue.
    SMALL_INT_OPT_TRUE=
    SMALL_INT_OPT_FALSE='#'
  else
-@@ -17495,7 +17495,7 @@ else
+@@ -18164,7 +18164,7 @@ else
    SMALL_INT_OPT_FALSE=
  fi
  
@@ -22,7 +22,7 @@ Fix shell portability issue.
  
  
  $as_echo "#define USE_SMALL_INT_OPT /**/" >>confdefs.h
-@@ -21881,4 +21881,3 @@ if test -n "$ac_unrecognized_opts" && te
+@@ -22524,4 +22524,3 @@ if test -n "$ac_unrecognized_opts" && te
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  fi

Index: pkgsrc/lang/clang/Makefile
diff -u pkgsrc/lang/clang/Makefile:1.43 pkgsrc/lang/clang/Makefile:1.44
--- pkgsrc/lang/clang/Makefile:1.43     Thu Mar 10 15:01:52 2016
+++ pkgsrc/lang/clang/Makefile  Fri Mar 17 22:38:17 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2016/03/10 15:01:52 tnn Exp $
+# $NetBSD: Makefile,v 1.44 2017/03/17 22:38:17 adam Exp $
 
 PKGNAME=               ${DISTNAME:S/.src//:S/cfe/clang/}
 PYTHON_FOR_BUILD_ONLY= yes
@@ -9,9 +9,4 @@ CMAKE_ARGS+=    -DCLANG_ENABLE_STATIC_ANALY
 # We don't want to add a python runtime dependency for that.
 CHECK_INTERPRETER_SKIP+=       share/clang/*
 
-.PHONY: install-clang-cpp
-post-install: install-clang-cpp
-install-clang-cpp:
-       ${LN} -s clang ${DESTDIR}${PREFIX}/bin/clang-cpp
-
 .include "../../lang/clang/Makefile.common"

Index: pkgsrc/lang/clang/Makefile.common
diff -u pkgsrc/lang/clang/Makefile.common:1.18 pkgsrc/lang/clang/Makefile.common:1.19
--- pkgsrc/lang/clang/Makefile.common:1.18      Mon Jan 16 17:26:47 2017
+++ pkgsrc/lang/clang/Makefile.common   Fri Mar 17 22:38:17 2017
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile.common,v 1.18 2017/01/16 17:26:47 brook Exp $
+# $NetBSD: Makefile.common,v 1.19 2017/03/17 22:38:17 adam Exp $
 # used by lang/clang/Makefile
 # used by lang/clang-static-analyzer/Makefile
 
-DISTNAME=      cfe-3.9.1.src
+DISTNAME=      cfe-4.0.0.src
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
 EXTRACT_SUFX=  .tar.xz

Index: pkgsrc/lang/clang/PLIST
diff -u pkgsrc/lang/clang/PLIST:1.20 pkgsrc/lang/clang/PLIST:1.21
--- pkgsrc/lang/clang/PLIST:1.20        Thu Jan  5 11:54:32 2017
+++ pkgsrc/lang/clang/PLIST     Fri Mar 17 22:38:17 2017
@@ -1,11 +1,13 @@
-@comment $NetBSD: PLIST,v 1.20 2017/01/05 11:54:32 adam Exp $
+@comment $NetBSD: PLIST,v 1.21 2017/03/17 22:38:17 adam Exp $
 bin/c-index-test
 bin/clang
 bin/clang++
-bin/clang-3.9
+bin/clang-4.0
 bin/clang-cl
 bin/clang-cpp
 bin/clang-format
+bin/clang-import-test
+bin/clang-offload-bundler
 include/clang-c/BuildSystem.h
 include/clang-c/CXCompilationDatabase.h
 include/clang-c/CXErrorCode.h
@@ -125,6 +127,7 @@ include/clang/Analysis/Analyses/Consumed
 include/clang/Analysis/Analyses/Dominators.h
 include/clang/Analysis/Analyses/FormatString.h
 include/clang/Analysis/Analyses/LiveVariables.h
+include/clang/Analysis/Analyses/OSLog.h
 include/clang/Analysis/Analyses/PostOrderCFGView.h
 include/clang/Analysis/Analyses/PseudoConstantAnalysis.h
 include/clang/Analysis/Analyses/ReachableCode.h
@@ -141,6 +144,7 @@ include/clang/Analysis/AnalysisDiagnosti
 include/clang/Analysis/CFG.h
 include/clang/Analysis/CFGStmtMap.h
 include/clang/Analysis/CallGraph.h
+include/clang/Analysis/CloneDetection.h
 include/clang/Analysis/CodeInjector.h
 include/clang/Analysis/DomainSpecific/CocoaConventions.h
 include/clang/Analysis/DomainSpecific/ObjCNoReturn.h
@@ -168,6 +172,7 @@ include/clang/Basic/BuiltinsPPC.def
 include/clang/Basic/BuiltinsSystemZ.def
 include/clang/Basic/BuiltinsWebAssembly.def
 include/clang/Basic/BuiltinsX86.def
+include/clang/Basic/BuiltinsX86_64.def
 include/clang/Basic/BuiltinsXCore.def
 include/clang/Basic/CapturedStmt.h
 include/clang/Basic/CharInfo.h
@@ -248,6 +253,7 @@ include/clang/CodeGen/SwiftCallingConv.h
 include/clang/Config/config.h
 include/clang/Driver/Action.h
 include/clang/Driver/Compilation.h
+include/clang/Driver/Distro.h
 include/clang/Driver/Driver.h
 include/clang/Driver/DriverDiagnostic.h
 include/clang/Driver/Job.h
@@ -399,6 +405,7 @@ include/clang/Serialization/Serializatio
 include/clang/StaticAnalyzer/Checkers/Checkers.inc
 include/clang/StaticAnalyzer/Checkers/ClangCheckers.h
 include/clang/StaticAnalyzer/Checkers/LocalCheckers.h
+include/clang/StaticAnalyzer/Checkers/MPIFunctionClassifier.h
 include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h
 include/clang/StaticAnalyzer/Checkers/SValExplainer.h
 include/clang/StaticAnalyzer/Core/Analyses.def
@@ -457,9 +464,11 @@ include/clang/Tooling/ArgumentsAdjusters
 include/clang/Tooling/CommonOptionsParser.h
 include/clang/Tooling/CompilationDatabase.h
 include/clang/Tooling/CompilationDatabasePluginRegistry.h
+include/clang/Tooling/Core/Diagnostic.h
 include/clang/Tooling/Core/Lookup.h
 include/clang/Tooling/Core/QualTypeNames.h
 include/clang/Tooling/Core/Replacement.h
+include/clang/Tooling/DiagnosticsYaml.h
 include/clang/Tooling/FileMatchTrie.h
 include/clang/Tooling/FixIt.h
 include/clang/Tooling/JSONCompilationDatabase.h
@@ -467,7 +476,9 @@ include/clang/Tooling/Refactoring.h
 include/clang/Tooling/RefactoringCallbacks.h
 include/clang/Tooling/ReplacementsYaml.h
 include/clang/Tooling/Tooling.h
+lib/clang/${PKGVERSION}/include/__clang_cuda_builtin_vars.h
 lib/clang/${PKGVERSION}/include/__clang_cuda_cmath.h
+lib/clang/${PKGVERSION}/include/__clang_cuda_complex_builtins.h
 lib/clang/${PKGVERSION}/include/__clang_cuda_intrinsics.h
 lib/clang/${PKGVERSION}/include/__clang_cuda_math_forward_declares.h
 lib/clang/${PKGVERSION}/include/__clang_cuda_runtime_wrapper.h
@@ -479,6 +490,7 @@ lib/clang/${PKGVERSION}/include/altivec.
 lib/clang/${PKGVERSION}/include/ammintrin.h
 lib/clang/${PKGVERSION}/include/arm_acle.h
 lib/clang/${PKGVERSION}/include/arm_neon.h
+lib/clang/${PKGVERSION}/include/armintr.h
 lib/clang/${PKGVERSION}/include/avx2intrin.h
 lib/clang/${PKGVERSION}/include/avx512bwintrin.h
 lib/clang/${PKGVERSION}/include/avx512cdintrin.h
@@ -499,7 +511,9 @@ lib/clang/${PKGVERSION}/include/bmi2intr
 lib/clang/${PKGVERSION}/include/bmiintrin.h
 lib/clang/${PKGVERSION}/include/clflushoptintrin.h
 lib/clang/${PKGVERSION}/include/cpuid.h
-lib/clang/${PKGVERSION}/include/cuda_builtin_vars.h
+lib/clang/${PKGVERSION}/include/cuda_wrappers/algorithm
+lib/clang/${PKGVERSION}/include/cuda_wrappers/complex
+lib/clang/${PKGVERSION}/include/cuda_wrappers/new
 lib/clang/${PKGVERSION}/include/emmintrin.h
 lib/clang/${PKGVERSION}/include/f16cintrin.h
 lib/clang/${PKGVERSION}/include/float.h
@@ -559,6 +573,7 @@ lib/cmake/clang/ClangConfig.cmake
 lib/cmake/clang/ClangTargets-release.cmake
 lib/cmake/clang/ClangTargets.cmake
 lib/libclang.${SOEXT}
+${PLIST.notdylib}lib/libclang.${SOEXT}.4
 ${PLIST.notdylib}lib/libclang.${SOEXT}.${LLVM_MAJOR}
 lib/libclangAST.a
 lib/libclangASTMatchers.a

Index: pkgsrc/lang/clang/distinfo
diff -u pkgsrc/lang/clang/distinfo:1.46 pkgsrc/lang/clang/distinfo:1.47
--- pkgsrc/lang/clang/distinfo:1.46     Thu Jan  5 11:54:32 2017
+++ pkgsrc/lang/clang/distinfo  Fri Mar 17 22:38:17 2017
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.46 2017/01/05 11:54:32 adam Exp $
+$NetBSD: distinfo,v 1.47 2017/03/17 22:38:17 adam Exp $
 
-SHA1 (cfe-3.9.1.src.tar.xz) = 95e4be54b70f32cf98a8de36821ea5495b84add8
-RMD160 (cfe-3.9.1.src.tar.xz) = 51930c2d55eacd44df28b49a84565771c94f418e
-SHA512 (cfe-3.9.1.src.tar.xz) = 3f0eea194597e438bbe49ce9ef5fdced81459c21cbdd2653750b2fe02c55a0154d6a33a8cfd02e607b83314a8e35b2c300f944462120ab6de1d4139d85db56b8
-Size (cfe-3.9.1.src.tar.xz) = 10363080 bytes
+SHA1 (cfe-4.0.0.src.tar.xz) = e2762800c93d9335781ea6a45af3f80845542ef5
+RMD160 (cfe-4.0.0.src.tar.xz) = aae742d32a18cd8660b0eabecfcf14139f2f4d4a
+SHA512 (cfe-4.0.0.src.tar.xz) = a0d9972ec337a5c105fcbe7abc4076ba1e580f28908a3318f43bbfe59143f446ed5b78dad210f624145d7e5a3d56c15bfead78826c068422b60120fa1cfa482a
+Size (cfe-4.0.0.src.tar.xz) = 10900916 bytes
 SHA1 (patch-tools_clang-format_CMakeLists.txt) = 4efc9c9f69caf7df1dd0db384eae644c606c5ca9

Index: pkgsrc/lang/libLLVM/Makefile
diff -u pkgsrc/lang/libLLVM/Makefile:1.18 pkgsrc/lang/libLLVM/Makefile:1.19
--- pkgsrc/lang/libLLVM/Makefile:1.18   Mon Jan 16 21:56:35 2017
+++ pkgsrc/lang/libLLVM/Makefile        Fri Mar 17 22:38:18 2017
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.18 2017/01/16 21:56:35 brook Exp $
+# $NetBSD: Makefile,v 1.19 2017/03/17 22:38:18 adam Exp $
 
-DISTNAME=      llvm-3.9.1.src
+DISTNAME=      llvm-4.0.0.src
 PKGNAME=       ${DISTNAME:S/llvm/libLLVM/:S/.src//}
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/

Index: pkgsrc/lang/libLLVM/PLIST
diff -u pkgsrc/lang/libLLVM/PLIST:1.8 pkgsrc/lang/libLLVM/PLIST:1.9
--- pkgsrc/lang/libLLVM/PLIST:1.8       Mon Nov 14 20:15:33 2016
+++ pkgsrc/lang/libLLVM/PLIST   Fri Mar 17 22:38:18 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2016/11/14 20:15:33 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.9 2017/03/17 22:38:18 adam Exp $
 include/libLLVM/llvm-c/Analysis.h
 include/libLLVM/llvm-c/BitReader.h
 include/libLLVM/llvm-c/BitWriter.h
@@ -24,9 +24,11 @@ include/libLLVM/llvm-c/lto.h
 include/libLLVM/llvm/ADT/APFloat.h
 include/libLLVM/llvm/ADT/APInt.h
 include/libLLVM/llvm/ADT/APSInt.h
+include/libLLVM/llvm/ADT/AllocatorList.h
 include/libLLVM/llvm/ADT/ArrayRef.h
 include/libLLVM/llvm/ADT/BitVector.h
 include/libLLVM/llvm/ADT/BitmaskEnum.h
+include/libLLVM/llvm/ADT/CachedHashString.h
 include/libLLVM/llvm/ADT/DAGDeltaAlgorithm.h
 include/libLLVM/llvm/ADT/DeltaAlgorithm.h
 include/libLLVM/llvm/ADT/DenseMap.h
@@ -58,6 +60,7 @@ include/libLLVM/llvm/ADT/PriorityQueue.h
 include/libLLVM/llvm/ADT/PriorityWorklist.h
 include/libLLVM/llvm/ADT/SCCIterator.h
 include/libLLVM/llvm/ADT/STLExtras.h
+include/libLLVM/llvm/ADT/ScopeExit.h
 include/libLLVM/llvm/ADT/ScopedHashTable.h
 include/libLLVM/llvm/ADT/Sequence.h
 include/libLLVM/llvm/ADT/SetOperations.h
@@ -83,9 +86,14 @@ include/libLLVM/llvm/ADT/UniqueVector.h
 include/libLLVM/llvm/ADT/VariadicFunction.h
 include/libLLVM/llvm/ADT/edit_distance.h
 include/libLLVM/llvm/ADT/ilist.h
+include/libLLVM/llvm/ADT/ilist_base.h
+include/libLLVM/llvm/ADT/ilist_iterator.h
 include/libLLVM/llvm/ADT/ilist_node.h
+include/libLLVM/llvm/ADT/ilist_node_base.h
+include/libLLVM/llvm/ADT/ilist_node_options.h
 include/libLLVM/llvm/ADT/iterator.h
 include/libLLVM/llvm/ADT/iterator_range.h
+include/libLLVM/llvm/ADT/simple_ilist.h
 include/libLLVM/llvm/Analysis/AliasAnalysis.h
 include/libLLVM/llvm/Analysis/AliasAnalysisEvaluator.h
 include/libLLVM/llvm/Analysis/AliasSetTracker.h
@@ -124,16 +132,17 @@ include/libLLVM/llvm/Analysis/IntervalIt
 include/libLLVM/llvm/Analysis/IntervalPartition.h
 include/libLLVM/llvm/Analysis/IteratedDominanceFrontier.h
 include/libLLVM/llvm/Analysis/LazyBlockFrequencyInfo.h
+include/libLLVM/llvm/Analysis/LazyBranchProbabilityInfo.h
 include/libLLVM/llvm/Analysis/LazyCallGraph.h
 include/libLLVM/llvm/Analysis/LazyValueInfo.h
 include/libLLVM/llvm/Analysis/Lint.h
 include/libLLVM/llvm/Analysis/Loads.h
 include/libLLVM/llvm/Analysis/LoopAccessAnalysis.h
+include/libLLVM/llvm/Analysis/LoopAnalysisManager.h
 include/libLLVM/llvm/Analysis/LoopInfo.h
 include/libLLVM/llvm/Analysis/LoopInfoImpl.h
 include/libLLVM/llvm/Analysis/LoopIterator.h
 include/libLLVM/llvm/Analysis/LoopPass.h
-include/libLLVM/llvm/Analysis/LoopPassManager.h
 include/libLLVM/llvm/Analysis/LoopUnrollAnalyzer.h
 include/libLLVM/llvm/Analysis/MemoryBuiltins.h
 include/libLLVM/llvm/Analysis/MemoryDependenceAnalysis.h
@@ -174,11 +183,12 @@ include/libLLVM/llvm/Analysis/VectorUtil
 include/libLLVM/llvm/AsmParser/Parser.h
 include/libLLVM/llvm/AsmParser/SlotMapping.h
 include/libLLVM/llvm/Bitcode/BitCodes.h
+include/libLLVM/llvm/Bitcode/BitcodeReader.h
+include/libLLVM/llvm/Bitcode/BitcodeWriter.h
 include/libLLVM/llvm/Bitcode/BitcodeWriterPass.h
 include/libLLVM/llvm/Bitcode/BitstreamReader.h
 include/libLLVM/llvm/Bitcode/BitstreamWriter.h
 include/libLLVM/llvm/Bitcode/LLVMBitCodes.h
-include/libLLVM/llvm/Bitcode/ReaderWriter.h
 include/libLLVM/llvm/CodeGen/Analysis.h
 include/libLLVM/llvm/CodeGen/AsmPrinter.h
 include/libLLVM/llvm/CodeGen/AtomicExpandUtils.h
@@ -202,11 +212,17 @@ include/libLLVM/llvm/CodeGen/GCs.h
 include/libLLVM/llvm/CodeGen/GlobalISel/CallLowering.h
 include/libLLVM/llvm/CodeGen/GlobalISel/GISelAccessor.h
 include/libLLVM/llvm/CodeGen/GlobalISel/IRTranslator.h
+include/libLLVM/llvm/CodeGen/GlobalISel/InstructionSelect.h
+include/libLLVM/llvm/CodeGen/GlobalISel/InstructionSelector.h
+include/libLLVM/llvm/CodeGen/GlobalISel/Legalizer.h
+include/libLLVM/llvm/CodeGen/GlobalISel/LegalizerHelper.h
+include/libLLVM/llvm/CodeGen/GlobalISel/LegalizerInfo.h
 include/libLLVM/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
 include/libLLVM/llvm/CodeGen/GlobalISel/RegBankSelect.h
 include/libLLVM/llvm/CodeGen/GlobalISel/RegisterBank.h
 include/libLLVM/llvm/CodeGen/GlobalISel/RegisterBankInfo.h
 include/libLLVM/llvm/CodeGen/GlobalISel/Types.h
+include/libLLVM/llvm/CodeGen/GlobalISel/Utils.h
 include/libLLVM/llvm/CodeGen/ISDOpcodes.h
 include/libLLVM/llvm/CodeGen/IntrinsicLowering.h
 include/libLLVM/llvm/CodeGen/LatencyPriorityQueue.h
@@ -221,6 +237,7 @@ include/libLLVM/llvm/CodeGen/LiveRangeEd
 include/libLLVM/llvm/CodeGen/LiveRegMatrix.h
 include/libLLVM/llvm/CodeGen/LiveStackAnalysis.h
 include/libLLVM/llvm/CodeGen/LiveVariables.h
+include/libLLVM/llvm/CodeGen/LowLevelType.h
 include/libLLVM/llvm/CodeGen/MIRParser/MIRParser.h
 include/libLLVM/llvm/CodeGen/MIRYamlMapping.h
 include/libLLVM/llvm/CodeGen/MachORelocation.h
@@ -233,7 +250,6 @@ include/libLLVM/llvm/CodeGen/MachineDomi
 include/libLLVM/llvm/CodeGen/MachineDominators.h
 include/libLLVM/llvm/CodeGen/MachineFrameInfo.h
 include/libLLVM/llvm/CodeGen/MachineFunction.h
-include/libLLVM/llvm/CodeGen/MachineFunctionAnalysis.h
 include/libLLVM/llvm/CodeGen/MachineFunctionInitializer.h
 include/libLLVM/llvm/CodeGen/MachineFunctionPass.h
 include/libLLVM/llvm/CodeGen/MachineInstr.h
@@ -299,42 +315,47 @@ include/libLLVM/llvm/Config/AsmParsers.d
 include/libLLVM/llvm/Config/AsmPrinters.def
 include/libLLVM/llvm/Config/Disassemblers.def
 include/libLLVM/llvm/Config/Targets.def
+include/libLLVM/llvm/Config/abi-breaking.h
 include/libLLVM/llvm/Config/llvm-config.h
-include/libLLVM/llvm/DebugInfo/CodeView/ByteStream.h
+include/libLLVM/llvm/DebugInfo/CodeView/CVDebugRecord.h
 include/libLLVM/llvm/DebugInfo/CodeView/CVRecord.h
 include/libLLVM/llvm/DebugInfo/CodeView/CVSymbolTypes.def
 include/libLLVM/llvm/DebugInfo/CodeView/CVSymbolVisitor.h
+include/libLLVM/llvm/DebugInfo/CodeView/CVTypeDumper.h
 include/libLLVM/llvm/DebugInfo/CodeView/CVTypeVisitor.h
 include/libLLVM/llvm/DebugInfo/CodeView/CodeView.h
 include/libLLVM/llvm/DebugInfo/CodeView/CodeViewError.h
-include/libLLVM/llvm/DebugInfo/CodeView/CodeViewOStream.h
+include/libLLVM/llvm/DebugInfo/CodeView/CodeViewRecordIO.h
 include/libLLVM/llvm/DebugInfo/CodeView/EnumTables.h
-include/libLLVM/llvm/DebugInfo/CodeView/FieldListRecordBuilder.h
 include/libLLVM/llvm/DebugInfo/CodeView/FunctionId.h
 include/libLLVM/llvm/DebugInfo/CodeView/Line.h
-include/libLLVM/llvm/DebugInfo/CodeView/ListRecordBuilder.h
-include/libLLVM/llvm/DebugInfo/CodeView/MemoryTypeTableBuilder.h
-include/libLLVM/llvm/DebugInfo/CodeView/MethodListRecordBuilder.h
 include/libLLVM/llvm/DebugInfo/CodeView/ModuleSubstream.h
 include/libLLVM/llvm/DebugInfo/CodeView/ModuleSubstreamVisitor.h
 include/libLLVM/llvm/DebugInfo/CodeView/RecordSerialization.h
-include/libLLVM/llvm/DebugInfo/CodeView/StreamArray.h
-include/libLLVM/llvm/DebugInfo/CodeView/StreamInterface.h
-include/libLLVM/llvm/DebugInfo/CodeView/StreamReader.h
-include/libLLVM/llvm/DebugInfo/CodeView/StreamRef.h
-include/libLLVM/llvm/DebugInfo/CodeView/StreamWriter.h
+include/libLLVM/llvm/DebugInfo/CodeView/SymbolDeserializer.h
 include/libLLVM/llvm/DebugInfo/CodeView/SymbolDumpDelegate.h
 include/libLLVM/llvm/DebugInfo/CodeView/SymbolDumper.h
 include/libLLVM/llvm/DebugInfo/CodeView/SymbolRecord.h
+include/libLLVM/llvm/DebugInfo/CodeView/SymbolRecordMapping.h
+include/libLLVM/llvm/DebugInfo/CodeView/SymbolSerializer.h
+include/libLLVM/llvm/DebugInfo/CodeView/SymbolVisitorCallbackPipeline.h
+include/libLLVM/llvm/DebugInfo/CodeView/SymbolVisitorCallbacks.h
 include/libLLVM/llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeDumper.h
+include/libLLVM/llvm/DebugInfo/CodeView/TypeDatabase.h
+include/libLLVM/llvm/DebugInfo/CodeView/TypeDatabaseVisitor.h
+include/libLLVM/llvm/DebugInfo/CodeView/TypeDeserializer.h
+include/libLLVM/llvm/DebugInfo/CodeView/TypeDumpVisitor.h
+include/libLLVM/llvm/DebugInfo/CodeView/TypeDumperBase.h
 include/libLLVM/llvm/DebugInfo/CodeView/TypeIndex.h
 include/libLLVM/llvm/DebugInfo/CodeView/TypeRecord.h
 include/libLLVM/llvm/DebugInfo/CodeView/TypeRecordBuilder.h
+include/libLLVM/llvm/DebugInfo/CodeView/TypeRecordMapping.h
 include/libLLVM/llvm/DebugInfo/CodeView/TypeRecords.def
+include/libLLVM/llvm/DebugInfo/CodeView/TypeSerializer.h
 include/libLLVM/llvm/DebugInfo/CodeView/TypeStreamMerger.h
 include/libLLVM/llvm/DebugInfo/CodeView/TypeSymbolEmitter.h
 include/libLLVM/llvm/DebugInfo/CodeView/TypeTableBuilder.h
+include/libLLVM/llvm/DebugInfo/CodeView/TypeVisitorCallbackPipeline.h
 include/libLLVM/llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h
 include/libLLVM/llvm/DebugInfo/DIContext.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h
@@ -349,13 +370,29 @@ include/libLLVM/llvm/DebugInfo/DWARF/DWA
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugLine.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugLoc.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugMacro.h
+include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugPubTable.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugRangeList.h
+include/libLLVM/llvm/DebugInfo/DWARF/DWARFDie.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFFormValue.h
+include/libLLVM/llvm/DebugInfo/DWARF/DWARFGdbIndex.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFRelocMap.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFSection.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFTypeUnit.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFUnit.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFUnitIndex.h
+include/libLLVM/llvm/DebugInfo/MSF/ByteStream.h
+include/libLLVM/llvm/DebugInfo/MSF/IMSFFile.h
+include/libLLVM/llvm/DebugInfo/MSF/MSFBuilder.h
+include/libLLVM/llvm/DebugInfo/MSF/MSFCommon.h
+include/libLLVM/llvm/DebugInfo/MSF/MSFError.h
+include/libLLVM/llvm/DebugInfo/MSF/MSFStreamLayout.h
+include/libLLVM/llvm/DebugInfo/MSF/MappedBlockStream.h
+include/libLLVM/llvm/DebugInfo/MSF/SequencedItemStream.h
+include/libLLVM/llvm/DebugInfo/MSF/StreamArray.h
+include/libLLVM/llvm/DebugInfo/MSF/StreamInterface.h
+include/libLLVM/llvm/DebugInfo/MSF/StreamReader.h
+include/libLLVM/llvm/DebugInfo/MSF/StreamRef.h
+include/libLLVM/llvm/DebugInfo/MSF/StreamWriter.h
 include/libLLVM/llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h
 include/libLLVM/llvm/DebugInfo/PDB/DIA/DIADataStream.h
 include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAEnumDebugStreams.h
@@ -414,20 +451,14 @@ include/libLLVM/llvm/DebugInfo/PDB/PDBSy
 include/libLLVM/llvm/DebugInfo/PDB/PDBTypes.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/DbiStream.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/DirectoryStreamData.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/EnumTables.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/GlobalsStream.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/Hash.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/IPDBFile.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/IPDBStreamData.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/ISectionContribVisitor.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/IndexedStreamData.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/InfoStream.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/MappedBlockStream.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/ModInfo.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/ModStream.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/MsfBuilder.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/MsfCommon.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/NameHashTable.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/NameMap.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/NameMapBuilder.h
@@ -439,15 +470,18 @@ include/libLLVM/llvm/DebugInfo/PDB/Raw/R
 include/libLLVM/llvm/DebugInfo/PDB/Raw/RawSession.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/RawTypes.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/SymbolStream.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/TpiHashing.h
 include/libLLVM/llvm/DebugInfo/PDB/Raw/TpiStream.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/TpiStreamBuilder.h
 include/libLLVM/llvm/DebugInfo/Symbolize/DIPrinter.h
 include/libLLVM/llvm/DebugInfo/Symbolize/SymbolizableModule.h
 include/libLLVM/llvm/DebugInfo/Symbolize/Symbolize.h
+include/libLLVM/llvm/Demangle/Demangle.h
 include/libLLVM/llvm/ExecutionEngine/ExecutionEngine.h
 include/libLLVM/llvm/ExecutionEngine/GenericValue.h
 include/libLLVM/llvm/ExecutionEngine/Interpreter.h
 include/libLLVM/llvm/ExecutionEngine/JITEventListener.h
-include/libLLVM/llvm/ExecutionEngine/JITSymbolFlags.h
+include/libLLVM/llvm/ExecutionEngine/JITSymbol.h
 include/libLLVM/llvm/ExecutionEngine/MCJIT.h
 include/libLLVM/llvm/ExecutionEngine/OProfileWrapper.h
 include/libLLVM/llvm/ExecutionEngine/ObjectCache.h
@@ -459,10 +493,8 @@ include/libLLVM/llvm/ExecutionEngine/Orc
 include/libLLVM/llvm/ExecutionEngine/Orc/IRCompileLayer.h
 include/libLLVM/llvm/ExecutionEngine/Orc/IRTransformLayer.h
 include/libLLVM/llvm/ExecutionEngine/Orc/IndirectionUtils.h
-include/libLLVM/llvm/ExecutionEngine/Orc/JITSymbol.h
 include/libLLVM/llvm/ExecutionEngine/Orc/LambdaResolver.h
 include/libLLVM/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h
-include/libLLVM/llvm/ExecutionEngine/Orc/LogicalDylib.h
 include/libLLVM/llvm/ExecutionEngine/Orc/NullResolver.h
 include/libLLVM/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h
 include/libLLVM/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h
@@ -471,8 +503,9 @@ include/libLLVM/llvm/ExecutionEngine/Orc
 include/libLLVM/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
 include/libLLVM/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h
 include/libLLVM/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
-include/libLLVM/llvm/ExecutionEngine/Orc/RPCChannel.h
+include/libLLVM/llvm/ExecutionEngine/Orc/RPCSerialization.h
 include/libLLVM/llvm/ExecutionEngine/Orc/RPCUtils.h
+include/libLLVM/llvm/ExecutionEngine/Orc/RawByteChannel.h
 include/libLLVM/llvm/ExecutionEngine/OrcMCJITReplacement.h
 include/libLLVM/llvm/ExecutionEngine/RTDyldMemoryManager.h
 include/libLLVM/llvm/ExecutionEngine/RuntimeDyld.h
@@ -480,8 +513,8 @@ include/libLLVM/llvm/ExecutionEngine/Run
 include/libLLVM/llvm/ExecutionEngine/SectionMemoryManager.h
 include/libLLVM/llvm/IR/Argument.h
 include/libLLVM/llvm/IR/AssemblyAnnotationWriter.h
+include/libLLVM/llvm/IR/Attributes.gen
 include/libLLVM/llvm/IR/Attributes.h
-include/libLLVM/llvm/IR/Attributes.inc
 include/libLLVM/llvm/IR/Attributes.td
 include/libLLVM/llvm/IR/AutoUpgrade.h
 include/libLLVM/llvm/IR/BasicBlock.h
@@ -548,6 +581,7 @@ include/libLLVM/llvm/IR/Metadata.h
 include/libLLVM/llvm/IR/Module.h
 include/libLLVM/llvm/IR/ModuleSlotTracker.h
 include/libLLVM/llvm/IR/ModuleSummaryIndex.h
+include/libLLVM/llvm/IR/ModuleSummaryIndexYAML.h
 include/libLLVM/llvm/IR/NoFolder.h
 include/libLLVM/llvm/IR/OperandTraits.h
 include/libLLVM/llvm/IR/Operator.h
@@ -574,7 +608,10 @@ include/libLLVM/llvm/IR/ValueSymbolTable
 include/libLLVM/llvm/IR/Verifier.h
 include/libLLVM/llvm/IRReader/IRReader.h
 include/libLLVM/llvm/InitializePasses.h
+include/libLLVM/llvm/LTO/Caching.h
+include/libLLVM/llvm/LTO/Config.h
 include/libLLVM/llvm/LTO/LTO.h
+include/libLLVM/llvm/LTO/LTOBackend.h
 include/libLLVM/llvm/LTO/legacy/LTOCodeGenerator.h
 include/libLLVM/llvm/LTO/legacy/LTOModule.h
 include/libLLVM/llvm/LTO/legacy/ThinLTOCodeGenerator.h
@@ -586,6 +623,7 @@ include/libLLVM/llvm/LinkAllPasses.h
 include/libLLVM/llvm/Linker/IRMover.h
 include/libLLVM/llvm/Linker/Linker.h
 include/libLLVM/llvm/MC/ConstantPools.h
+include/libLLVM/llvm/MC/LaneBitmask.h
 include/libLLVM/llvm/MC/MCAsmBackend.h
 include/libLLVM/llvm/MC/MCAsmInfo.h
 include/libLLVM/llvm/MC/MCAsmInfoCOFF.h
@@ -658,6 +696,7 @@ include/libLLVM/llvm/Object/ArchiveWrite
 include/libLLVM/llvm/Object/Binary.h
 include/libLLVM/llvm/Object/COFF.h
 include/libLLVM/llvm/Object/COFFImportFile.h
+include/libLLVM/llvm/Object/Decompressor.h
 include/libLLVM/llvm/Object/ELF.h
 include/libLLVM/llvm/Object/ELFObjectFile.h
 include/libLLVM/llvm/Object/ELFTypes.h
@@ -666,12 +705,15 @@ include/libLLVM/llvm/Object/IRObjectFile
 include/libLLVM/llvm/Object/MachO.h
 include/libLLVM/llvm/Object/MachOUniversal.h
 include/libLLVM/llvm/Object/ModuleSummaryIndexObjectFile.h
+include/libLLVM/llvm/Object/ModuleSymbolTable.h
 include/libLLVM/llvm/Object/ObjectFile.h
 include/libLLVM/llvm/Object/RelocVisitor.h
 include/libLLVM/llvm/Object/StackMapParser.h
 include/libLLVM/llvm/Object/SymbolSize.h
 include/libLLVM/llvm/Object/SymbolicFile.h
+include/libLLVM/llvm/Object/Wasm.h
 include/libLLVM/llvm/ObjectYAML/COFFYAML.h
+include/libLLVM/llvm/ObjectYAML/DWARFYAML.h
 include/libLLVM/llvm/ObjectYAML/ELFYAML.h
 include/libLLVM/llvm/ObjectYAML/MachOYAML.h
 include/libLLVM/llvm/ObjectYAML/ObjectYAML.h
@@ -717,6 +759,7 @@ include/libLLVM/llvm/Support/COM.h
 include/libLLVM/llvm/Support/CachePruning.h
 include/libLLVM/llvm/Support/Capacity.h
 include/libLLVM/llvm/Support/Casting.h
+include/libLLVM/llvm/Support/Chrono.h
 include/libLLVM/llvm/Support/CodeGen.h
 include/libLLVM/llvm/Support/CodeGenCWrappers.h
 include/libLLVM/llvm/Support/CommandLine.h
@@ -726,7 +769,6 @@ include/libLLVM/llvm/Support/ConvertUTF.
 include/libLLVM/llvm/Support/CrashRecoveryContext.h
 include/libLLVM/llvm/Support/DOTGraphTraits.h
 include/libLLVM/llvm/Support/DataExtractor.h
-include/libLLVM/llvm/Support/DataStream.h
 include/libLLVM/llvm/Support/DataTypes.h
 include/libLLVM/llvm/Support/Debug.h
 include/libLLVM/llvm/Support/Dwarf.def
@@ -743,6 +785,7 @@ include/libLLVM/llvm/Support/ELFRelocs/L
 include/libLLVM/llvm/Support/ELFRelocs/Mips.def
 include/libLLVM/llvm/Support/ELFRelocs/PowerPC.def
 include/libLLVM/llvm/Support/ELFRelocs/PowerPC64.def
+include/libLLVM/llvm/Support/ELFRelocs/RISCV.def
 include/libLLVM/llvm/Support/ELFRelocs/Sparc.def
 include/libLLVM/llvm/Support/ELFRelocs/SystemZ.def
 include/libLLVM/llvm/Support/ELFRelocs/WebAssembly.def
@@ -759,10 +802,16 @@ include/libLLVM/llvm/Support/FileOutputB
 include/libLLVM/llvm/Support/FileSystem.h
 include/libLLVM/llvm/Support/FileUtilities.h
 include/libLLVM/llvm/Support/Format.h
+include/libLLVM/llvm/Support/FormatAdapters.h
+include/libLLVM/llvm/Support/FormatCommon.h
+include/libLLVM/llvm/Support/FormatProviders.h
+include/libLLVM/llvm/Support/FormatVariadic.h
+include/libLLVM/llvm/Support/FormatVariadicDetails.h
 include/libLLVM/llvm/Support/FormattedStream.h
 include/libLLVM/llvm/Support/GCOV.h
 include/libLLVM/llvm/Support/GenericDomTree.h
 include/libLLVM/llvm/Support/GenericDomTreeConstruction.h
+include/libLLVM/llvm/Support/GlobPattern.h
 include/libLLVM/llvm/Support/GraphWriter.h
 include/libLLVM/llvm/Support/Host.h
 include/libLLVM/llvm/Support/JamCRC.h
@@ -778,10 +827,10 @@ include/libLLVM/llvm/Support/ManagedStat
 include/libLLVM/llvm/Support/MathExtras.h
 include/libLLVM/llvm/Support/Memory.h
 include/libLLVM/llvm/Support/MemoryBuffer.h
-include/libLLVM/llvm/Support/MemoryObject.h
 include/libLLVM/llvm/Support/MipsABIFlags.h
 include/libLLVM/llvm/Support/Mutex.h
 include/libLLVM/llvm/Support/MutexGuard.h
+include/libLLVM/llvm/Support/NativeFormatting.h
 include/libLLVM/llvm/Support/OnDiskHashTable.h
 include/libLLVM/llvm/Support/Options.h
 include/libLLVM/llvm/Support/Path.h
@@ -806,26 +855,27 @@ include/libLLVM/llvm/Support/Signals.h
 include/libLLVM/llvm/Support/Solaris.h
 include/libLLVM/llvm/Support/SourceMgr.h
 include/libLLVM/llvm/Support/SpecialCaseList.h
-include/libLLVM/llvm/Support/StreamingMemoryObject.h
 include/libLLVM/llvm/Support/StringPool.h
 include/libLLVM/llvm/Support/StringSaver.h
 include/libLLVM/llvm/Support/SwapByteOrder.h
 include/libLLVM/llvm/Support/SystemUtils.h
+include/libLLVM/llvm/Support/TarWriter.h
 include/libLLVM/llvm/Support/TargetParser.h
 include/libLLVM/llvm/Support/TargetRegistry.h
 include/libLLVM/llvm/Support/TargetSelect.h
 include/libLLVM/llvm/Support/ThreadLocal.h
 include/libLLVM/llvm/Support/ThreadPool.h
 include/libLLVM/llvm/Support/Threading.h
-include/libLLVM/llvm/Support/TimeValue.h
 include/libLLVM/llvm/Support/Timer.h
 include/libLLVM/llvm/Support/ToolOutputFile.h
 include/libLLVM/llvm/Support/TrailingObjects.h
+include/libLLVM/llvm/Support/TrigramIndex.h
 include/libLLVM/llvm/Support/TypeName.h
 include/libLLVM/llvm/Support/Unicode.h
 include/libLLVM/llvm/Support/UnicodeCharRanges.h
 include/libLLVM/llvm/Support/UniqueLock.h
 include/libLLVM/llvm/Support/Valgrind.h
+include/libLLVM/llvm/Support/Wasm.h
 include/libLLVM/llvm/Support/Watchdog.h
 include/libLLVM/llvm/Support/Win64EH.h
 include/libLLVM/llvm/Support/WindowsError.h
@@ -837,6 +887,7 @@ include/libLLVM/llvm/Support/raw_ostream
 include/libLLVM/llvm/Support/raw_sha1_ostream.h
 include/libLLVM/llvm/Support/thread.h
 include/libLLVM/llvm/Support/type_traits.h
+include/libLLVM/llvm/Support/xxhash.h
 include/libLLVM/llvm/TableGen/Error.h
 include/libLLVM/llvm/TableGen/Main.h
 include/libLLVM/llvm/TableGen/Record.h
@@ -851,6 +902,7 @@ include/libLLVM/llvm/Target/Target.td
 include/libLLVM/llvm/Target/TargetCallingConv.h
 include/libLLVM/llvm/Target/TargetCallingConv.td
 include/libLLVM/llvm/Target/TargetFrameLowering.h
+include/libLLVM/llvm/Target/TargetGlobalISel.td
 include/libLLVM/llvm/Target/TargetInstrInfo.h
 include/libLLVM/llvm/Target/TargetIntrinsicInfo.h
 include/libLLVM/llvm/Target/TargetItinerary.td
@@ -860,13 +912,14 @@ include/libLLVM/llvm/Target/TargetMachin
 include/libLLVM/llvm/Target/TargetOpcodes.def
 include/libLLVM/llvm/Target/TargetOpcodes.h
 include/libLLVM/llvm/Target/TargetOptions.h
-include/libLLVM/llvm/Target/TargetRecip.h
 include/libLLVM/llvm/Target/TargetRegisterInfo.h
 include/libLLVM/llvm/Target/TargetSchedule.td
 include/libLLVM/llvm/Target/TargetSelectionDAG.td
 include/libLLVM/llvm/Target/TargetSubtargetInfo.h
+include/libLLVM/llvm/Transforms/Coroutines.h
 include/libLLVM/llvm/Transforms/GCOVProfiler.h
 include/libLLVM/llvm/Transforms/IPO.h
+include/libLLVM/llvm/Transforms/IPO/AlwaysInliner.h
 include/libLLVM/llvm/Transforms/IPO/ConstantMerge.h
 include/libLLVM/llvm/Transforms/IPO/CrossDSOCFI.h
 include/libLLVM/llvm/Transforms/IPO/DeadArgumentElimination.h
@@ -876,8 +929,9 @@ include/libLLVM/llvm/Transforms/IPO/Func
 include/libLLVM/llvm/Transforms/IPO/FunctionImport.h
 include/libLLVM/llvm/Transforms/IPO/GlobalDCE.h
 include/libLLVM/llvm/Transforms/IPO/GlobalOpt.h
+include/libLLVM/llvm/Transforms/IPO/GlobalSplit.h
 include/libLLVM/llvm/Transforms/IPO/InferFunctionAttrs.h
-include/libLLVM/llvm/Transforms/IPO/InlinerPass.h
+include/libLLVM/llvm/Transforms/IPO/Inliner.h
 include/libLLVM/llvm/Transforms/IPO/Internalize.h
 include/libLLVM/llvm/Transforms/IPO/LowerTypeTests.h
 include/libLLVM/llvm/Transforms/IPO/PartialInlining.h
@@ -903,48 +957,66 @@ include/libLLVM/llvm/Transforms/Scalar/D
 include/libLLVM/llvm/Transforms/Scalar/EarlyCSE.h
 include/libLLVM/llvm/Transforms/Scalar/Float2Int.h
 include/libLLVM/llvm/Transforms/Scalar/GVN.h
+include/libLLVM/llvm/Transforms/Scalar/GVNExpression.h
 include/libLLVM/llvm/Transforms/Scalar/GuardWidening.h
+include/libLLVM/llvm/Transforms/Scalar/IVUsersPrinter.h
 include/libLLVM/llvm/Transforms/Scalar/IndVarSimplify.h
 include/libLLVM/llvm/Transforms/Scalar/JumpThreading.h
 include/libLLVM/llvm/Transforms/Scalar/LICM.h
+include/libLLVM/llvm/Transforms/Scalar/LoopAccessAnalysisPrinter.h
+include/libLLVM/llvm/Transforms/Scalar/LoopDataPrefetch.h
 include/libLLVM/llvm/Transforms/Scalar/LoopDeletion.h
 include/libLLVM/llvm/Transforms/Scalar/LoopDistribute.h
 include/libLLVM/llvm/Transforms/Scalar/LoopIdiomRecognize.h
 include/libLLVM/llvm/Transforms/Scalar/LoopInstSimplify.h
+include/libLLVM/llvm/Transforms/Scalar/LoopPassManager.h
 include/libLLVM/llvm/Transforms/Scalar/LoopRotation.h
 include/libLLVM/llvm/Transforms/Scalar/LoopSimplifyCFG.h
+include/libLLVM/llvm/Transforms/Scalar/LoopStrengthReduce.h
+include/libLLVM/llvm/Transforms/Scalar/LoopUnrollPass.h
 include/libLLVM/llvm/Transforms/Scalar/LowerAtomic.h
 include/libLLVM/llvm/Transforms/Scalar/LowerExpectIntrinsic.h
+include/libLLVM/llvm/Transforms/Scalar/LowerGuardIntrinsic.h
 include/libLLVM/llvm/Transforms/Scalar/MemCpyOptimizer.h
 include/libLLVM/llvm/Transforms/Scalar/MergedLoadStoreMotion.h
+include/libLLVM/llvm/Transforms/Scalar/NaryReassociate.h
+include/libLLVM/llvm/Transforms/Scalar/NewGVN.h
 include/libLLVM/llvm/Transforms/Scalar/PartiallyInlineLibCalls.h
 include/libLLVM/llvm/Transforms/Scalar/Reassociate.h
 include/libLLVM/llvm/Transforms/Scalar/SCCP.h
 include/libLLVM/llvm/Transforms/Scalar/SROA.h
 include/libLLVM/llvm/Transforms/Scalar/SimplifyCFG.h
 include/libLLVM/llvm/Transforms/Scalar/Sink.h
+include/libLLVM/llvm/Transforms/Scalar/SpeculativeExecution.h
 include/libLLVM/llvm/Transforms/Scalar/TailRecursionElimination.h
 include/libLLVM/llvm/Transforms/Utils/ASanStackFrameLayout.h
 include/libLLVM/llvm/Transforms/Utils/AddDiscriminators.h
 include/libLLVM/llvm/Transforms/Utils/BasicBlockUtils.h
+include/libLLVM/llvm/Transforms/Utils/BreakCriticalEdges.h
 include/libLLVM/llvm/Transforms/Utils/BuildLibCalls.h
 include/libLLVM/llvm/Transforms/Utils/BypassSlowDivision.h
 include/libLLVM/llvm/Transforms/Utils/Cloning.h
 include/libLLVM/llvm/Transforms/Utils/CmpInstAnalysis.h
 include/libLLVM/llvm/Transforms/Utils/CodeExtractor.h
 include/libLLVM/llvm/Transforms/Utils/CtorUtils.h
+include/libLLVM/llvm/Transforms/Utils/EscapeEnumerator.h
 include/libLLVM/llvm/Transforms/Utils/Evaluator.h
+include/libLLVM/llvm/Transforms/Utils/FunctionComparator.h
 include/libLLVM/llvm/Transforms/Utils/FunctionImportUtils.h
 include/libLLVM/llvm/Transforms/Utils/GlobalStatus.h
+include/libLLVM/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h
 include/libLLVM/llvm/Transforms/Utils/IntegerDivision.h
 include/libLLVM/llvm/Transforms/Utils/LCSSA.h
+include/libLLVM/llvm/Transforms/Utils/LibCallsShrinkWrap.h
 include/libLLVM/llvm/Transforms/Utils/Local.h
 include/libLLVM/llvm/Transforms/Utils/LoopSimplify.h
 include/libLLVM/llvm/Transforms/Utils/LoopUtils.h
 include/libLLVM/llvm/Transforms/Utils/LoopVersioning.h
+include/libLLVM/llvm/Transforms/Utils/LowerInvoke.h
 include/libLLVM/llvm/Transforms/Utils/Mem2Reg.h
 include/libLLVM/llvm/Transforms/Utils/MemorySSA.h
 include/libLLVM/llvm/Transforms/Utils/ModuleUtils.h
+include/libLLVM/llvm/Transforms/Utils/NameAnonGlobals.h
 include/libLLVM/llvm/Transforms/Utils/PromoteMemToReg.h
 include/libLLVM/llvm/Transforms/Utils/SSAUpdater.h
 include/libLLVM/llvm/Transforms/Utils/SSAUpdaterImpl.h
@@ -962,13 +1034,25 @@ include/libLLVM/llvm/Transforms/Vectoriz
 include/libLLVM/llvm/Transforms/Vectorize/SLPVectorizer.h
 ${PLIST.notdylib}lib/libLLVM/libLLVM-${LLVM_MAJOR_MINOR}.${SOEXT}
 ${PLIST.notdylib}lib/libLLVM/libLLVM-${PKGVERSION}.${SOEXT}
+include/libLLVM/llvm/XRay/Trace.h
+include/libLLVM/llvm/XRay/XRayRecord.h
+include/libLLVM/llvm/XRay/YAMLXRayRecord.h
 lib/libLLVM/libLLVM.${SOEXT}
+libexec/libLLVM/llvm-cat
 libexec/libLLVM/llvm-config
+libexec/libLLVM/llvm-cxxfilt
+libexec/libLLVM/llvm-lto2
+libexec/libLLVM/llvm-modextract
+libexec/libLLVM/llvm-opt-report
+libexec/libLLVM/llvm-strings
+libexec/libLLVM/llvm-xray
 share/libLLVM/cmake/AddLLVM.cmake
 share/libLLVM/cmake/AddLLVMDefinitions.cmake
 share/libLLVM/cmake/AddOCaml.cmake
 share/libLLVM/cmake/AddSphinxTarget.cmake
+share/libLLVM/cmake/CheckAtomic.cmake
 share/libLLVM/cmake/CheckCompilerVersion.cmake
+share/libLLVM/cmake/CheckLinkerFlag.cmake
 share/libLLVM/cmake/ChooseMSVCCRT.cmake
 share/libLLVM/cmake/CrossCompile.cmake
 share/libLLVM/cmake/DetermineGCCCompatible.cmake
Index: pkgsrc/lang/libLLVM/distinfo
diff -u pkgsrc/lang/libLLVM/distinfo:1.8 pkgsrc/lang/libLLVM/distinfo:1.9
--- pkgsrc/lang/libLLVM/distinfo:1.8    Thu Mar  9 12:45:56 2017
+++ pkgsrc/lang/libLLVM/distinfo        Fri Mar 17 22:38:18 2017
@@ -1,15 +1,15 @@
-$NetBSD: distinfo,v 1.8 2017/03/09 12:45:56 jperkin Exp $
+$NetBSD: distinfo,v 1.9 2017/03/17 22:38:18 adam Exp $
 
-SHA1 (llvm-3.9.1.src.tar.xz) = ce801cf456b8dacd565ce8df8288b4d90e7317ff
-RMD160 (llvm-3.9.1.src.tar.xz) = b0a3c68cfec83a2b4dad6922316b71c0dc25c40a
-SHA512 (llvm-3.9.1.src.tar.xz) = 50cbe8ee911080f586e77861c442348701bd02e2de0c090c54c34f82ac275ecfcd712af0f41e387c33b4a6057778a4258a27554292fe68ab4af3fd9dd6d90683
-Size (llvm-3.9.1.src.tar.xz) = 18130436 bytes
+SHA1 (llvm-4.0.0.src.tar.xz) = aee4524e2407f9fe5afc6f70c753180b907011d0
+RMD160 (llvm-4.0.0.src.tar.xz) = 468ae2502ba523b35c5e8340724ddaa50b31ccb5
+SHA512 (llvm-4.0.0.src.tar.xz) = cf681f0626ef6d568d951cdc3e143471a1d7715a0ba11e52aa273cf5d8d421e1357ef2645cc85879eaefcd577e99e74d07b01566825b3d0461171ef2cbfc7704
+Size (llvm-4.0.0.src.tar.xz) = 21016340 bytes
 SHA1 (patch-CMakeLists.txt) = 770e0bc00a987430b6c6be7e4141f33e5be54a8f
-SHA1 (patch-cmake_modules_AddLLVM.cmake) = 1fd7598a55eede8b1ef50556ab8d7277fe5b2f43
-SHA1 (patch-cmake_modules_CMakeLists.txt) = bf31e9d3914e2041a7d435390b63ad67282b272f
+SHA1 (patch-cmake_modules_AddLLVM.cmake) = d9d9b8f9d33ddc3ef8ef55832aeed038500b6de8
+SHA1 (patch-cmake_modules_CMakeLists.txt) = 69514dafb36794eb6923a39ef219bdc7b09c37ee
 SHA1 (patch-cmake_modules_HandleLLVMOptions.cmake) = 271e6f5a8cebf8162c4e3b758e96f451b434269b
-SHA1 (patch-cmake_modules_TableGen.cmake) = d548208577f45fbb6c8f7b43548c399cc63c7887
-SHA1 (patch-include_llvm_Support_Host.h) = ad6ac520f15bba96ab887c962fb717e22aaee7bf
+SHA1 (patch-cmake_modules_TableGen.cmake) = 105aece4014c473a21ec6b427893239bbe881f89
+SHA1 (patch-include_llvm_Support_Host.h) = a4e19a72714084b211b0182c04ccc51bd606e150
 SHA1 (patch-lib_Support_Unix_Program.inc) = 49f09e05858243ca57f14b1fdb2fec49c935dfeb
-SHA1 (patch-tools_llvm-config_llvm-config.cpp) = 44835bfcd2bddc16e0b93628fafb627889091f85
-SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 8faddae24e937ce0b60a7b6a69370c56b9ff7fe3
+SHA1 (patch-tools_llvm-config_llvm-config.cpp) = 4988cd94074cb08dbb5a3606ea2376b42ae8c75f
+SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 18e6ec7b8895e55ecdf93c9d4781e92052a6fcb1

Index: pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake
diff -u pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake:1.3 pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake:1.4
--- pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake:1.3   Mon Nov 14 20:15:33 2016
+++ pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake       Fri Mar 17 22:38:18 2017
@@ -1,60 +1,53 @@
-$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.3 2016/11/14 20:15:33 ryoon Exp $
+$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.4 2017/03/17 22:38:18 adam Exp $
 
 Disable library install rules. Handled manually.
 Make sure llvm-config goes in libexec/libLLVM to avoid conflict.
 Don't use non-portable -z discard-unused on SunOS.
 
---- cmake/modules/AddLLVM.cmake.orig   2016-07-10 02:43:47.000000000 +0000
+--- cmake/modules/AddLLVM.cmake.orig   2017-01-17 21:47:58.000000000 +0000
 +++ cmake/modules/AddLLVM.cmake
-@@ -174,9 +174,9 @@ function(add_link_opts target_name)
+@@ -182,9 +182,6 @@ function(add_link_opts target_name)
          # ld64's implementation of -dead_strip breaks tools that use plugins.
          set_property(TARGET ${target_name} APPEND_STRING PROPERTY
                       LINK_FLAGS " -Wl,-dead_strip")
 -      elseif(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
 -        set_property(TARGET ${target_name} APPEND_STRING PROPERTY
 -                     LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections")
-+#      elseif(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
-+#        set_property(TARGET ${target_name} APPEND_STRING PROPERTY
-+#                     LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections")
        elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD)
          # Object files are compiled with -ffunction-data-sections.
          # Versions of bfd ld < 2.23.1 have a bug in --gc-sections that breaks
-@@ -558,10 +558,12 @@ macro(add_llvm_library name)
-         set(install_type ARCHIVE)
+@@ -591,10 +588,6 @@ macro(add_llvm_library name)
+         set_property(GLOBAL PROPERTY LLVM_HAS_EXPORTS True)
        endif()
  
-+      if (false)
-       install(TARGETS ${name}
-             EXPORT LLVMExports
-             ${install_type} DESTINATION ${install_dir}
-             COMPONENT ${name})
-+      endif()
+-      install(TARGETS ${name}
+-              ${export_to_llvmexports}
+-              ${install_type} DESTINATION ${install_dir}
+-              COMPONENT ${name})
  
        if (NOT CMAKE_CONFIGURATION_TYPES)
          add_custom_target(install-${name}
-@@ -592,10 +594,12 @@ macro(add_llvm_loadable_module name)
-         else()
-           set(dlldir "lib${LLVM_LIBDIR_SUFFIX}")
+@@ -632,10 +625,6 @@ macro(add_llvm_loadable_module name)
+           set_property(GLOBAL PROPERTY LLVM_HAS_EXPORTS True)
          endif()
-+        if (false)
-         install(TARGETS ${name}
-           EXPORT LLVMExports
-           LIBRARY DESTINATION ${dlldir}
-           ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
-+       endif()
+ 
+-        install(TARGETS ${name}
+-                ${export_to_llvmexports}
+-                LIBRARY DESTINATION ${dlldir}
+-                ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
        endif()
        set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name})
      endif()
-@@ -770,7 +774,7 @@ macro(add_llvm_tool name)
-     if( LLVM_BUILD_TOOLS )
+@@ -823,7 +812,7 @@ macro(add_llvm_tool name)
+ 
        install(TARGETS ${name}
-               EXPORT LLVMExports
+               ${export_to_llvmexports}
 -              RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}
 +              RUNTIME DESTINATION libexec/libLLVM
                COMPONENT ${name})
  
        if (NOT CMAKE_CONFIGURATION_TYPES)
-@@ -811,7 +815,7 @@ macro(add_llvm_utility name)
+@@ -864,7 +853,7 @@ macro(add_llvm_utility name)
    set_target_properties(${name} PROPERTIES FOLDER "Utils")
    if( LLVM_INSTALL_UTILS AND LLVM_BUILD_UTILS )
      install (TARGETS ${name}

Index: pkgsrc/lang/libLLVM/patches/patch-cmake_modules_CMakeLists.txt
diff -u pkgsrc/lang/libLLVM/patches/patch-cmake_modules_CMakeLists.txt:1.2 pkgsrc/lang/libLLVM/patches/patch-cmake_modules_CMakeLists.txt:1.3
--- pkgsrc/lang/libLLVM/patches/patch-cmake_modules_CMakeLists.txt:1.2  Mon Nov 14 20:15:33 2016
+++ pkgsrc/lang/libLLVM/patches/patch-cmake_modules_CMakeLists.txt      Fri Mar 17 22:38:18 2017
@@ -1,12 +1,12 @@
-$NetBSD: patch-cmake_modules_CMakeLists.txt,v 1.2 2016/11/14 20:15:33 ryoon Exp $
+$NetBSD: patch-cmake_modules_CMakeLists.txt,v 1.3 2017/03/17 22:38:18 adam Exp $
 
 Make sure cmake rules go in own directory to avoid conflicts.
 
---- cmake/modules/CMakeLists.txt.orig  2016-06-22 21:01:19.000000000 +0000
+--- cmake/modules/CMakeLists.txt.orig  2016-11-08 05:02:18.000000000 +0000
 +++ cmake/modules/CMakeLists.txt
 @@ -1,4 +1,4 @@
 -set(LLVM_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm)
 +set(LLVM_INSTALL_PACKAGE_DIR share/libLLVM/cmake)
  set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}")
  
- get_property(LLVM_EXPORTS GLOBAL PROPERTY LLVM_EXPORTS)
+ # First for users who use an installed LLVM, create the LLVMExports.cmake file.
Index: pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake
diff -u pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake:1.2 pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake:1.3
--- pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake:1.2  Mon Nov 14 20:15:33 2016
+++ pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake      Fri Mar 17 22:38:18 2017
@@ -1,15 +1,15 @@
-$NetBSD: patch-cmake_modules_TableGen.cmake,v 1.2 2016/11/14 20:15:33 ryoon Exp $
+$NetBSD: patch-cmake_modules_TableGen.cmake,v 1.3 2017/03/17 22:38:18 adam Exp $
 
 Disable install of llvm-tblgen, provided by lang/llvm.
 
---- cmake/modules/TableGen.cmake.orig  2016-06-08 21:19:26.000000000 +0000
+--- cmake/modules/TableGen.cmake.orig  2016-12-06 17:09:29.000000000 +0000
 +++ cmake/modules/TableGen.cmake
-@@ -138,7 +138,7 @@ macro(add_tablegen target project)
-       set_target_properties(${target} PROPERTIES LINK_FLAGS -Wl,--stack,16777216)
-     endif(CMAKE_SIZEOF_VOID_P MATCHES "8")
-   endif( MINGW )
+@@ -134,7 +134,7 @@ macro(add_tablegen target project)
+     endif()
+   endif()
+ 
 -  if (${project} STREQUAL LLVM AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
 +  if (${project} STREQUAL LLVM AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY AND false)
-     install(TARGETS ${target}
-             EXPORT LLVMExports
-             RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR})
+     if(${target} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
+         NOT LLVM_DISTRIBUTION_COMPONENTS)
+       set(export_to_llvmexports EXPORT LLVMExports)
Index: pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h
diff -u pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h:1.2 pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h:1.3
--- pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h:1.2   Mon Nov 14 20:15:33 2016
+++ pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h       Fri Mar 17 22:38:18 2017
@@ -1,19 +1,18 @@
-$NetBSD: patch-include_llvm_Support_Host.h,v 1.2 2016/11/14 20:15:33 ryoon Exp $
+$NetBSD: patch-include_llvm_Support_Host.h,v 1.3 2017/03/17 22:38:18 adam Exp $
 
 Fix lack of machine/endian.h on solaris
 http://permalink.gmane.org/gmane.comp.compilers.llvm.devel/63225
 
---- include/llvm/Support/Host.h.orig   2016-02-26 17:01:45.000000000 +0000
+--- include/llvm/Support/Host.h.orig   2016-10-13 17:43:20.000000000 +0000
 +++ include/llvm/Support/Host.h
-@@ -18,6 +18,20 @@
- 
- #if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__)
+@@ -20,6 +20,18 @@
  #include <endian.h>
+ #elif defined(_AIX)
+ #include <sys/machine.h>
 +#elif defined(__sun) & defined(__SVR4)
 +# ifndef BYTE_ORDER
 +# define LITTLE_ENDIAN 1234
 +# define BIG_ENDIAN 4321
-+# if defined(__sun) & defined(__SVR4)
 +# include <sys/isa_defs.h>
 +# ifdef _LITTLE_ENDIAN
 +# define BYTE_ORDER LITTLE_ENDIAN
@@ -21,7 +20,6 @@ http://permalink.gmane.org/gmane.comp.co
 +# ifdef _BIG_ENDIAN
 +# define BYTE_ORDER BIG_ENDIAN
 +# endif
-+# endif /* sun */
 +# endif /* BYTE_ORDER */
  #else
  #if !defined(BYTE_ORDER) && !defined(LLVM_ON_WIN32)
Index: pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp
diff -u pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp:1.2 pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp:1.3
--- pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp:1.2     Mon Nov 14 20:15:33 2016
+++ pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp Fri Mar 17 22:38:18 2017
@@ -1,12 +1,12 @@
-$NetBSD: patch-tools_llvm-config_llvm-config.cpp,v 1.2 2016/11/14 20:15:33 ryoon Exp $
+$NetBSD: patch-tools_llvm-config_llvm-config.cpp,v 1.3 2017/03/17 22:38:18 adam Exp $
 
-avoid conflict with lang/clang.
+Avoid conflict with lang/clang.
 Use -lLLVM-3.8 instead of -lLLVM-3.8.0 so we don't break unnecessarily
 on patch updates.
 
---- tools/llvm-config/llvm-config.cpp.orig     2016-03-14 21:39:58.000000000 +0000
+--- tools/llvm-config/llvm-config.cpp.orig     2017-01-12 19:47:38.000000000 +0000
 +++ tools/llvm-config/llvm-config.cpp
-@@ -327,9 +327,9 @@ int main(int argc, char **argv) {
+@@ -332,9 +332,9 @@ int main(int argc, char **argv) {
          ("-I" + ActiveIncludeDir + " " + "-I" + ActiveObjRoot + "/include");
    } else {
      ActivePrefix = CurrentExecPrefix;
@@ -15,10 +15,10 @@ on patch updates.
      ActiveBinDir = ActivePrefix + "/bin";
 -    ActiveLibDir = ActivePrefix + "/lib" + LLVM_LIBDIR_SUFFIX;
 +    ActiveLibDir = "@PREFIX@/lib/libLLVM";
+     ActiveCMakeDir = ActiveLibDir + "/cmake/llvm";
      ActiveIncludeOption = "-I" + ActiveIncludeDir;
    }
- 
-@@ -363,14 +363,14 @@ int main(int argc, char **argv) {
+@@ -370,14 +370,14 @@ int main(int argc, char **argv) {
      StaticDir = ActiveLibDir;
    } else if (HostTriple.isOSDarwin()) {
      SharedExt = "dylib";
@@ -35,7 +35,7 @@ on patch updates.
      StaticExt = "a";
      StaticDir = SharedDir = ActiveLibDir;
      StaticPrefix = SharedPrefix = "lib";
-@@ -383,7 +383,7 @@ int main(int argc, char **argv) {
+@@ -390,7 +390,7 @@ int main(int argc, char **argv) {
  
    bool DyLibExists = false;
    const std::string DyLibName =
@@ -44,7 +44,7 @@ on patch updates.
  
    // If LLVM_LINK_DYLIB is ON, the single shared library will be returned
    // for "--libs", etc, if they exist. This behaviour can be overridden with
-@@ -474,7 +474,7 @@ int main(int argc, char **argv) {
+@@ -491,7 +491,7 @@ int main(int argc, char **argv) {
          OS << ActiveIncludeOption << ' ' << LLVM_CXXFLAGS << '\n';
        } else if (Arg == "--ldflags") {
          OS << ((HostTriple.isWindowsMSVCEnvironment()) ? "-LIBPATH:" : "-L")
Index: pkgsrc/lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt
diff -u pkgsrc/lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt:1.2 pkgsrc/lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt:1.3
--- pkgsrc/lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt:1.2       Thu Mar  9 12:45:56 2017
+++ pkgsrc/lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt   Fri Mar 17 22:38:18 2017
@@ -1,14 +1,14 @@
-$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.2 2017/03/09 12:45:56 jperkin Exp $
+$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.3 2017/03/17 22:38:18 adam Exp $
 
 Use the Linux style linking everywhere except Darwin and SunOS.
 
 --- tools/llvm-shlib/CMakeLists.txt.orig       2016-05-26 04:35:35.000000000 +0000
 +++ tools/llvm-shlib/CMakeLists.txt
-@@ -39,11 +39,12 @@ endif()
+@@ -37,11 +37,12 @@ endif()
  add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${SOURCES})
  
  list(REMOVE_DUPLICATES LIB_NAMES)
--if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") # FIXME: It should be "GNU ld for elf"
+-if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" OR MINGW) # FIXME: It should be "GNU ld for elf"
 -  # GNU ld doesn't resolve symbols in the version script.
 -  set(LIB_NAMES -Wl,--whole-archive ${LIB_NAMES} -Wl,--no-whole-archive)
 -elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")

Index: pkgsrc/lang/libunwind/Makefile
diff -u pkgsrc/lang/libunwind/Makefile:1.4 pkgsrc/lang/libunwind/Makefile:1.5
--- pkgsrc/lang/libunwind/Makefile:1.4  Thu Jan  5 11:54:32 2017
+++ pkgsrc/lang/libunwind/Makefile      Fri Mar 17 22:38:18 2017
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2017/01/05 11:54:32 adam Exp $
+# $NetBSD: Makefile,v 1.5 2017/03/17 22:38:18 adam Exp $
 
-DISTNAME=      libunwind-3.9.1.src
+DISTNAME=      libunwind-4.0.0.src
 PKGNAME=       ${DISTNAME:S/.src//}
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
Index: pkgsrc/lang/libunwind/distinfo
diff -u pkgsrc/lang/libunwind/distinfo:1.4 pkgsrc/lang/libunwind/distinfo:1.5
--- pkgsrc/lang/libunwind/distinfo:1.4  Thu Jan  5 11:54:32 2017
+++ pkgsrc/lang/libunwind/distinfo      Fri Mar 17 22:38:18 2017
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2017/01/05 11:54:32 adam Exp $
+$NetBSD: distinfo,v 1.5 2017/03/17 22:38:18 adam Exp $
 
-SHA1 (libunwind-3.9.1.src.tar.xz) = 9291fe05c10ca43fb185ef81e10f7cc666d14b5c
-RMD160 (libunwind-3.9.1.src.tar.xz) = cdebe5ab20d00a10802270521d453c7b336d6612
-SHA512 (libunwind-3.9.1.src.tar.xz) = a80f5d0660e209f5bf709316b5df2ca63b9f0db49f5f74dfe9c9e580c654f61a15acc071a739fdb84baf5ffa9420b92498f8560331173642d80f6b74e1e2afb7
-Size (libunwind-3.9.1.src.tar.xz) = 61788 bytes
+SHA1 (libunwind-4.0.0.src.tar.xz) = 313764406612a9b57e244c1710e866c582af774e
+RMD160 (libunwind-4.0.0.src.tar.xz) = 98ca1f8e5e5c4d925889a3f0171aa738864e0876
+SHA512 (libunwind-4.0.0.src.tar.xz) = c3c934b70830ef5496c9d24c469b702eb4408abd4fe4dd9e0832230b064dc78d23b02ed2a5ce9a099dea76c3d43cbf41d59c6cda189f990d5593c7d3cd5c79dd
+Size (libunwind-4.0.0.src.tar.xz) = 63748 bytes

Index: pkgsrc/lang/libunwind/PLIST
diff -u pkgsrc/lang/libunwind/PLIST:1.1 pkgsrc/lang/libunwind/PLIST:1.2
--- pkgsrc/lang/libunwind/PLIST:1.1     Mon Mar 28 12:56:03 2016
+++ pkgsrc/lang/libunwind/PLIST Fri Mar 17 22:38:18 2017
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST,v 1.1 2016/03/28 12:56:03 kamil Exp $
+@comment $NetBSD: PLIST,v 1.2 2017/03/17 22:38:18 adam Exp $
 include/__libunwind_config.h
 include/libunwind.h
 include/mach-o/compact_unwind_encoding.h
 include/unwind.h
+lib/libunwind.a
 lib/libunwind.so
 lib/libunwind.so.1
 lib/libunwind.so.1.0

Index: pkgsrc/lang/llvm/Makefile
diff -u pkgsrc/lang/llvm/Makefile:1.14 pkgsrc/lang/llvm/Makefile:1.15
--- pkgsrc/lang/llvm/Makefile:1.14      Mon Jan 16 21:56:35 2017
+++ pkgsrc/lang/llvm/Makefile   Fri Mar 17 22:38:17 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2017/01/16 21:56:35 brook Exp $
+# $NetBSD: Makefile,v 1.15 2017/03/17 22:38:17 adam Exp $
 #
 # when updating this, please also update:
 # devel/include-what-you-use
@@ -9,7 +9,7 @@
 # lang/libLLVM
 # lang/libunwind
 
-DISTNAME=      llvm-3.9.1.src
+DISTNAME=      llvm-4.0.0.src
 PKGNAME=       ${DISTNAME:S/.src//}
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
@@ -25,7 +25,7 @@ USE_CMAKE=            yes
 GCC_REQD+=             4.8
 PYTHON_FOR_BUILD_ONLY= yes
 
-CONFIGURE_DIRS=         ${WRKDIR}/build
+CONFIGURE_DIRS=                ${WRKDIR}/build
 CMAKE_ARG_PATH=                ${WRKSRC}
 
 CMAKE_ARGS+=   -DCMAKE_BUILD_TYPE=Release
@@ -82,10 +82,12 @@ TEST_ENV+=          LD_LIBRARY_PATH=${WRKDIR}/bu
 
 .include "../../mk/bsd.prefs.mk"
 
+PLIST_VARS+=   notdylib
 .if ${_OPSYS_SHLIB_TYPE} == "dylib"
 SOEXT=         dylib
 .else
 SOEXT=         so
+PLIST.notdylib=        yes
 .endif
 PLIST_SUBST+=  SOEXT=${SOEXT}
 

Index: pkgsrc/lang/llvm/PLIST
diff -u pkgsrc/lang/llvm/PLIST:1.3 pkgsrc/lang/llvm/PLIST:1.4
--- pkgsrc/lang/llvm/PLIST:1.3  Mon Nov 14 20:15:32 2016
+++ pkgsrc/lang/llvm/PLIST      Fri Mar 17 22:38:17 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2016/11/14 20:15:32 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.4 2017/03/17 22:38:17 adam Exp $
 bin/FileCheck
 bin/bugpoint
 bin/count
@@ -10,9 +10,11 @@ bin/llvm-ar
 bin/llvm-as
 bin/llvm-bcanalyzer
 bin/llvm-c-test
+bin/llvm-cat
 bin/llvm-config
 bin/llvm-cov
 bin/llvm-cxxdump
+bin/llvm-cxxfilt
 bin/llvm-diff
 bin/llvm-dis
 bin/llvm-dsymutil
@@ -22,10 +24,13 @@ bin/llvm-extract
 bin/llvm-lib
 bin/llvm-link
 bin/llvm-lto
+bin/llvm-lto2
 bin/llvm-mc
 bin/llvm-mcmarkup
+bin/llvm-modextract
 bin/llvm-nm
 bin/llvm-objdump
+bin/llvm-opt-report
 bin/llvm-pdbdump
 bin/llvm-profdata
 bin/llvm-ranlib
@@ -34,8 +39,10 @@ bin/llvm-rtdyld
 bin/llvm-size
 bin/llvm-split
 bin/llvm-stress
+bin/llvm-strings
 bin/llvm-symbolizer
 bin/llvm-tblgen
+bin/llvm-xray
 bin/not
 bin/obj2yaml
 bin/opt
@@ -69,9 +76,11 @@ include/llvm-c/lto.h
 include/llvm/ADT/APFloat.h
 include/llvm/ADT/APInt.h
 include/llvm/ADT/APSInt.h
+include/llvm/ADT/AllocatorList.h
 include/llvm/ADT/ArrayRef.h
 include/llvm/ADT/BitVector.h
 include/llvm/ADT/BitmaskEnum.h
+include/llvm/ADT/CachedHashString.h
 include/llvm/ADT/DAGDeltaAlgorithm.h
 include/llvm/ADT/DeltaAlgorithm.h
 include/llvm/ADT/DenseMap.h
@@ -103,6 +112,7 @@ include/llvm/ADT/PriorityQueue.h
 include/llvm/ADT/PriorityWorklist.h
 include/llvm/ADT/SCCIterator.h
 include/llvm/ADT/STLExtras.h
+include/llvm/ADT/ScopeExit.h
 include/llvm/ADT/ScopedHashTable.h
 include/llvm/ADT/Sequence.h
 include/llvm/ADT/SetOperations.h
@@ -128,9 +138,14 @@ include/llvm/ADT/UniqueVector.h
 include/llvm/ADT/VariadicFunction.h
 include/llvm/ADT/edit_distance.h
 include/llvm/ADT/ilist.h
+include/llvm/ADT/ilist_base.h
+include/llvm/ADT/ilist_iterator.h
 include/llvm/ADT/ilist_node.h
+include/llvm/ADT/ilist_node_base.h
+include/llvm/ADT/ilist_node_options.h
 include/llvm/ADT/iterator.h
 include/llvm/ADT/iterator_range.h
+include/llvm/ADT/simple_ilist.h
 include/llvm/Analysis/AliasAnalysis.h
 include/llvm/Analysis/AliasAnalysisEvaluator.h
 include/llvm/Analysis/AliasSetTracker.h
@@ -169,16 +184,17 @@ include/llvm/Analysis/IntervalIterator.h
 include/llvm/Analysis/IntervalPartition.h
 include/llvm/Analysis/IteratedDominanceFrontier.h
 include/llvm/Analysis/LazyBlockFrequencyInfo.h
+include/llvm/Analysis/LazyBranchProbabilityInfo.h
 include/llvm/Analysis/LazyCallGraph.h
 include/llvm/Analysis/LazyValueInfo.h
 include/llvm/Analysis/Lint.h
 include/llvm/Analysis/Loads.h
 include/llvm/Analysis/LoopAccessAnalysis.h
+include/llvm/Analysis/LoopAnalysisManager.h
 include/llvm/Analysis/LoopInfo.h
 include/llvm/Analysis/LoopInfoImpl.h
 include/llvm/Analysis/LoopIterator.h
 include/llvm/Analysis/LoopPass.h
-include/llvm/Analysis/LoopPassManager.h
 include/llvm/Analysis/LoopUnrollAnalyzer.h
 include/llvm/Analysis/MemoryBuiltins.h
 include/llvm/Analysis/MemoryDependenceAnalysis.h
@@ -219,11 +235,12 @@ include/llvm/Analysis/VectorUtils.h
 include/llvm/AsmParser/Parser.h
 include/llvm/AsmParser/SlotMapping.h
 include/llvm/Bitcode/BitCodes.h
+include/llvm/Bitcode/BitcodeReader.h
+include/llvm/Bitcode/BitcodeWriter.h
 include/llvm/Bitcode/BitcodeWriterPass.h
 include/llvm/Bitcode/BitstreamReader.h
 include/llvm/Bitcode/BitstreamWriter.h
 include/llvm/Bitcode/LLVMBitCodes.h
-include/llvm/Bitcode/ReaderWriter.h
 include/llvm/CodeGen/Analysis.h
 include/llvm/CodeGen/AsmPrinter.h
 include/llvm/CodeGen/AtomicExpandUtils.h
@@ -247,11 +264,17 @@ include/llvm/CodeGen/GCs.h
 include/llvm/CodeGen/GlobalISel/CallLowering.h
 include/llvm/CodeGen/GlobalISel/GISelAccessor.h
 include/llvm/CodeGen/GlobalISel/IRTranslator.h
+include/llvm/CodeGen/GlobalISel/InstructionSelect.h
+include/llvm/CodeGen/GlobalISel/InstructionSelector.h
+include/llvm/CodeGen/GlobalISel/Legalizer.h
+include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
+include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
 include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
 include/llvm/CodeGen/GlobalISel/RegBankSelect.h
 include/llvm/CodeGen/GlobalISel/RegisterBank.h
 include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h
 include/llvm/CodeGen/GlobalISel/Types.h
+include/llvm/CodeGen/GlobalISel/Utils.h
 include/llvm/CodeGen/ISDOpcodes.h
 include/llvm/CodeGen/IntrinsicLowering.h
 include/llvm/CodeGen/LatencyPriorityQueue.h
@@ -266,6 +289,7 @@ include/llvm/CodeGen/LiveRangeEdit.h
 include/llvm/CodeGen/LiveRegMatrix.h
 include/llvm/CodeGen/LiveStackAnalysis.h
 include/llvm/CodeGen/LiveVariables.h
+include/llvm/CodeGen/LowLevelType.h
 include/llvm/CodeGen/MIRParser/MIRParser.h
 include/llvm/CodeGen/MIRYamlMapping.h
 include/llvm/CodeGen/MachORelocation.h
@@ -278,7 +302,6 @@ include/llvm/CodeGen/MachineDominanceFro
 include/llvm/CodeGen/MachineDominators.h
 include/llvm/CodeGen/MachineFrameInfo.h
 include/llvm/CodeGen/MachineFunction.h
-include/llvm/CodeGen/MachineFunctionAnalysis.h
 include/llvm/CodeGen/MachineFunctionInitializer.h
 include/llvm/CodeGen/MachineFunctionPass.h
 include/llvm/CodeGen/MachineInstr.h
@@ -344,42 +367,47 @@ include/llvm/Config/AsmParsers.def
 include/llvm/Config/AsmPrinters.def
 include/llvm/Config/Disassemblers.def
 include/llvm/Config/Targets.def
+include/llvm/Config/abi-breaking.h
 include/llvm/Config/llvm-config.h
-include/llvm/DebugInfo/CodeView/ByteStream.h
+include/llvm/DebugInfo/CodeView/CVDebugRecord.h
 include/llvm/DebugInfo/CodeView/CVRecord.h
 include/llvm/DebugInfo/CodeView/CVSymbolTypes.def
 include/llvm/DebugInfo/CodeView/CVSymbolVisitor.h
+include/llvm/DebugInfo/CodeView/CVTypeDumper.h
 include/llvm/DebugInfo/CodeView/CVTypeVisitor.h
 include/llvm/DebugInfo/CodeView/CodeView.h
 include/llvm/DebugInfo/CodeView/CodeViewError.h
-include/llvm/DebugInfo/CodeView/CodeViewOStream.h
+include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h
 include/llvm/DebugInfo/CodeView/EnumTables.h
-include/llvm/DebugInfo/CodeView/FieldListRecordBuilder.h
 include/llvm/DebugInfo/CodeView/FunctionId.h
 include/llvm/DebugInfo/CodeView/Line.h
-include/llvm/DebugInfo/CodeView/ListRecordBuilder.h
-include/llvm/DebugInfo/CodeView/MemoryTypeTableBuilder.h
-include/llvm/DebugInfo/CodeView/MethodListRecordBuilder.h
 include/llvm/DebugInfo/CodeView/ModuleSubstream.h
 include/llvm/DebugInfo/CodeView/ModuleSubstreamVisitor.h
 include/llvm/DebugInfo/CodeView/RecordSerialization.h
-include/llvm/DebugInfo/CodeView/StreamArray.h
-include/llvm/DebugInfo/CodeView/StreamInterface.h
-include/llvm/DebugInfo/CodeView/StreamReader.h
-include/llvm/DebugInfo/CodeView/StreamRef.h
-include/llvm/DebugInfo/CodeView/StreamWriter.h
+include/llvm/DebugInfo/CodeView/SymbolDeserializer.h
 include/llvm/DebugInfo/CodeView/SymbolDumpDelegate.h
 include/llvm/DebugInfo/CodeView/SymbolDumper.h
 include/llvm/DebugInfo/CodeView/SymbolRecord.h
+include/llvm/DebugInfo/CodeView/SymbolRecordMapping.h
+include/llvm/DebugInfo/CodeView/SymbolSerializer.h
+include/llvm/DebugInfo/CodeView/SymbolVisitorCallbackPipeline.h
+include/llvm/DebugInfo/CodeView/SymbolVisitorCallbacks.h
 include/llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h
-include/llvm/DebugInfo/CodeView/TypeDumper.h
+include/llvm/DebugInfo/CodeView/TypeDatabase.h
+include/llvm/DebugInfo/CodeView/TypeDatabaseVisitor.h
+include/llvm/DebugInfo/CodeView/TypeDeserializer.h
+include/llvm/DebugInfo/CodeView/TypeDumpVisitor.h
+include/llvm/DebugInfo/CodeView/TypeDumperBase.h
 include/llvm/DebugInfo/CodeView/TypeIndex.h
 include/llvm/DebugInfo/CodeView/TypeRecord.h
 include/llvm/DebugInfo/CodeView/TypeRecordBuilder.h
+include/llvm/DebugInfo/CodeView/TypeRecordMapping.h
 include/llvm/DebugInfo/CodeView/TypeRecords.def
+include/llvm/DebugInfo/CodeView/TypeSerializer.h
 include/llvm/DebugInfo/CodeView/TypeStreamMerger.h
 include/llvm/DebugInfo/CodeView/TypeSymbolEmitter.h
 include/llvm/DebugInfo/CodeView/TypeTableBuilder.h
+include/llvm/DebugInfo/CodeView/TypeVisitorCallbackPipeline.h
 include/llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h
 include/llvm/DebugInfo/DIContext.h
 include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h
@@ -394,13 +422,29 @@ include/llvm/DebugInfo/DWARF/DWARFDebugI
 include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
 include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h
 include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h
+include/llvm/DebugInfo/DWARF/DWARFDebugPubTable.h
 include/llvm/DebugInfo/DWARF/DWARFDebugRangeList.h
+include/llvm/DebugInfo/DWARF/DWARFDie.h
 include/llvm/DebugInfo/DWARF/DWARFFormValue.h
+include/llvm/DebugInfo/DWARF/DWARFGdbIndex.h
 include/llvm/DebugInfo/DWARF/DWARFRelocMap.h
 include/llvm/DebugInfo/DWARF/DWARFSection.h
 include/llvm/DebugInfo/DWARF/DWARFTypeUnit.h
 include/llvm/DebugInfo/DWARF/DWARFUnit.h
 include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h
+include/llvm/DebugInfo/MSF/ByteStream.h
+include/llvm/DebugInfo/MSF/IMSFFile.h
+include/llvm/DebugInfo/MSF/MSFBuilder.h
+include/llvm/DebugInfo/MSF/MSFCommon.h
+include/llvm/DebugInfo/MSF/MSFError.h
+include/llvm/DebugInfo/MSF/MSFStreamLayout.h
+include/llvm/DebugInfo/MSF/MappedBlockStream.h
+include/llvm/DebugInfo/MSF/SequencedItemStream.h
+include/llvm/DebugInfo/MSF/StreamArray.h
+include/llvm/DebugInfo/MSF/StreamInterface.h
+include/llvm/DebugInfo/MSF/StreamReader.h
+include/llvm/DebugInfo/MSF/StreamRef.h
+include/llvm/DebugInfo/MSF/StreamWriter.h
 include/llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h
 include/llvm/DebugInfo/PDB/DIA/DIADataStream.h
 include/llvm/DebugInfo/PDB/DIA/DIAEnumDebugStreams.h
@@ -459,20 +503,14 @@ include/llvm/DebugInfo/PDB/PDBSymbolUsin
 include/llvm/DebugInfo/PDB/PDBTypes.h
 include/llvm/DebugInfo/PDB/Raw/DbiStream.h
 include/llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h
-include/llvm/DebugInfo/PDB/Raw/DirectoryStreamData.h
 include/llvm/DebugInfo/PDB/Raw/EnumTables.h
+include/llvm/DebugInfo/PDB/Raw/GlobalsStream.h
 include/llvm/DebugInfo/PDB/Raw/Hash.h
-include/llvm/DebugInfo/PDB/Raw/IPDBFile.h
-include/llvm/DebugInfo/PDB/Raw/IPDBStreamData.h
 include/llvm/DebugInfo/PDB/Raw/ISectionContribVisitor.h
-include/llvm/DebugInfo/PDB/Raw/IndexedStreamData.h
 include/llvm/DebugInfo/PDB/Raw/InfoStream.h
 include/llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h
-include/llvm/DebugInfo/PDB/Raw/MappedBlockStream.h
 include/llvm/DebugInfo/PDB/Raw/ModInfo.h
 include/llvm/DebugInfo/PDB/Raw/ModStream.h
-include/llvm/DebugInfo/PDB/Raw/MsfBuilder.h
-include/llvm/DebugInfo/PDB/Raw/MsfCommon.h
 include/llvm/DebugInfo/PDB/Raw/NameHashTable.h
 include/llvm/DebugInfo/PDB/Raw/NameMap.h
 include/llvm/DebugInfo/PDB/Raw/NameMapBuilder.h
@@ -484,15 +522,18 @@ include/llvm/DebugInfo/PDB/Raw/RawError.
 include/llvm/DebugInfo/PDB/Raw/RawSession.h
 include/llvm/DebugInfo/PDB/Raw/RawTypes.h
 include/llvm/DebugInfo/PDB/Raw/SymbolStream.h
+include/llvm/DebugInfo/PDB/Raw/TpiHashing.h
 include/llvm/DebugInfo/PDB/Raw/TpiStream.h
+include/llvm/DebugInfo/PDB/Raw/TpiStreamBuilder.h
 include/llvm/DebugInfo/Symbolize/DIPrinter.h
 include/llvm/DebugInfo/Symbolize/SymbolizableModule.h
 include/llvm/DebugInfo/Symbolize/Symbolize.h
+include/llvm/Demangle/Demangle.h
 include/llvm/ExecutionEngine/ExecutionEngine.h
 include/llvm/ExecutionEngine/GenericValue.h
 include/llvm/ExecutionEngine/Interpreter.h
 include/llvm/ExecutionEngine/JITEventListener.h
-include/llvm/ExecutionEngine/JITSymbolFlags.h
+include/llvm/ExecutionEngine/JITSymbol.h
 include/llvm/ExecutionEngine/MCJIT.h
 include/llvm/ExecutionEngine/OProfileWrapper.h
 include/llvm/ExecutionEngine/ObjectCache.h
@@ -504,10 +545,8 @@ include/llvm/ExecutionEngine/Orc/GlobalM
 include/llvm/ExecutionEngine/Orc/IRCompileLayer.h
 include/llvm/ExecutionEngine/Orc/IRTransformLayer.h
 include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
-include/llvm/ExecutionEngine/Orc/JITSymbol.h
 include/llvm/ExecutionEngine/Orc/LambdaResolver.h
 include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h
-include/llvm/ExecutionEngine/Orc/LogicalDylib.h
 include/llvm/ExecutionEngine/Orc/NullResolver.h
 include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h
 include/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h
@@ -516,8 +555,9 @@ include/llvm/ExecutionEngine/Orc/OrcErro
 include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
 include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h
 include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
-include/llvm/ExecutionEngine/Orc/RPCChannel.h
+include/llvm/ExecutionEngine/Orc/RPCSerialization.h
 include/llvm/ExecutionEngine/Orc/RPCUtils.h
+include/llvm/ExecutionEngine/Orc/RawByteChannel.h
 include/llvm/ExecutionEngine/OrcMCJITReplacement.h
 include/llvm/ExecutionEngine/RTDyldMemoryManager.h
 include/llvm/ExecutionEngine/RuntimeDyld.h
@@ -525,8 +565,8 @@ include/llvm/ExecutionEngine/RuntimeDyld
 include/llvm/ExecutionEngine/SectionMemoryManager.h
 include/llvm/IR/Argument.h
 include/llvm/IR/AssemblyAnnotationWriter.h
+include/llvm/IR/Attributes.gen
 include/llvm/IR/Attributes.h
-include/llvm/IR/Attributes.inc
 include/llvm/IR/Attributes.td
 include/llvm/IR/AutoUpgrade.h
 include/llvm/IR/BasicBlock.h
@@ -593,6 +633,7 @@ include/llvm/IR/Metadata.h
 include/llvm/IR/Module.h
 include/llvm/IR/ModuleSlotTracker.h
 include/llvm/IR/ModuleSummaryIndex.h
+include/llvm/IR/ModuleSummaryIndexYAML.h
 include/llvm/IR/NoFolder.h
 include/llvm/IR/OperandTraits.h
 include/llvm/IR/Operator.h
@@ -619,7 +660,10 @@ include/llvm/IR/ValueSymbolTable.h
 include/llvm/IR/Verifier.h
 include/llvm/IRReader/IRReader.h
 include/llvm/InitializePasses.h
+include/llvm/LTO/Caching.h
+include/llvm/LTO/Config.h
 include/llvm/LTO/LTO.h
+include/llvm/LTO/LTOBackend.h
 include/llvm/LTO/legacy/LTOCodeGenerator.h
 include/llvm/LTO/legacy/LTOModule.h
 include/llvm/LTO/legacy/ThinLTOCodeGenerator.h
@@ -631,6 +675,7 @@ include/llvm/LinkAllPasses.h
 include/llvm/Linker/IRMover.h
 include/llvm/Linker/Linker.h
 include/llvm/MC/ConstantPools.h
+include/llvm/MC/LaneBitmask.h
 include/llvm/MC/MCAsmBackend.h
 include/llvm/MC/MCAsmInfo.h
 include/llvm/MC/MCAsmInfoCOFF.h
@@ -703,6 +748,7 @@ include/llvm/Object/ArchiveWriter.h
 include/llvm/Object/Binary.h
 include/llvm/Object/COFF.h
 include/llvm/Object/COFFImportFile.h
+include/llvm/Object/Decompressor.h
 include/llvm/Object/ELF.h
 include/llvm/Object/ELFObjectFile.h
 include/llvm/Object/ELFTypes.h
@@ -711,12 +757,15 @@ include/llvm/Object/IRObjectFile.h
 include/llvm/Object/MachO.h
 include/llvm/Object/MachOUniversal.h
 include/llvm/Object/ModuleSummaryIndexObjectFile.h
+include/llvm/Object/ModuleSymbolTable.h
 include/llvm/Object/ObjectFile.h
 include/llvm/Object/RelocVisitor.h
 include/llvm/Object/StackMapParser.h
 include/llvm/Object/SymbolSize.h
 include/llvm/Object/SymbolicFile.h
+include/llvm/Object/Wasm.h
 include/llvm/ObjectYAML/COFFYAML.h
+include/llvm/ObjectYAML/DWARFYAML.h
 include/llvm/ObjectYAML/ELFYAML.h
 include/llvm/ObjectYAML/MachOYAML.h
 include/llvm/ObjectYAML/ObjectYAML.h
@@ -762,6 +811,7 @@ include/llvm/Support/COM.h
 include/llvm/Support/CachePruning.h
 include/llvm/Support/Capacity.h
 include/llvm/Support/Casting.h
+include/llvm/Support/Chrono.h
 include/llvm/Support/CodeGen.h
 include/llvm/Support/CodeGenCWrappers.h
 include/llvm/Support/CommandLine.h
@@ -771,7 +821,6 @@ include/llvm/Support/ConvertUTF.h
 include/llvm/Support/CrashRecoveryContext.h
 include/llvm/Support/DOTGraphTraits.h
 include/llvm/Support/DataExtractor.h
-include/llvm/Support/DataStream.h
 include/llvm/Support/DataTypes.h
 include/llvm/Support/Debug.h
 include/llvm/Support/Dwarf.def
@@ -788,6 +837,7 @@ include/llvm/Support/ELFRelocs/Lanai.def
 include/llvm/Support/ELFRelocs/Mips.def
 include/llvm/Support/ELFRelocs/PowerPC.def
 include/llvm/Support/ELFRelocs/PowerPC64.def
+include/llvm/Support/ELFRelocs/RISCV.def
 include/llvm/Support/ELFRelocs/Sparc.def
 include/llvm/Support/ELFRelocs/SystemZ.def
 include/llvm/Support/ELFRelocs/WebAssembly.def
@@ -804,10 +854,16 @@ include/llvm/Support/FileOutputBuffer.h
 include/llvm/Support/FileSystem.h
 include/llvm/Support/FileUtilities.h
 include/llvm/Support/Format.h
+include/llvm/Support/FormatAdapters.h
+include/llvm/Support/FormatCommon.h
+include/llvm/Support/FormatProviders.h
+include/llvm/Support/FormatVariadic.h
+include/llvm/Support/FormatVariadicDetails.h
 include/llvm/Support/FormattedStream.h
 include/llvm/Support/GCOV.h
 include/llvm/Support/GenericDomTree.h
 include/llvm/Support/GenericDomTreeConstruction.h
+include/llvm/Support/GlobPattern.h
 include/llvm/Support/GraphWriter.h
 include/llvm/Support/Host.h
 include/llvm/Support/JamCRC.h
@@ -823,10 +879,10 @@ include/llvm/Support/ManagedStatic.h
 include/llvm/Support/MathExtras.h
 include/llvm/Support/Memory.h
 include/llvm/Support/MemoryBuffer.h
-include/llvm/Support/MemoryObject.h
 include/llvm/Support/MipsABIFlags.h
 include/llvm/Support/Mutex.h
 include/llvm/Support/MutexGuard.h
+include/llvm/Support/NativeFormatting.h
 include/llvm/Support/OnDiskHashTable.h
 include/llvm/Support/Options.h
 include/llvm/Support/Path.h
@@ -851,26 +907,27 @@ include/llvm/Support/Signals.h
 include/llvm/Support/Solaris.h
 include/llvm/Support/SourceMgr.h
 include/llvm/Support/SpecialCaseList.h
-include/llvm/Support/StreamingMemoryObject.h
 include/llvm/Support/StringPool.h
 include/llvm/Support/StringSaver.h
 include/llvm/Support/SwapByteOrder.h
 include/llvm/Support/SystemUtils.h
+include/llvm/Support/TarWriter.h
 include/llvm/Support/TargetParser.h
 include/llvm/Support/TargetRegistry.h
 include/llvm/Support/TargetSelect.h
 include/llvm/Support/ThreadLocal.h
 include/llvm/Support/ThreadPool.h
 include/llvm/Support/Threading.h
-include/llvm/Support/TimeValue.h
 include/llvm/Support/Timer.h
 include/llvm/Support/ToolOutputFile.h
 include/llvm/Support/TrailingObjects.h
+include/llvm/Support/TrigramIndex.h
 include/llvm/Support/TypeName.h
 include/llvm/Support/Unicode.h
 include/llvm/Support/UnicodeCharRanges.h
 include/llvm/Support/UniqueLock.h
 include/llvm/Support/Valgrind.h
+include/llvm/Support/Wasm.h
 include/llvm/Support/Watchdog.h
 include/llvm/Support/Win64EH.h
 include/llvm/Support/WindowsError.h
@@ -882,6 +939,7 @@ include/llvm/Support/raw_ostream.h
 include/llvm/Support/raw_sha1_ostream.h
 include/llvm/Support/thread.h
 include/llvm/Support/type_traits.h
+include/llvm/Support/xxhash.h
 include/llvm/TableGen/Error.h
 include/llvm/TableGen/Main.h
 include/llvm/TableGen/Record.h
@@ -896,6 +954,7 @@ include/llvm/Target/Target.td
 include/llvm/Target/TargetCallingConv.h
 include/llvm/Target/TargetCallingConv.td
 include/llvm/Target/TargetFrameLowering.h
+include/llvm/Target/TargetGlobalISel.td
 include/llvm/Target/TargetInstrInfo.h
 include/llvm/Target/TargetIntrinsicInfo.h
 include/llvm/Target/TargetItinerary.td
@@ -905,13 +964,14 @@ include/llvm/Target/TargetMachine.h
 include/llvm/Target/TargetOpcodes.def
 include/llvm/Target/TargetOpcodes.h
 include/llvm/Target/TargetOptions.h
-include/llvm/Target/TargetRecip.h
 include/llvm/Target/TargetRegisterInfo.h
 include/llvm/Target/TargetSchedule.td
 include/llvm/Target/TargetSelectionDAG.td
 include/llvm/Target/TargetSubtargetInfo.h
+include/llvm/Transforms/Coroutines.h
 include/llvm/Transforms/GCOVProfiler.h
 include/llvm/Transforms/IPO.h
+include/llvm/Transforms/IPO/AlwaysInliner.h
 include/llvm/Transforms/IPO/ConstantMerge.h
 include/llvm/Transforms/IPO/CrossDSOCFI.h
 include/llvm/Transforms/IPO/DeadArgumentElimination.h
@@ -921,8 +981,9 @@ include/llvm/Transforms/IPO/FunctionAttr
 include/llvm/Transforms/IPO/FunctionImport.h
 include/llvm/Transforms/IPO/GlobalDCE.h
 include/llvm/Transforms/IPO/GlobalOpt.h
+include/llvm/Transforms/IPO/GlobalSplit.h
 include/llvm/Transforms/IPO/InferFunctionAttrs.h
-include/llvm/Transforms/IPO/InlinerPass.h
+include/llvm/Transforms/IPO/Inliner.h
 include/llvm/Transforms/IPO/Internalize.h
 include/llvm/Transforms/IPO/LowerTypeTests.h
 include/llvm/Transforms/IPO/PartialInlining.h
@@ -948,48 +1009,66 @@ include/llvm/Transforms/Scalar/DeadStore
 include/llvm/Transforms/Scalar/EarlyCSE.h
 include/llvm/Transforms/Scalar/Float2Int.h
 include/llvm/Transforms/Scalar/GVN.h
+include/llvm/Transforms/Scalar/GVNExpression.h
 include/llvm/Transforms/Scalar/GuardWidening.h
+include/llvm/Transforms/Scalar/IVUsersPrinter.h
 include/llvm/Transforms/Scalar/IndVarSimplify.h
 include/llvm/Transforms/Scalar/JumpThreading.h
 include/llvm/Transforms/Scalar/LICM.h
+include/llvm/Transforms/Scalar/LoopAccessAnalysisPrinter.h
+include/llvm/Transforms/Scalar/LoopDataPrefetch.h
 include/llvm/Transforms/Scalar/LoopDeletion.h
 include/llvm/Transforms/Scalar/LoopDistribute.h
 include/llvm/Transforms/Scalar/LoopIdiomRecognize.h
 include/llvm/Transforms/Scalar/LoopInstSimplify.h
+include/llvm/Transforms/Scalar/LoopPassManager.h
 include/llvm/Transforms/Scalar/LoopRotation.h
 include/llvm/Transforms/Scalar/LoopSimplifyCFG.h
+include/llvm/Transforms/Scalar/LoopStrengthReduce.h
+include/llvm/Transforms/Scalar/LoopUnrollPass.h
 include/llvm/Transforms/Scalar/LowerAtomic.h
 include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h
+include/llvm/Transforms/Scalar/LowerGuardIntrinsic.h
 include/llvm/Transforms/Scalar/MemCpyOptimizer.h
 include/llvm/Transforms/Scalar/MergedLoadStoreMotion.h
+include/llvm/Transforms/Scalar/NaryReassociate.h
+include/llvm/Transforms/Scalar/NewGVN.h
 include/llvm/Transforms/Scalar/PartiallyInlineLibCalls.h
 include/llvm/Transforms/Scalar/Reassociate.h
 include/llvm/Transforms/Scalar/SCCP.h
 include/llvm/Transforms/Scalar/SROA.h
 include/llvm/Transforms/Scalar/SimplifyCFG.h
 include/llvm/Transforms/Scalar/Sink.h
+include/llvm/Transforms/Scalar/SpeculativeExecution.h
 include/llvm/Transforms/Scalar/TailRecursionElimination.h
 include/llvm/Transforms/Utils/ASanStackFrameLayout.h
 include/llvm/Transforms/Utils/AddDiscriminators.h
 include/llvm/Transforms/Utils/BasicBlockUtils.h
+include/llvm/Transforms/Utils/BreakCriticalEdges.h
 include/llvm/Transforms/Utils/BuildLibCalls.h
 include/llvm/Transforms/Utils/BypassSlowDivision.h
 include/llvm/Transforms/Utils/Cloning.h
 include/llvm/Transforms/Utils/CmpInstAnalysis.h
 include/llvm/Transforms/Utils/CodeExtractor.h
 include/llvm/Transforms/Utils/CtorUtils.h
+include/llvm/Transforms/Utils/EscapeEnumerator.h
 include/llvm/Transforms/Utils/Evaluator.h
+include/llvm/Transforms/Utils/FunctionComparator.h
 include/llvm/Transforms/Utils/FunctionImportUtils.h
 include/llvm/Transforms/Utils/GlobalStatus.h
+include/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h
 include/llvm/Transforms/Utils/IntegerDivision.h
 include/llvm/Transforms/Utils/LCSSA.h
+include/llvm/Transforms/Utils/LibCallsShrinkWrap.h
 include/llvm/Transforms/Utils/Local.h
 include/llvm/Transforms/Utils/LoopSimplify.h
 include/llvm/Transforms/Utils/LoopUtils.h
 include/llvm/Transforms/Utils/LoopVersioning.h
+include/llvm/Transforms/Utils/LowerInvoke.h
 include/llvm/Transforms/Utils/Mem2Reg.h
 include/llvm/Transforms/Utils/MemorySSA.h
 include/llvm/Transforms/Utils/ModuleUtils.h
+include/llvm/Transforms/Utils/NameAnonGlobals.h
 include/llvm/Transforms/Utils/PromoteMemToReg.h
 include/llvm/Transforms/Utils/SSAUpdater.h
 include/llvm/Transforms/Utils/SSAUpdaterImpl.h
@@ -1005,13 +1084,18 @@ include/llvm/Transforms/Utils/ValueMappe
 include/llvm/Transforms/Vectorize.h
 include/llvm/Transforms/Vectorize/LoopVectorize.h
 include/llvm/Transforms/Vectorize/SLPVectorizer.h
+include/llvm/XRay/Trace.h
+include/llvm/XRay/XRayRecord.h
+include/llvm/XRay/YAMLXRayRecord.h
 lib/BugpointPasses.${SOEXT}
 lib/LLVMHello.${SOEXT}
 lib/cmake/llvm/AddLLVM.cmake
 lib/cmake/llvm/AddLLVMDefinitions.cmake
 lib/cmake/llvm/AddOCaml.cmake
 lib/cmake/llvm/AddSphinxTarget.cmake
+lib/cmake/llvm/CheckAtomic.cmake
 lib/cmake/llvm/CheckCompilerVersion.cmake
+lib/cmake/llvm/CheckLinkerFlag.cmake
 lib/cmake/llvm/ChooseMSVCCRT.cmake
 lib/cmake/llvm/CrossCompile.cmake
 lib/cmake/llvm/DetermineGCCCompatible.cmake
@@ -1057,15 +1141,19 @@ lib/libLLVMAsmPrinter.a
 ${PLIST.BPF}lib/libLLVMBPFAsmPrinter.a
 ${PLIST.BPF}lib/libLLVMBPFCodeGen.a
 ${PLIST.BPF}lib/libLLVMBPFDesc.a
+${PLIST.BPF}lib/libLLVMBPFDisassembler.a
 ${PLIST.BPF}lib/libLLVMBPFInfo.a
 lib/libLLVMBitReader.a
 lib/libLLVMBitWriter.a
 lib/libLLVMCodeGen.a
 lib/libLLVMCore.a
+lib/libLLVMCoroutines.a
 lib/libLLVMCoverage.a
 lib/libLLVMDebugInfoCodeView.a
 lib/libLLVMDebugInfoDWARF.a
+lib/libLLVMDebugInfoMSF.a
 lib/libLLVMDebugInfoPDB.a
+lib/libLLVMDemangle.a
 lib/libLLVMExecutionEngine.a
 lib/libLLVMGlobalISel.a
 ${PLIST.Hexagon}lib/libLLVMHexagonAsmParser.a
@@ -1146,5 +1234,8 @@ ${PLIST.XCore}lib/libLLVMXCoreCodeGen.a
 ${PLIST.XCore}lib/libLLVMXCoreDesc.a
 ${PLIST.XCore}lib/libLLVMXCoreDisassembler.a
 ${PLIST.XCore}lib/libLLVMXCoreInfo.a
+lib/libLLVMXRay.a
 lib/libLLVMipo.a
 lib/libLTO.${SOEXT}
+${PLIST.notdylib}lib/libLTO.${SOEXT}.4
+${PLIST.notdylib}lib/libLTO.${SOEXT}.${PKGVERSION}

Index: pkgsrc/lang/llvm/distinfo
diff -u pkgsrc/lang/llvm/distinfo:1.5 pkgsrc/lang/llvm/distinfo:1.6
--- pkgsrc/lang/llvm/distinfo:1.5       Thu Jan  5 11:54:32 2017
+++ pkgsrc/lang/llvm/distinfo   Fri Mar 17 22:38:17 2017
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.5 2017/01/05 11:54:32 adam Exp $
+$NetBSD: distinfo,v 1.6 2017/03/17 22:38:17 adam Exp $
 
-SHA1 (llvm-3.9.1.src.tar.xz) = ce801cf456b8dacd565ce8df8288b4d90e7317ff
-RMD160 (llvm-3.9.1.src.tar.xz) = b0a3c68cfec83a2b4dad6922316b71c0dc25c40a
-SHA512 (llvm-3.9.1.src.tar.xz) = 50cbe8ee911080f586e77861c442348701bd02e2de0c090c54c34f82ac275ecfcd712af0f41e387c33b4a6057778a4258a27554292fe68ab4af3fd9dd6d90683
-Size (llvm-3.9.1.src.tar.xz) = 18130436 bytes
-SHA1 (patch-cmake_modules_AddLLVM.cmake) = ec89e9469115b22feeb106e1c36b36af1f079576
-SHA1 (patch-include_llvm_Support_Host.h) = ad6ac520f15bba96ab887c962fb717e22aaee7bf
+SHA1 (llvm-4.0.0.src.tar.xz) = aee4524e2407f9fe5afc6f70c753180b907011d0
+RMD160 (llvm-4.0.0.src.tar.xz) = 468ae2502ba523b35c5e8340724ddaa50b31ccb5
+SHA512 (llvm-4.0.0.src.tar.xz) = cf681f0626ef6d568d951cdc3e143471a1d7715a0ba11e52aa273cf5d8d421e1357ef2645cc85879eaefcd577e99e74d07b01566825b3d0461171ef2cbfc7704
+Size (llvm-4.0.0.src.tar.xz) = 21016340 bytes
+SHA1 (patch-cmake_modules_AddLLVM.cmake) = 73725f49c7814f54f9286afe796bc2a466ee9611
+SHA1 (patch-include_llvm_Support_Host.h) = a4e19a72714084b211b0182c04ccc51bd606e150

Index: pkgsrc/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake
diff -u pkgsrc/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake:1.1 pkgsrc/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake:1.2
--- pkgsrc/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake:1.1      Fri Mar 11 06:50:42 2016
+++ pkgsrc/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake  Fri Mar 17 22:38:17 2017
@@ -1,19 +1,16 @@
-$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.1 2016/03/11 06:50:42 tnn Exp $
+$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.2 2017/03/17 22:38:17 adam Exp $
 
 Don't use non-portable -z discard-unused on SunOS.
 
 --- cmake/modules/AddLLVM.cmake.orig   2016-02-12 17:52:29.000000000 +0000
 +++ cmake/modules/AddLLVM.cmake
-@@ -174,9 +174,9 @@ function(add_link_opts target_name)
+@@ -174,9 +174,6 @@ function(add_link_opts target_name)
          # ld64's implementation of -dead_strip breaks tools that use plugins.
          set_property(TARGET ${target_name} APPEND_STRING PROPERTY
                       LINK_FLAGS " -Wl,-dead_strip")
 -      elseif(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
 -        set_property(TARGET ${target_name} APPEND_STRING PROPERTY
 -                     LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections")
-+#      elseif(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
-+#        set_property(TARGET ${target_name} APPEND_STRING PROPERTY
-+#                     LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections")
        elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD)
          # Object files are compiled with -ffunction-data-sections.
          # Versions of bfd ld < 2.23.1 have a bug in --gc-sections that breaks

Index: pkgsrc/lang/llvm/patches/patch-include_llvm_Support_Host.h
diff -u pkgsrc/lang/llvm/patches/patch-include_llvm_Support_Host.h:1.2 pkgsrc/lang/llvm/patches/patch-include_llvm_Support_Host.h:1.3
--- pkgsrc/lang/llvm/patches/patch-include_llvm_Support_Host.h:1.2      Mon Nov 14 20:15:33 2016
+++ pkgsrc/lang/llvm/patches/patch-include_llvm_Support_Host.h  Fri Mar 17 22:38:17 2017
@@ -1,19 +1,18 @@
-$NetBSD: patch-include_llvm_Support_Host.h,v 1.2 2016/11/14 20:15:33 ryoon Exp $
+$NetBSD: patch-include_llvm_Support_Host.h,v 1.3 2017/03/17 22:38:17 adam Exp $
 
 Fix lack of machine/endian.h on solaris
 http://permalink.gmane.org/gmane.comp.compilers.llvm.devel/63225
 
---- include/llvm/Support/Host.h.orig   2016-02-26 17:01:45.000000000 +0000
+--- include/llvm/Support/Host.h.orig   2016-10-13 17:43:20.000000000 +0000
 +++ include/llvm/Support/Host.h
-@@ -18,6 +18,20 @@
- 
- #if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__)
+@@ -20,6 +20,18 @@
  #include <endian.h>
+ #elif defined(_AIX)
+ #include <sys/machine.h>
 +#elif defined(__sun) & defined(__SVR4)
 +# ifndef BYTE_ORDER
 +# define LITTLE_ENDIAN 1234
 +# define BIG_ENDIAN 4321
-+# if defined(__sun) & defined(__SVR4)
 +# include <sys/isa_defs.h>
 +# ifdef _LITTLE_ENDIAN
 +# define BYTE_ORDER LITTLE_ENDIAN
@@ -21,7 +20,6 @@ http://permalink.gmane.org/gmane.comp.co
 +# ifdef _BIG_ENDIAN
 +# define BYTE_ORDER BIG_ENDIAN
 +# endif
-+# endif /* sun */
 +# endif /* BYTE_ORDER */
  #else
  #if !defined(BYTE_ORDER) && !defined(LLVM_ON_WIN32)



Home | Main Index | Thread Index | Old Index