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 Dec  1 19:22:13 UTC 2017

Modified Files:
        pkgsrc/devel/lldb: Makefile PLIST PLIST.Darwin distinfo
        pkgsrc/devel/polly: Makefile PLIST distinfo
        pkgsrc/devel/polly/patches: patch-CMakeLists.txt
            patch-lib_External_isl_configure
        pkgsrc/lang/clang: Makefile.common PLIST distinfo
        pkgsrc/lang/libLLVM: Makefile PLIST distinfo
        pkgsrc/lang/libLLVM/patches: patch-cmake_modules_AddLLVM.cmake
            patch-tools_llvm-config_llvm-config.cpp
            patch-tools_llvm-shlib_CMakeLists.txt
        pkgsrc/lang/libunwind: Makefile distinfo
        pkgsrc/lang/llvm: Makefile PLIST distinfo
        pkgsrc/lang/llvm/patches: patch-cmake_config-ix.cmake
            patch-tools_llvm-shlib_CMakeLists.txt
Removed Files:
        pkgsrc/devel/lldb/patches: patch-scripts_Python_finishSwigPythonLLDB.py
            patch-source_Host_netbsd_Host.cpp
            patch-source_Host_netbsd_HostThreadNetBSD.cpp
        pkgsrc/lang/libLLVM/patches: patch-include_llvm_Support_Host.h
            patch-lib_Support_Unix_Program.inc
        pkgsrc/lang/llvm/patches: patch-include_llvm_Support_Host.h
            patch-lib_Support_Unix_Path.inc
            patch-utils_unittest_googletest_include_gtest_internal_gtest-port-arch.h
            patch-utils_unittest_googletest_include_gtest_internal_gtest-port.h

Log Message:
llvm: updated to 5.0.0

5.0.0:
Non-comprehensive list of changes in this release
* LLVM’s WeakVH has been renamed to WeakTrackingVH and a new WeakVH has been introduced. The new WeakVH nulls itself out on deletion, but does not track values across RAUW.
* A new library named BinaryFormat has been created which holds a collection of code which previously lived in Support. This includes the file_magic structure and identify_magic functions, as well as 
all the structure and type definitions for DWARF, ELF, COFF, WASM, and MachO file formats.
* The tool llvm-pdbdump has been renamed llvm-pdbutil to better reflect its nature as a general purpose PDB manipulation / diagnostics tool that does more than just dumping contents.
* The BBVectorize pass has been removed. It was fully replaced and no longer used back in 2014 but we didn’t get around to removing it. Now it is gone. The SLP vectorizer is the suggested non-loop 
vectorization pass.
* A new tool opt-viewer.py has been added to visualize optimization remarks in HTML. The tool processes the YAML files produced by clang with the -fsave-optimization-record option.
* A new CMake macro LLVM_REVERSE_ITERATION has been added. If enabled, all supported unordered LLVM containers would be iterated in reverse order. This is useful for uncovering non-determinism caused 
by iteration of unordered containers. Currently, it supports reverse iteration of SmallPtrSet and DenseMap.
* A new tool llvm-dlltool has been added to create short import libraries from GNU style definition files. The tool utilizes the PE COFF SPEC Import Library Format and PE COFF Auxiliary Weak 
Externals Format to achieve compatibility with LLD and MSVC LINK.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/devel/lldb/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/lldb/PLIST
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/lldb/PLIST.Darwin
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/lldb/distinfo
cvs rdiff -u -r1.3 -r0 \
    pkgsrc/devel/lldb/patches/patch-scripts_Python_finishSwigPythonLLDB.py
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/devel/lldb/patches/patch-source_Host_netbsd_Host.cpp \
    pkgsrc/devel/lldb/patches/patch-source_Host_netbsd_HostThreadNetBSD.cpp
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/polly/Makefile \
    pkgsrc/devel/polly/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/polly/PLIST
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/polly/patches/patch-CMakeLists.txt
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/devel/polly/patches/patch-lib_External_isl_configure
cvs rdiff -u -r1.23 -r1.24 pkgsrc/lang/clang/Makefile.common
cvs rdiff -u -r1.21 -r1.22 pkgsrc/lang/clang/PLIST
cvs rdiff -u -r1.48 -r1.49 pkgsrc/lang/clang/distinfo
cvs rdiff -u -r1.25 -r1.26 pkgsrc/lang/libLLVM/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/lang/libLLVM/PLIST
cvs rdiff -u -r1.10 -r1.11 pkgsrc/lang/libLLVM/distinfo
cvs rdiff -u -r1.4 -r1.5 \
    pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake
cvs rdiff -u -r1.3 -r0 \
    pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/lang/libLLVM/patches/patch-lib_Support_Unix_Program.inc
cvs rdiff -u -r1.3 -r1.4 \
    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.9 -r1.10 pkgsrc/lang/libunwind/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/libunwind/distinfo
cvs rdiff -u -r1.25 -r1.26 pkgsrc/lang/llvm/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/llvm/PLIST
cvs rdiff -u -r1.10 -r1.11 pkgsrc/lang/llvm/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/llvm/patches/patch-cmake_config-ix.cmake \
    pkgsrc/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt
cvs rdiff -u -r1.3 -r0 \
    pkgsrc/lang/llvm/patches/patch-include_llvm_Support_Host.h
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/lang/llvm/patches/patch-lib_Support_Unix_Path.inc \
    pkgsrc/lang/llvm/patches/patch-utils_unittest_googletest_include_gtest_internal_gtest-port-arch.h \
    pkgsrc/lang/llvm/patches/patch-utils_unittest_googletest_include_gtest_internal_gtest-port.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.12 pkgsrc/devel/lldb/Makefile:1.13
--- pkgsrc/devel/lldb/Makefile:1.12     Sun Jul 16 16:10:05 2017
+++ pkgsrc/devel/lldb/Makefile  Fri Dec  1 19:22:12 2017
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.12 2017/07/16 16:10:05 adam Exp $
+# $NetBSD: Makefile,v 1.13 2017/12/01 19:22:12 adam Exp $
 
-DISTNAME=      lldb-4.0.1.src
+DISTNAME=      lldb-5.0.0.src
 PKGNAME=       ${DISTNAME:S/.src//}
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
@@ -11,6 +11,8 @@ HOMEPAGE=     http://lldb.org/
 COMMENT=       Next generation, high-performance debugger
 LICENSE=       modified-bsd
 
+DEPENDS+=      llvm-${PKGVERSION_NOREV}{,nb*}:../../lang/llvm
+DEPENDS+=      clang-${PKGVERSION_NOREV}{,nb*}:../../lang/clang
 DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
 
 CONFIGURE_DIRS=                ${WRKDIR}/build
@@ -31,6 +33,7 @@ CMAKE_ARGS+=  -DCMAKE_BUILD_TYPE=Release
 CMAKE_ARGS+=   -DCMAKE_C_COMPILER=${CC:Q}
 CMAKE_ARGS+=   -DCMAKE_CXX_COMPILER=${CXX:Q}
 CMAKE_ARGS+=   -DHAVE_CXX_ATOMICS64_WITHOUT_LIB=ON
+CMAKE_ARGS+=   -DLLDB_CODESIGN_IDENTITY=""
 CMAKE_ARGS+=   -DLLDB_USE_SYSTEM_SIX:BOOL=TRUE
 
 CHECK_PORTABILITY_SKIP=        utils/buildit/build_llvm
@@ -81,9 +84,7 @@ post-extract:
 .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"
-DEPENDS+=      llvm-${PKGVERSION_NOREV}{,nb*}:../../lang/llvm
 .include "../../lang/llvm/buildlink3.mk"
 .include "../../lang/python/application.mk"
 .include "../../lang/python/tool.mk"

Index: pkgsrc/devel/lldb/PLIST
diff -u pkgsrc/devel/lldb/PLIST:1.6 pkgsrc/devel/lldb/PLIST:1.7
--- pkgsrc/devel/lldb/PLIST:1.6 Tue May  9 12:49:56 2017
+++ pkgsrc/devel/lldb/PLIST     Fri Dec  1 19:22:12 2017
@@ -1,11 +1,8 @@
-@comment $NetBSD: PLIST,v 1.6 2017/05/09 12:49:56 kamil Exp $
+@comment $NetBSD: PLIST,v 1.7 2017/12/01 19:22:12 adam Exp $
 bin/lldb
-bin/${PKGNAME}
 bin/lldb-argdumper
 bin/lldb-mi
-bin/lldb-mi-${PKGVERSION}
 bin/lldb-server
-bin/lldb-server-${PKGVERSION}
 include/lldb/API/LLDB.h
 include/lldb/API/SBAddress.h
 include/lldb/API/SBAttachInfo.h
@@ -56,6 +53,8 @@ include/lldb/API/SBTarget.h
 include/lldb/API/SBThread.h
 include/lldb/API/SBThreadCollection.h
 include/lldb/API/SBThreadPlan.h
+include/lldb/API/SBTrace.h
+include/lldb/API/SBTraceOptions.h
 include/lldb/API/SBType.h
 include/lldb/API/SBTypeCategory.h
 include/lldb/API/SBTypeEnumMember.h
@@ -97,34 +96,21 @@ include/lldb/Core/AddressResolver.h
 include/lldb/Core/AddressResolverFileLine.h
 include/lldb/Core/AddressResolverName.h
 include/lldb/Core/ArchSpec.h
-include/lldb/Core/Baton.h
 include/lldb/Core/Broadcaster.h
 include/lldb/Core/ClangForward.h
 include/lldb/Core/Communication.h
-include/lldb/Core/Connection.h
-include/lldb/Core/ConstString.h
-include/lldb/Core/DataBuffer.h
-include/lldb/Core/DataBufferHeap.h
-include/lldb/Core/DataBufferMemoryMap.h
-include/lldb/Core/DataEncoder.h
-include/lldb/Core/DataExtractor.h
 include/lldb/Core/Debugger.h
 include/lldb/Core/Disassembler.h
+include/lldb/Core/DumpDataExtractor.h
 include/lldb/Core/EmulateInstruction.h
-include/lldb/Core/Error.h
 include/lldb/Core/Event.h
-include/lldb/Core/FastDemangle.h
 include/lldb/Core/FileLineResolver.h
 include/lldb/Core/FileSpecList.h
-include/lldb/Core/Flags.h
 include/lldb/Core/FormatEntity.h
-include/lldb/Core/History.h
 include/lldb/Core/IOHandler.h
 include/lldb/Core/IOStreamMacros.h
 include/lldb/Core/Listener.h
 include/lldb/Core/LoadedModuleInfoList.h
-include/lldb/Core/Log.h
-include/lldb/Core/Logging.h
 include/lldb/Core/Mangled.h
 include/lldb/Core/MappedHash.h
 include/lldb/Core/Module.h
@@ -136,34 +122,23 @@ include/lldb/Core/PluginInterface.h
 include/lldb/Core/PluginManager.h
 include/lldb/Core/RangeMap.h
 include/lldb/Core/RegisterValue.h
-include/lldb/Core/RegularExpression.h
 include/lldb/Core/STLUtils.h
 include/lldb/Core/Scalar.h
 include/lldb/Core/SearchFilter.h
 include/lldb/Core/Section.h
 include/lldb/Core/SourceManager.h
 include/lldb/Core/State.h
-include/lldb/Core/Stream.h
 include/lldb/Core/StreamAsynchronousIO.h
 include/lldb/Core/StreamBuffer.h
-include/lldb/Core/StreamCallback.h
 include/lldb/Core/StreamFile.h
-include/lldb/Core/StreamGDBRemote.h
-include/lldb/Core/StreamString.h
-include/lldb/Core/StreamTee.h
-include/lldb/Core/StringList.h
-include/lldb/Core/StructuredData.h
+include/lldb/Core/StructuredDataImpl.h
 include/lldb/Core/ThreadSafeDenseMap.h
 include/lldb/Core/ThreadSafeDenseSet.h
 include/lldb/Core/ThreadSafeSTLMap.h
 include/lldb/Core/ThreadSafeSTLVector.h
 include/lldb/Core/ThreadSafeValue.h
-include/lldb/Core/Timer.h
-include/lldb/Core/UUID.h
 include/lldb/Core/UniqueCStringMap.h
-include/lldb/Core/UserID.h
 include/lldb/Core/UserSettingsController.h
-include/lldb/Core/VMRange.h
 include/lldb/Core/Value.h
 include/lldb/Core/ValueObject.h
 include/lldb/Core/ValueObjectCast.h
@@ -219,10 +194,8 @@ include/lldb/Host/Config.h
 include/lldb/Host/ConnectionFileDescriptor.h
 include/lldb/Host/Debug.h
 include/lldb/Host/Editline.h
-include/lldb/Host/Endian.h
 include/lldb/Host/File.h
 include/lldb/Host/FileCache.h
-include/lldb/Host/FileSpec.h
 include/lldb/Host/FileSystem.h
 include/lldb/Host/Host.h
 include/lldb/Host/HostGetOpt.h
@@ -235,7 +208,6 @@ include/lldb/Host/HostNativeThreadBase.h
 include/lldb/Host/HostNativeThreadForward.h
 include/lldb/Host/HostProcess.h
 include/lldb/Host/HostThread.h
-include/lldb/Host/IOObject.h
 include/lldb/Host/LockFile.h
 include/lldb/Host/LockFileBase.h
 include/lldb/Host/MainLoop.h
@@ -248,46 +220,36 @@ include/lldb/Host/PosixApi.h
 include/lldb/Host/Predicate.h
 include/lldb/Host/ProcessLauncher.h
 include/lldb/Host/ProcessRunLock.h
+include/lldb/Host/PseudoTerminal.h
 include/lldb/Host/Socket.h
 include/lldb/Host/SocketAddress.h
 include/lldb/Host/StringConvert.h
 include/lldb/Host/Symbols.h
 include/lldb/Host/Terminal.h
-include/lldb/Host/ThisThread.h
 include/lldb/Host/ThreadLauncher.h
 include/lldb/Host/Time.h
 include/lldb/Host/XML.h
-include/lldb/Host/android/Config.h
 include/lldb/Host/android/HostInfoAndroid.h
 include/lldb/Host/common/GetOptInc.h
 include/lldb/Host/common/NativeBreakpoint.h
 include/lldb/Host/common/NativeBreakpointList.h
 include/lldb/Host/common/NativeProcessProtocol.h
 include/lldb/Host/common/NativeRegisterContext.h
-include/lldb/Host/common/NativeRegisterContextRegisterInfo.h
 include/lldb/Host/common/NativeThreadProtocol.h
 include/lldb/Host/common/NativeWatchpointList.h
 include/lldb/Host/common/SoftwareBreakpoint.h
 include/lldb/Host/common/TCPSocket.h
 include/lldb/Host/common/UDPSocket.h
-include/lldb/Host/freebsd/Config.h
 include/lldb/Host/freebsd/HostInfoFreeBSD.h
-include/lldb/Host/freebsd/HostThreadFreeBSD.h
 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/ProcessLauncherLinux.h
 include/lldb/Host/linux/Ptrace.h
+include/lldb/Host/linux/Support.h
 include/lldb/Host/linux/Uio.h
-include/lldb/Host/macosx/Config.h
 include/lldb/Host/macosx/HostInfoMacOSX.h
 include/lldb/Host/macosx/HostThreadMacOSX.h
-include/lldb/Host/mingw/Config.h
-include/lldb/Host/msvc/Config.h
-include/lldb/Host/netbsd/Config.h
 include/lldb/Host/netbsd/HostInfoNetBSD.h
-include/lldb/Host/netbsd/HostThreadNetBSD.h
+include/lldb/Host/openbsd/HostInfoOpenBSD.h
 include/lldb/Host/posix/ConnectionFileDescriptorPosix.h
 include/lldb/Host/posix/DomainSocket.h
 include/lldb/Host/posix/Fcntl.h
@@ -295,9 +257,8 @@ include/lldb/Host/posix/HostInfoPosix.h
 include/lldb/Host/posix/HostProcessPosix.h
 include/lldb/Host/posix/HostThreadPosix.h
 include/lldb/Host/posix/LockFilePosix.h
-include/lldb/Host/posix/MainLoopPosix.h
 include/lldb/Host/posix/PipePosix.h
-include/lldb/Host/posix/ProcessLauncherPosix.h
+include/lldb/Host/posix/ProcessLauncherPosixFork.h
 include/lldb/Host/windows/AutoHandle.h
 include/lldb/Host/windows/ConnectionGenericFileWindows.h
 include/lldb/Host/windows/HostInfoWindows.h
@@ -414,6 +375,7 @@ include/lldb/Target/LanguageRuntime.h
 include/lldb/Target/Memory.h
 include/lldb/Target/MemoryHistory.h
 include/lldb/Target/MemoryRegionInfo.h
+include/lldb/Target/ModuleCache.h
 include/lldb/Target/ObjCLanguageRuntime.h
 include/lldb/Target/OperatingSystem.h
 include/lldb/Target/PathMappingList.h
@@ -421,11 +383,13 @@ include/lldb/Target/Platform.h
 include/lldb/Target/Process.h
 include/lldb/Target/ProcessInfo.h
 include/lldb/Target/ProcessLaunchInfo.h
+include/lldb/Target/ProcessStructReader.h
 include/lldb/Target/Queue.h
 include/lldb/Target/QueueItem.h
 include/lldb/Target/QueueList.h
 include/lldb/Target/RegisterCheckpoint.h
 include/lldb/Target/RegisterContext.h
+include/lldb/Target/RegisterNumber.h
 include/lldb/Target/SectionLoadHistory.h
 include/lldb/Target/SectionLoadList.h
 include/lldb/Target/StackFrame.h
@@ -462,27 +426,54 @@ include/lldb/Target/UnixSignals.h
 include/lldb/Target/Unwind.h
 include/lldb/Target/UnwindAssembly.h
 include/lldb/Utility/AnsiTerminal.h
+include/lldb/Utility/Baton.h
 include/lldb/Utility/CleanUp.h
-include/lldb/Utility/ConvertEnum.h
+include/lldb/Utility/Connection.h
+include/lldb/Utility/ConstString.h
+include/lldb/Utility/DataBuffer.h
+include/lldb/Utility/DataBufferHeap.h
+include/lldb/Utility/DataBufferLLVM.h
+include/lldb/Utility/DataEncoder.h
+include/lldb/Utility/DataExtractor.h
 include/lldb/Utility/Either.h
+include/lldb/Utility/Endian.h
+include/lldb/Utility/FastDemangle.h
+include/lldb/Utility/FileSpec.h
+include/lldb/Utility/Flags.h
+include/lldb/Utility/History.h
+include/lldb/Utility/IOObject.h
 include/lldb/Utility/Iterable.h
 include/lldb/Utility/JSON.h
 include/lldb/Utility/LLDBAssert.h
+include/lldb/Utility/Log.h
+include/lldb/Utility/Logging.h
 include/lldb/Utility/NameMatches.h
-include/lldb/Utility/PriorityPointerPair.h
-include/lldb/Utility/ProcessStructReader.h
-include/lldb/Utility/PseudoTerminal.h
 include/lldb/Utility/Range.h
-include/lldb/Utility/RegisterNumber.h
+include/lldb/Utility/RegularExpression.h
 include/lldb/Utility/SafeMachO.h
 include/lldb/Utility/SelectHelper.h
 include/lldb/Utility/SharedCluster.h
 include/lldb/Utility/SharingPtr.h
+include/lldb/Utility/Status.h
+include/lldb/Utility/Stream.h
+include/lldb/Utility/StreamCallback.h
+include/lldb/Utility/StreamGDBRemote.h
+include/lldb/Utility/StreamString.h
+include/lldb/Utility/StreamTee.h
 include/lldb/Utility/StringExtractor.h
 include/lldb/Utility/StringLexer.h
+include/lldb/Utility/StringList.h
+include/lldb/Utility/StructuredData.h
 include/lldb/Utility/TaskPool.h
+include/lldb/Utility/TildeExpressionResolver.h
 include/lldb/Utility/Timeout.h
-include/lldb/Utility/Utils.h
+include/lldb/Utility/Timer.h
+include/lldb/Utility/TraceOptions.h
+include/lldb/Utility/UUID.h
+include/lldb/Utility/UriParser.h
+include/lldb/Utility/UserID.h
+include/lldb/Utility/VASPrintf.h
+include/lldb/Utility/VMRange.h
 include/lldb/lldb-defines.h
 include/lldb/lldb-enumerations.h
 include/lldb/lldb-forward.h
@@ -496,8 +487,8 @@ 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}
+${PLIST.posix}lib/liblldb.so.5
 lib/liblldbBase.a
 lib/liblldbBreakpoint.a
 lib/liblldbCommands.a
@@ -536,8 +527,10 @@ lib/liblldbPluginInstructionARM.a
 lib/liblldbPluginInstructionARM64.a
 lib/liblldbPluginInstructionMIPS.a
 lib/liblldbPluginInstructionMIPS64.a
-lib/liblldbPluginInstrumentationRuntimeAddressSanitizer.a
-lib/liblldbPluginInstrumentationRuntimeThreadSanitizer.a
+lib/liblldbPluginInstrumentationRuntimeASan.a
+lib/liblldbPluginInstrumentationRuntimeMainThreadChecker.a
+lib/liblldbPluginInstrumentationRuntimeTSan.a
+lib/liblldbPluginInstrumentationRuntimeUBSan.a
 lib/liblldbPluginJITLoaderGDB.a
 lib/liblldbPluginJavaLanguage.a
 lib/liblldbPluginLanguageRuntimeGo.a
@@ -561,13 +554,14 @@ lib/liblldbPluginPlatformKalimba.a
 lib/liblldbPluginPlatformLinux.a
 lib/liblldbPluginPlatformMacOSX.a
 lib/liblldbPluginPlatformNetBSD.a
+lib/liblldbPluginPlatformOpenBSD.a
 lib/liblldbPluginPlatformPOSIX.a
 lib/liblldbPluginPlatformWindows.a
+${PLIST.posix}lib/liblldbPluginProcess${OPSYS}.a
 lib/liblldbPluginProcessElfCore.a
 lib/liblldbPluginProcessGDBRemote.a
-lib/liblldbPluginProcessMachCore.a
-${PLIST.posix}lib/liblldbPluginProcessPOSIX.a
 lib/liblldbPluginProcessMinidump.a
+${PLIST.posix}lib/liblldbPluginProcessPOSIX.a
 lib/liblldbPluginProcessUtility.a
 lib/liblldbPluginRenderScriptRuntime.a
 lib/liblldbPluginScriptInterpreterNone.a
@@ -583,6 +577,7 @@ lib/liblldbPluginUnwindAssemblyX86.a
 lib/liblldbSymbol.a
 lib/liblldbTarget.a
 lib/liblldbUtility.a
+lib/liblldbUtilityHelpers.a
 ${PYSITELIB}/lldb/__init__.py
 ${PYSITELIB}/lldb/_lldb.so
 ${PYSITELIB}/lldb/embedded_interpreter.py

Index: pkgsrc/devel/lldb/PLIST.Darwin
diff -u pkgsrc/devel/lldb/PLIST.Darwin:1.2 pkgsrc/devel/lldb/PLIST.Darwin:1.3
--- pkgsrc/devel/lldb/PLIST.Darwin:1.2  Fri Mar 17 22:38:17 2017
+++ pkgsrc/devel/lldb/PLIST.Darwin      Fri Dec  1 19:22:12 2017
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST.Darwin,v 1.2 2017/03/17 22:38:17 adam Exp $
+@comment $NetBSD: PLIST.Darwin,v 1.3 2017/12/01 19:22:12 adam Exp $
 bin/darwin-debug
 bin/debugserver
 lib/liblldbPluginDynamicLoaderDarwinKernel.a
 lib/liblldbPluginProcessMacOSXKernel.a
+lib/liblldbPluginProcessMachCore.a
 lib/liblldbPluginSymbolVendorMacOSX.a
 ${PYSITELIB}/lldb/diagnose/__init__.py
 ${PYSITELIB}/lldb/diagnose/diagnose_nsstring.py

Index: pkgsrc/devel/lldb/distinfo
diff -u pkgsrc/devel/lldb/distinfo:1.8 pkgsrc/devel/lldb/distinfo:1.9
--- pkgsrc/devel/lldb/distinfo:1.8      Tue Jul 11 19:47:37 2017
+++ pkgsrc/devel/lldb/distinfo  Fri Dec  1 19:22:12 2017
@@ -1,11 +1,8 @@
-$NetBSD: distinfo,v 1.8 2017/07/11 19:47:37 adam Exp $
+$NetBSD: distinfo,v 1.9 2017/12/01 19:22:12 adam Exp $
 
-SHA1 (lldb-4.0.1.src.tar.xz) = fd7db5d833401d315f0bf7b8a43080a8bbf91e9a
-RMD160 (lldb-4.0.1.src.tar.xz) = b97f62bb00f2df15e7ba9f720c4981b3fac232d7
-SHA512 (lldb-4.0.1.src.tar.xz) = 1d94d7dfcc0614b16d0ef83436bbe814b39e34ba18394361bb9f13ad408ae9b29affa9a5d58c50c8dcd83765a39ae4d59ffabb7d8cd1358fd2fbd198b2de2ab6
-Size (lldb-4.0.1.src.tar.xz) = 19088212 bytes
+SHA1 (lldb-5.0.0.src.tar.xz) = a8b64d7c34b6e76e2ba5feb173c13ab8e5f96be9
+RMD160 (lldb-5.0.0.src.tar.xz) = 95527bacf127bec8ea034033c1e9498452c7573d
+SHA512 (lldb-5.0.0.src.tar.xz) = bc70953c7f6b3f0bc797461fb53d9c60c5ab36c0b9aae815a3c37fc597a61c7220695ee3b60a9682486d2e4713c5f78ea85e853e13c587e356510a1c99a62ba9
+Size (lldb-5.0.0.src.tar.xz) = 19203772 bytes
 SHA1 (patch-cmake_modules_LLDBStandalone.cmake) = 8f7d06a4b3a1e996af9af4affd650291c4f01fe5
-SHA1 (patch-scripts_Python_finishSwigPythonLLDB.py) = 512819d31de6280ccb143ed2fe5a37ecf58265ea
 SHA1 (patch-scripts_Python_modules_readline_readline.cpp) = 4a030226c47cf7d54ebc727e92e278c163e48bf5
-SHA1 (patch-source_Host_netbsd_Host.cpp) = 15eb83a4ec7f8a3187ad9a5a2751cf02c248caf1
-SHA1 (patch-source_Host_netbsd_HostThreadNetBSD.cpp) = df5d1bb7ae280184706b733625582d058a25ab9f

Index: pkgsrc/devel/polly/Makefile
diff -u pkgsrc/devel/polly/Makefile:1.6 pkgsrc/devel/polly/Makefile:1.7
--- pkgsrc/devel/polly/Makefile:1.6     Tue Jul 11 19:47:37 2017
+++ pkgsrc/devel/polly/Makefile Fri Dec  1 19:22:12 2017
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2017/07/11 19:47:37 adam Exp $
+# $NetBSD: Makefile,v 1.7 2017/12/01 19:22:12 adam Exp $
 
-DISTNAME=      polly-4.0.1.src
+DISTNAME=      polly-5.0.0.src
 PKGNAME=       ${DISTNAME:S/.src//}
 CATEGORIES=    devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
@@ -11,6 +11,8 @@ HOMEPAGE=     http://polly.llvm.org/
 COMMENT=       Polyhedral optimizations for LLVM
 LICENSE=       modified-bsd
 
+DEPENDS+=      llvm-${PKGVERSION_NOREV}{,nb*}:../../lang/llvm
+
 CONFIGURE_DIRS=                ${WRKDIR}/build
 CMAKE_ARG_PATH=                ${WRKSRC}
 
@@ -25,6 +27,5 @@ CMAKE_ARGS+=  -DCMAKE_CXX_COMPILER=${CXX:
 post-extract:
        ${RUN} mkdir -p ${WRKDIR}/build
 
-DEPENDS+=      llvm-${PKGVERSION_NOREV}{,nb*}:../../lang/llvm
 .include "../../lang/llvm/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/polly/distinfo
diff -u pkgsrc/devel/polly/distinfo:1.6 pkgsrc/devel/polly/distinfo:1.7
--- pkgsrc/devel/polly/distinfo:1.6     Tue Jul 11 19:47:37 2017
+++ pkgsrc/devel/polly/distinfo Fri Dec  1 19:22:12 2017
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.6 2017/07/11 19:47:37 adam Exp $
+$NetBSD: distinfo,v 1.7 2017/12/01 19:22:12 adam Exp $
 
-SHA1 (polly-4.0.1.src.tar.xz) = 2687a8e76d199915aadfa4b2ab14b33cb2f8ce1d
-RMD160 (polly-4.0.1.src.tar.xz) = 473d2c41d30a1e504cf43ffd02f1ce11b0c3c54e
-SHA512 (polly-4.0.1.src.tar.xz) = 19a2d1607fd3eba5dfc678cfa3eec1fd0bf6a548113f0d0c6a9f19bb2f1713c357ac660cbe5c6765757265d53aa2152500dd8cdc5062af253b8dac56129e3d5c
-Size (polly-4.0.1.src.tar.xz) = 8788800 bytes
-SHA1 (patch-CMakeLists.txt) = 4f9c2d74c9ed58e1835dd1113859ff0eed06e44a
-SHA1 (patch-lib_External_isl_configure) = 5b82426a85afd95923418bbeef5b7bbe4bc43748
+SHA1 (polly-5.0.0.src.tar.xz) = d242c7b2f4a2bf5d2393d2df53092e0945c52bd5
+RMD160 (polly-5.0.0.src.tar.xz) = f9e13c9c8120db4133e9b6937730da09c8dcb9c6
+SHA512 (polly-5.0.0.src.tar.xz) = c835a9c5a3ca20cd094b3b5cfb69a30ca66bb07fd06b2efac25efb4c41f4c841eed72dd3c8efa05daf804398f4387d453506b8dbdb76b7117600409dc935851c
+Size (polly-5.0.0.src.tar.xz) = 8499644 bytes
+SHA1 (patch-CMakeLists.txt) = 8138e11f858f23e0069c8fa0c07eff2b7aaf8c43
+SHA1 (patch-lib_External_isl_configure) = 97c83ab1d2f83e60ab39b41cf055c18074167e66

Index: pkgsrc/devel/polly/PLIST
diff -u pkgsrc/devel/polly/PLIST:1.3 pkgsrc/devel/polly/PLIST:1.4
--- pkgsrc/devel/polly/PLIST:1.3        Fri Mar 17 22:38:17 2017
+++ pkgsrc/devel/polly/PLIST    Fri Dec  1 19:22:12 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2017/03/17 22:38:17 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2017/12/01 19:22:12 adam Exp $
 include/polly/Canonicalization.h
 include/polly/CodeGen/BlockGenerators.h
 include/polly/CodeGen/CodeGeneration.h
@@ -8,6 +8,8 @@ include/polly/CodeGen/IslAst.h
 include/polly/CodeGen/IslExprBuilder.h
 include/polly/CodeGen/IslNodeBuilder.h
 include/polly/CodeGen/LoopGenerators.h
+include/polly/CodeGen/PPCGCodeGeneration.h
+include/polly/CodeGen/PerfMonitor.h
 include/polly/CodeGen/RuntimeDebugBuilder.h
 include/polly/CodeGen/Utils.h
 include/polly/Config/config.h
@@ -18,6 +20,7 @@ include/polly/FlattenSchedule.h
 include/polly/LinkAllPasses.h
 include/polly/Options.h
 include/polly/PolyhedralInfo.h
+include/polly/PruneUnprofitable.h
 include/polly/RegisterPasses.h
 include/polly/ScheduleOptimizer.h
 include/polly/ScopBuilder.h
@@ -25,12 +28,89 @@ include/polly/ScopDetection.h
 include/polly/ScopDetectionDiagnostic.h
 include/polly/ScopInfo.h
 include/polly/ScopPass.h
+include/polly/Simplify.h
+include/polly/Support/DumpModulePass.h
 include/polly/Support/GICHelper.h
+include/polly/Support/ISLOStream.h
+include/polly/Support/ISLTools.h
+include/polly/Support/LinkGPURuntime.h
 include/polly/Support/SCEVAffinator.h
 include/polly/Support/SCEVValidator.h
 include/polly/Support/ScopHelper.h
 include/polly/Support/ScopLocation.h
+include/polly/Support/VirtualInstruction.h
+include/polly/isl-noexceptions.h
+include/polly/isl/aff.h
+include/polly/isl/aff_type.h
+include/polly/isl/arg.h
+include/polly/isl/ast.h
+include/polly/isl/ast_build.h
+include/polly/isl/ast_type.h
+include/polly/isl/band.h
+include/polly/isl/constraint.h
+include/polly/isl/ctx.h
+include/polly/isl/deprecated/aff_int.h
+include/polly/isl/deprecated/ast_int.h
+include/polly/isl/deprecated/constraint_int.h
+include/polly/isl/deprecated/ilp_int.h
+include/polly/isl/deprecated/int.h
+include/polly/isl/deprecated/map_int.h
+include/polly/isl/deprecated/mat_int.h
+include/polly/isl/deprecated/point_int.h
+include/polly/isl/deprecated/polynomial_int.h
+include/polly/isl/deprecated/set_int.h
+include/polly/isl/deprecated/union_map_int.h
+include/polly/isl/deprecated/val_int.h
+include/polly/isl/deprecated/vec_int.h
+include/polly/isl/flow.h
+include/polly/isl/hash.h
+include/polly/isl/hmap.h
+include/polly/isl/id.h
+include/polly/isl/id_to_ast_expr.h
+include/polly/isl/id_to_id.h
+include/polly/isl/id_to_pw_aff.h
+include/polly/isl/ilp.h
+include/polly/isl/list.h
+include/polly/isl/local_space.h
+include/polly/isl/lp.h
+include/polly/isl/map.h
+include/polly/isl/map_to_basic_set.h
+include/polly/isl/map_type.h
+include/polly/isl/mat.h
+include/polly/isl/maybe.h
+include/polly/isl/maybe_ast_expr.h
+include/polly/isl/maybe_basic_set.h
+include/polly/isl/maybe_id.h
+include/polly/isl/maybe_pw_aff.h
+include/polly/isl/maybe_templ.h
+include/polly/isl/multi.h
+include/polly/isl/obj.h
+include/polly/isl/options.h
+include/polly/isl/point.h
+include/polly/isl/polynomial.h
+include/polly/isl/polynomial_type.h
+include/polly/isl/printer.h
+include/polly/isl/printer_type.h
+include/polly/isl/schedule.h
+include/polly/isl/schedule_node.h
+include/polly/isl/schedule_type.h
+include/polly/isl/set.h
+include/polly/isl/set_type.h
+include/polly/isl/space.h
+include/polly/isl/stdint.h
+include/polly/isl/stream.h
+include/polly/isl/union_map.h
+include/polly/isl/union_map_type.h
+include/polly/isl/union_set.h
+include/polly/isl/union_set_type.h
+include/polly/isl/val.h
+include/polly/isl/val_gmp.h
+include/polly/isl/vec.h
+include/polly/isl/version.h
+include/polly/isl/vertices.h
 lib/LLVMPolly.so
+lib/cmake/polly/PollyConfig.cmake
+lib/cmake/polly/PollyExports-all.cmake
 lib/libPolly.a
 lib/libPollyISL.a
 lib/libPollyPPCG.a

Index: pkgsrc/devel/polly/patches/patch-CMakeLists.txt
diff -u pkgsrc/devel/polly/patches/patch-CMakeLists.txt:1.3 pkgsrc/devel/polly/patches/patch-CMakeLists.txt:1.4
--- pkgsrc/devel/polly/patches/patch-CMakeLists.txt:1.3 Fri Mar 17 22:38:17 2017
+++ pkgsrc/devel/polly/patches/patch-CMakeLists.txt     Fri Dec  1 19:22:12 2017
@@ -1,223 +1,10 @@
-$NetBSD: patch-CMakeLists.txt,v 1.3 2017/03/17 22:38:17 adam Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.4 2017/12/01 19:22:12 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)
+Disable tests: they require missing files from standard LLVM build (lit tool)
 
---- CMakeLists.txt.orig        2017-01-11 01:07:37.000000000 +0000
+--- CMakeLists.txt.orig        2017-07-11 11:37:35.000000000 +0000
 +++ CMakeLists.txt
-@@ -1,117 +1,106 @@
- # Check if this is a in tree build.
- if (NOT DEFINED LLVM_MAIN_SRC_DIR)
-   project(Polly)
--  cmake_minimum_required(VERSION 2.8)
-+  cmake_minimum_required(VERSION 3.4.3)
- 
--  # Where is LLVM installed?
--  set(LLVM_INSTALL_ROOT "" CACHE PATH "Root of LLVM install.")
--  # Check if the LLVM_INSTALL_ROOT valid.
--  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, 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
--      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()
--  # Add the llvm header path.
--  include_directories(${LLVM_INSTALL_ROOT}/include/)
--
--  # Get the system librarys that will link into LLVM.
--  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
--                  OUTPUT_STRIP_TRAILING_WHITESPACE)
--  include_directories( ${LLVM_INCLUDE_DIR} )
--
--  # Get the TARGET_TRIPLE
--  execute_process(COMMAND "${LLVM_INSTALL_ROOT}/bin/llvm-config" --host-target
--                  OUTPUT_VARIABLE TARGET_TRIPLE
--                  OUTPUT_STRIP_TRAILING_WHITESPACE)
--
--  # And then set the cxx flags.
--  execute_process(COMMAND "${LLVM_INSTALL_ROOT}/bin/llvm-config" --cxxflags
--                  OUTPUT_VARIABLE LLVM_CXX_FLAGS
--                  OUTPUT_STRIP_TRAILING_WHITESPACE)
--  set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${LLVM_CXX_FLAGS})
--
--  # Check LLVM_ENABLE_ASSERTIONS
--  execute_process(COMMAND "${LLVM_INSTALL_ROOT}/bin/llvm-config" --assertion-mode
--                  OUTPUT_VARIABLE LLVM_ENABLE_ASSERTIONS
--                  OUTPUT_STRIP_TRAILING_WHITESPACE)
--  # Copied from LLVM's HandleLLVMOptions.cmake
--  if( LLVM_ENABLE_ASSERTIONS )
--    # MSVC doesn't like _DEBUG on release builds. See PR 4379.
--    if( NOT MSVC )
--      add_definitions( -D_DEBUG )
--    endif()
--    # On non-Debug builds cmake automatically defines NDEBUG, so we
--    # explicitly undefine it:
--    if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
--      add_definitions( -UNDEBUG )
--      # Also remove /D NDEBUG to avoid MSVC warnings about conflicting defines.
--      foreach (flags_var_to_scrub
--          CMAKE_CXX_FLAGS_RELEASE
--          CMAKE_CXX_FLAGS_RELWITHDEBINFO
--          CMAKE_CXX_FLAGS_MINSIZEREL
--          CMAKE_C_FLAGS_RELEASE
--          CMAKE_C_FLAGS_RELWITHDEBINFO
--          CMAKE_C_FLAGS_MINSIZEREL)
--        string (REGEX REPLACE "(^| )[/-]D *NDEBUG($| )" " "
--          "${flags_var_to_scrub}" "${${flags_var_to_scrub}}")
--      endforeach()
--    endif()
--  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")
-+  if(LLVM_CONFIG)
-+    message(STATUS "Found LLVM_CONFIG as ${LLVM_CONFIG}")
-+    set(CONFIG_COMMAND ${LLVM_CONFIG}
-+      "--assertion-mode"
-+      "--bindir"
-+      "--libdir"
-+      "--includedir"
-+      "--prefix"
-+      "--src-root")
-+    execute_process(
-+      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]*" ";"
-+        CONFIG_OUTPUT ${CONFIG_OUTPUT})
-+    else()
-+      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)
-+  list(GET CONFIG_OUTPUT 3 INCLUDE_DIR)
-+  list(GET CONFIG_OUTPUT 4 LLVM_OBJ_ROOT)
-+  list(GET CONFIG_OUTPUT 5 MAIN_SRC_DIR)
-+      
-+  if(NOT MSVC_IDE)  
-+    set(LLVM_ENABLE_ASSERTIONS ${ENABLE_ASSERTIONS}
-+      CACHE BOOL "Enable assertions")
-+    # Assertions should follow llvm-config's.
-+    mark_as_advanced(LLVM_ENABLE_ASSERTIONS)
-+  endif()
-+      
-+  set(LLVM_TOOLS_BINARY_DIR ${TOOLS_BINARY_DIR} CACHE PATH "Path to llvm/bin")
-+  set(LLVM_LIBRARY_DIR ${LIBRARY_DIR} CACHE PATH "Path to llvm/lib")
-+  set(LLVM_MAIN_INCLUDE_DIR ${INCLUDE_DIR} CACHE PATH "Path to llvm/include")
-+  set(LLVM_DIR ${LLVM_OBJ_ROOT}/cmake/modules/CMakeFiles CACHE PATH "Path to LLVM build tree CMake files")
-+  set(LLVM_BINARY_DIR ${LLVM_OBJ_ROOT} CACHE PATH "Path to LLVM build tree")
-+  set(LLVM_MAIN_SRC_DIR ${MAIN_SRC_DIR} CACHE PATH "Path to LLVM source tree")
-+    
-+  find_program(LLVM_TABLEGEN_EXE "llvm-tblgen" ${LLVM_TOOLS_BINARY_DIR}
-+    NO_DEFAULT_PATH)
-+  
-+  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}")
-+    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})
-+  if(WIN32 OR CYGWIN)
-+    # DLL platform -- put DLLs into bin.
-+    set(LLVM_SHLIB_OUTPUT_INTDIR ${LLVM_RUNTIME_OUTPUT_INTDIR})
-+  else()
-+    set(LLVM_SHLIB_OUTPUT_INTDIR ${LLVM_LIBRARY_OUTPUT_INTDIR})
-+  endif()
-+ 
-+  include(AddLLVM)
-+  include(HandleLLVMOptions)
-+  include(TableGen)
-+
-+  # Import CMake library targets from LLVM and Clang.
-+  include("${LLVM_OBJ_ROOT}/lib/cmake/llvm/LLVMConfig.cmake")
-+  set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
-+  set(LLVM_BINARY_DIR ${CMAKE_BINARY_DIR})
-+
-+  set(CMAKE_INCLUDE_CURRENT_DIR ON)
-+  include_directories("${LLVM_BINARY_DIR}/include" "${LLVM_MAIN_INCLUDE_DIR}")
-+  # Next three include directories are needed when llvm-config is located in build directory.
-+  # LLVM and Cland are assumed to be built together
-+  if (EXISTS "${LLVM_OBJ_ROOT}/include")
-+    include_directories("${LLVM_OBJ_ROOT}/include")
-   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_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
-+ 
-+  set(POLLY_BUILT_STANDALONE 1)
- endif ()
- 
- set(POLLY_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
-@@ -190,10 +179,6 @@ add_definitions( -D_GNU_SOURCE )
+@@ -176,10 +176,6 @@ add_definitions( -D_GNU_SOURCE )
  
  add_subdirectory(docs)
  add_subdirectory(lib)
@@ -226,5 +13,5 @@ Disable tests - they require missing fil
 -  add_subdirectory(unittests)
 -endif ()
  add_subdirectory(tools)
+ add_subdirectory(cmake)
  # TODO: docs.
- 

Index: pkgsrc/devel/polly/patches/patch-lib_External_isl_configure
diff -u pkgsrc/devel/polly/patches/patch-lib_External_isl_configure:1.2 pkgsrc/devel/polly/patches/patch-lib_External_isl_configure:1.3
--- pkgsrc/devel/polly/patches/patch-lib_External_isl_configure:1.2     Fri Mar 17 22:38:17 2017
+++ pkgsrc/devel/polly/patches/patch-lib_External_isl_configure Fri Dec  1 19:22:12 2017
@@ -1,19 +1,19 @@
-$NetBSD: patch-lib_External_isl_configure,v 1.2 2017/03/17 22:38:17 adam Exp $
+$NetBSD: patch-lib_External_isl_configure,v 1.3 2017/12/01 19:22:12 adam Exp $
 
 Fix shell portability issue.
 
---- lib/External/isl/configure.orig    2016-12-22 23:08:57.000000000 +0000
+--- lib/External/isl/configure.orig    2017-07-04 15:54:11.000000000 +0000
 +++ lib/External/isl/configure
-@@ -18156,7 +18156,7 @@ else
+@@ -18843,7 +18843,7 @@ else
+   HAVE_CXX11_FALSE=
  fi
  
- 
 - if test "x$with_int" == "ximath-32"; then
 + if test "x$with_int" = "ximath-32"; then
    SMALL_INT_OPT_TRUE=
    SMALL_INT_OPT_FALSE='#'
  else
-@@ -18164,7 +18164,7 @@ else
+@@ -18851,7 +18851,7 @@ else
    SMALL_INT_OPT_FALSE=
  fi
  
@@ -22,7 +22,7 @@ Fix shell portability issue.
  
  
  $as_echo "#define USE_SMALL_INT_OPT /**/" >>confdefs.h
-@@ -22524,4 +22524,3 @@ if test -n "$ac_unrecognized_opts" && te
+@@ -23261,4 +23261,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.common
diff -u pkgsrc/lang/clang/Makefile.common:1.23 pkgsrc/lang/clang/Makefile.common:1.24
--- pkgsrc/lang/clang/Makefile.common:1.23      Tue Jul 11 19:47:37 2017
+++ pkgsrc/lang/clang/Makefile.common   Fri Dec  1 19:22:12 2017
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile.common,v 1.23 2017/07/11 19:47:37 adam Exp $
+# $NetBSD: Makefile.common,v 1.24 2017/12/01 19:22:12 adam Exp $
 # used by lang/clang/Makefile
 # used by lang/clang-static-analyzer/Makefile
 
-DISTNAME=      cfe-4.0.1.src
+DISTNAME=      cfe-5.0.0.src
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
 EXTRACT_SUFX=  .tar.xz
@@ -120,6 +120,7 @@ post-extract:
 
 .include "../../textproc/libxml2/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
+.include "../../lang/python/application.mk"
 .include "../../lang/python/tool.mk"
 DEPENDS+=      llvm-${PKGVERSION_NOREV}{,nb*}:../../lang/llvm
 .include "../../lang/llvm/buildlink3.mk"

Index: pkgsrc/lang/clang/PLIST
diff -u pkgsrc/lang/clang/PLIST:1.21 pkgsrc/lang/clang/PLIST:1.22
--- pkgsrc/lang/clang/PLIST:1.21        Fri Mar 17 22:38:17 2017
+++ pkgsrc/lang/clang/PLIST     Fri Dec  1 19:22:12 2017
@@ -1,13 +1,14 @@
-@comment $NetBSD: PLIST,v 1.21 2017/03/17 22:38:17 adam Exp $
+@comment $NetBSD: PLIST,v 1.22 2017/12/01 19:22:12 adam Exp $
 bin/c-index-test
 bin/clang
 bin/clang++
-bin/clang-4.0
+bin/clang-5.0
 bin/clang-cl
 bin/clang-cpp
 bin/clang-format
 bin/clang-import-test
 bin/clang-offload-bundler
+bin/clang-rename
 include/clang-c/BuildSystem.h
 include/clang-c/CXCompilationDatabase.h
 include/clang-c/CXErrorCode.h
@@ -27,6 +28,7 @@ include/clang/AST/ASTFwd.h
 include/clang/AST/ASTImporter.h
 include/clang/AST/ASTLambda.h
 include/clang/AST/ASTMutationListener.h
+include/clang/AST/ASTStructuralEquivalence.h
 include/clang/AST/ASTTypeTraits.h
 include/clang/AST/ASTUnresolvedSet.h
 include/clang/AST/ASTVector.h
@@ -76,6 +78,7 @@ include/clang/AST/Expr.h
 include/clang/AST/ExprCXX.h
 include/clang/AST/ExprObjC.h
 include/clang/AST/ExprOpenMP.h
+include/clang/AST/ExternalASTMerger.h
 include/clang/AST/ExternalASTSource.h
 include/clang/AST/GlobalDecl.h
 include/clang/AST/LambdaCapture.h
@@ -84,6 +87,7 @@ include/clang/AST/Mangle.h
 include/clang/AST/MangleNumberingContext.h
 include/clang/AST/NSAPI.h
 include/clang/AST/NestedNameSpecifier.h
+include/clang/AST/ODRHash.h
 include/clang/AST/OpenMPClause.h
 include/clang/AST/OperationKinds.def
 include/clang/AST/OperationKinds.h
@@ -157,6 +161,8 @@ include/clang/Basic/AllDiagnostics.h
 include/clang/Basic/AttrHasAttributeImpl.inc
 include/clang/Basic/AttrKinds.h
 include/clang/Basic/AttrList.inc
+include/clang/Basic/AttrSubMatchRulesList.inc
+include/clang/Basic/AttrSubjectMatchRules.h
 include/clang/Basic/Attributes.h
 include/clang/Basic/Builtins.def
 include/clang/Basic/Builtins.h
@@ -168,6 +174,7 @@ include/clang/Basic/BuiltinsLe64.def
 include/clang/Basic/BuiltinsMips.def
 include/clang/Basic/BuiltinsNEON.def
 include/clang/Basic/BuiltinsNVPTX.def
+include/clang/Basic/BuiltinsNios2.def
 include/clang/Basic/BuiltinsPPC.def
 include/clang/Basic/BuiltinsSystemZ.def
 include/clang/Basic/BuiltinsWebAssembly.def
@@ -208,6 +215,7 @@ include/clang/Basic/LangOptions.def
 include/clang/Basic/LangOptions.h
 include/clang/Basic/Linkage.h
 include/clang/Basic/MacroBuilder.h
+include/clang/Basic/MemoryBufferCache.h
 include/clang/Basic/Module.h
 include/clang/Basic/ObjCRuntime.h
 include/clang/Basic/OpenCLExtensions.def
@@ -242,11 +250,14 @@ include/clang/Basic/Version.inc
 include/clang/Basic/VersionTuple.h
 include/clang/Basic/VirtualFileSystem.h
 include/clang/Basic/Visibility.h
+include/clang/Basic/XRayLists.h
 include/clang/Basic/arm_neon.inc
 include/clang/CodeGen/BackendUtil.h
 include/clang/CodeGen/CGFunctionInfo.h
 include/clang/CodeGen/CodeGenABITypes.h
 include/clang/CodeGen/CodeGenAction.h
+include/clang/CodeGen/ConstantInitBuilder.h
+include/clang/CodeGen/ConstantInitFuture.h
 include/clang/CodeGen/ModuleBuilder.h
 include/clang/CodeGen/ObjectFilePCHContainerOperations.h
 include/clang/CodeGen/SwiftCallingConv.h
@@ -267,6 +278,7 @@ include/clang/Driver/ToolChain.h
 include/clang/Driver/Types.def
 include/clang/Driver/Types.h
 include/clang/Driver/Util.h
+include/clang/Driver/XRayArgs.h
 include/clang/Edit/Commit.h
 include/clang/Edit/EditedSource.h
 include/clang/Edit/EditsReceiver.h
@@ -295,6 +307,7 @@ include/clang/Frontend/LogDiagnosticPrin
 include/clang/Frontend/MigratorOptions.h
 include/clang/Frontend/MultiplexConsumer.h
 include/clang/Frontend/PCHContainerOperations.h
+include/clang/Frontend/PrecompiledPreamble.h
 include/clang/Frontend/PreprocessorOutputOptions.h
 include/clang/Frontend/SerializedDiagnosticPrinter.h
 include/clang/Frontend/SerializedDiagnosticReader.h
@@ -340,9 +353,11 @@ include/clang/Lex/Token.h
 include/clang/Lex/TokenConcatenation.h
 include/clang/Lex/TokenLexer.h
 include/clang/Parse/AttrParserStringSwitches.inc
+include/clang/Parse/AttrSubMatchRulesParserStringSwitches.inc
 include/clang/Parse/ParseAST.h
 include/clang/Parse/ParseDiagnostic.h
 include/clang/Parse/Parser.h
+include/clang/Parse/RAIIObjectsForParser.h
 include/clang/Rewrite/Core/DeltaTree.h
 include/clang/Rewrite/Core/HTMLRewrite.h
 include/clang/Rewrite/Core/RewriteBuffer.h
@@ -446,6 +461,7 @@ include/clang/StaticAnalyzer/Core/PathSe
 include/clang/StaticAnalyzer/Core/PathSensitive/SValVisitor.h
 include/clang/StaticAnalyzer/Core/PathSensitive/SVals.def
 include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
+include/clang/StaticAnalyzer/Core/PathSensitive/SimpleConstraintManager.h
 include/clang/StaticAnalyzer/Core/PathSensitive/Store.h
 include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h
 include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h
@@ -473,6 +489,12 @@ include/clang/Tooling/FileMatchTrie.h
 include/clang/Tooling/FixIt.h
 include/clang/Tooling/JSONCompilationDatabase.h
 include/clang/Tooling/Refactoring.h
+include/clang/Tooling/Refactoring/AtomicChange.h
+include/clang/Tooling/Refactoring/RecursiveSymbolVisitor.h
+include/clang/Tooling/Refactoring/Rename/RenamingAction.h
+include/clang/Tooling/Refactoring/Rename/USRFinder.h
+include/clang/Tooling/Refactoring/Rename/USRFindingAction.h
+include/clang/Tooling/Refactoring/Rename/USRLocFinder.h
 include/clang/Tooling/RefactoringCallbacks.h
 include/clang/Tooling/ReplacementsYaml.h
 include/clang/Tooling/Tooling.h
@@ -506,10 +528,12 @@ lib/clang/${PKGVERSION}/include/avx512vl
 lib/clang/${PKGVERSION}/include/avx512vlcdintrin.h
 lib/clang/${PKGVERSION}/include/avx512vldqintrin.h
 lib/clang/${PKGVERSION}/include/avx512vlintrin.h
+lib/clang/${PKGVERSION}/include/avx512vpopcntdqintrin.h
 lib/clang/${PKGVERSION}/include/avxintrin.h
 lib/clang/${PKGVERSION}/include/bmi2intrin.h
 lib/clang/${PKGVERSION}/include/bmiintrin.h
 lib/clang/${PKGVERSION}/include/clflushoptintrin.h
+lib/clang/${PKGVERSION}/include/clzerointrin.h
 lib/clang/${PKGVERSION}/include/cpuid.h
 lib/clang/${PKGVERSION}/include/cuda_wrappers/algorithm
 lib/clang/${PKGVERSION}/include/cuda_wrappers/complex
@@ -528,6 +552,7 @@ lib/clang/${PKGVERSION}/include/intrin.h
 lib/clang/${PKGVERSION}/include/inttypes.h
 lib/clang/${PKGVERSION}/include/iso646.h
 lib/clang/${PKGVERSION}/include/limits.h
+lib/clang/${PKGVERSION}/include/lwpintrin.h
 lib/clang/${PKGVERSION}/include/lzcntintrin.h
 lib/clang/${PKGVERSION}/include/mm3dnow.h
 lib/clang/${PKGVERSION}/include/mm_malloc.h
@@ -573,8 +598,8 @@ 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}
+${PLIST.notdylib}lib/libclang.${SOEXT}.5
 lib/libclangAST.a
 lib/libclangASTMatchers.a
 lib/libclangAnalysis.a
@@ -595,9 +620,13 @@ lib/libclangSema.a
 lib/libclangSerialization.a
 lib/libclangTooling.a
 lib/libclangToolingCore.a
+lib/libclangToolingRefactor.a
+share/clang/bash-autocomplete.sh
 share/clang/clang-format-bbedit.applescript
 share/clang/clang-format-diff.py
 share/clang/clang-format-sublime.py
 share/clang/clang-format.el
 share/clang/clang-format.py
+share/clang/clang-rename.el
+share/clang/clang-rename.py
 share/clang/git-clang-format

Index: pkgsrc/lang/clang/distinfo
diff -u pkgsrc/lang/clang/distinfo:1.48 pkgsrc/lang/clang/distinfo:1.49
--- pkgsrc/lang/clang/distinfo:1.48     Tue Jul 11 19:47:37 2017
+++ pkgsrc/lang/clang/distinfo  Fri Dec  1 19:22:12 2017
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.48 2017/07/11 19:47:37 adam Exp $
+$NetBSD: distinfo,v 1.49 2017/12/01 19:22:12 adam Exp $
 
-SHA1 (cfe-4.0.1.src.tar.xz) = d95d1f3a67b5448f25338bf657a7d379dbf2312f
-RMD160 (cfe-4.0.1.src.tar.xz) = 4f30f077c6c39489720ec43a748d04dab0fbff79
-SHA512 (cfe-4.0.1.src.tar.xz) = 936c9e1626b27e63a4fb11f3c0cb998eeaf9a520ad6e2bcd67cb4352e59e7781ecc700df79794f3fd70473d90b7e2ba418a39038eb0146b68e843f0705c1f964
-Size (cfe-4.0.1.src.tar.xz) = 10933628 bytes
+SHA1 (cfe-5.0.0.src.tar.xz) = 8c67071be174c66264b6c7629c291c0e30ecbdc5
+RMD160 (cfe-5.0.0.src.tar.xz) = 743f1b22554c984c07798bfdbed36d429fb6ae08
+SHA512 (cfe-5.0.0.src.tar.xz) = 14acdd622310122b544c952ee5b932b7006d9d8424319f0e3974f2503d40a0cec4200fdd3d813a32ce0d877bcfbb9a5bd5c36f6142b4330e6c814f113ca2efe8
+Size (cfe-5.0.0.src.tar.xz) = 11437024 bytes
 SHA1 (patch-tools_clang-format_CMakeLists.txt) = 4efc9c9f69caf7df1dd0db384eae644c606c5ca9

Index: pkgsrc/lang/libLLVM/Makefile
diff -u pkgsrc/lang/libLLVM/Makefile:1.25 pkgsrc/lang/libLLVM/Makefile:1.26
--- pkgsrc/lang/libLLVM/Makefile:1.25   Mon Jul 24 13:13:39 2017
+++ pkgsrc/lang/libLLVM/Makefile        Fri Dec  1 19:22:13 2017
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.25 2017/07/24 13:13:39 maya Exp $
+# $NetBSD: Makefile,v 1.26 2017/12/01 19:22:13 adam Exp $
 
-DISTNAME=      llvm-4.0.1.src
+DISTNAME=      llvm-5.0.0.src
 PKGNAME=       ${DISTNAME:S/llvm/libLLVM/:S/.src//}
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
@@ -123,6 +123,7 @@ post-extract:
 .for f in config.guess config.sub
        cp ../../mk/gnu-config/${f} ${WRKSRC}/cmake/${f}
 .endfor
+       ${RM} ${WRKSRC}/tools/opt-viewer/CMakeLists.txt
 
 post-install:
        ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib/libLLVM
@@ -140,5 +141,6 @@ post-install:
 .endif
 
 .include "../../devel/zlib/buildlink3.mk"
+.include "../../lang/python/application.mk"
 .include "../../lang/python/tool.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/lang/libLLVM/PLIST
diff -u pkgsrc/lang/libLLVM/PLIST:1.9 pkgsrc/lang/libLLVM/PLIST:1.10
--- pkgsrc/lang/libLLVM/PLIST:1.9       Fri Mar 17 22:38:18 2017
+++ pkgsrc/lang/libLLVM/PLIST   Fri Dec  1 19:22:13 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2017/03/17 22:38:18 adam Exp $
+@comment $NetBSD: PLIST,v 1.10 2017/12/01 19:22:13 adam Exp $
 include/libLLVM/llvm-c/Analysis.h
 include/libLLVM/llvm-c/BitReader.h
 include/libLLVM/llvm-c/BitWriter.h
@@ -28,6 +28,7 @@ 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/BreadthFirstIterator.h
 include/libLLVM/llvm/ADT/CachedHashString.h
 include/libLLVM/llvm/ADT/DAGDeltaAlgorithm.h
 include/libLLVM/llvm/ADT/DeltaAlgorithm.h
@@ -104,6 +105,7 @@ include/libLLVM/llvm/Analysis/BlockFrequ
 include/libLLVM/llvm/Analysis/BranchProbabilityInfo.h
 include/libLLVM/llvm/Analysis/CFG.h
 include/libLLVM/llvm/Analysis/CFGPrinter.h
+include/libLLVM/llvm/Analysis/CFLAliasAnalysisUtils.h
 include/libLLVM/llvm/Analysis/CFLAndersAliasAnalysis.h
 include/libLLVM/llvm/Analysis/CFLSteensAliasAnalysis.h
 include/libLLVM/llvm/Analysis/CGSCCPassManager.h
@@ -147,10 +149,13 @@ include/libLLVM/llvm/Analysis/LoopUnroll
 include/libLLVM/llvm/Analysis/MemoryBuiltins.h
 include/libLLVM/llvm/Analysis/MemoryDependenceAnalysis.h
 include/libLLVM/llvm/Analysis/MemoryLocation.h
+include/libLLVM/llvm/Analysis/MemorySSA.h
+include/libLLVM/llvm/Analysis/MemorySSAUpdater.h
 include/libLLVM/llvm/Analysis/ModuleSummaryAnalysis.h
 include/libLLVM/llvm/Analysis/ObjCARCAliasAnalysis.h
 include/libLLVM/llvm/Analysis/ObjCARCAnalysisUtils.h
 include/libLLVM/llvm/Analysis/ObjCARCInstKind.h
+include/libLLVM/llvm/Analysis/ObjectUtils.h
 include/libLLVM/llvm/Analysis/OptimizationDiagnosticInfo.h
 include/libLLVM/llvm/Analysis/OrderedBasicBlock.h
 include/libLLVM/llvm/Analysis/PHITransAddr.h
@@ -182,6 +187,31 @@ include/libLLVM/llvm/Analysis/ValueTrack
 include/libLLVM/llvm/Analysis/VectorUtils.h
 include/libLLVM/llvm/AsmParser/Parser.h
 include/libLLVM/llvm/AsmParser/SlotMapping.h
+include/libLLVM/llvm/BinaryFormat/COFF.h
+include/libLLVM/llvm/BinaryFormat/Dwarf.def
+include/libLLVM/llvm/BinaryFormat/Dwarf.h
+include/libLLVM/llvm/BinaryFormat/ELF.h
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/AArch64.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/AMDGPU.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/ARM.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/AVR.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/BPF.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/Hexagon.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/Lanai.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/Mips.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/PowerPC.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/PowerPC64.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/RISCV.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/Sparc.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/SystemZ.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/WebAssembly.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/i386.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/x86_64.def
+include/libLLVM/llvm/BinaryFormat/MachO.def
+include/libLLVM/llvm/BinaryFormat/MachO.h
+include/libLLVM/llvm/BinaryFormat/Magic.h
+include/libLLVM/llvm/BinaryFormat/Wasm.h
+include/libLLVM/llvm/BinaryFormat/WasmRelocs/WebAssembly.def
 include/libLLVM/llvm/Bitcode/BitCodes.h
 include/libLLVM/llvm/Bitcode/BitcodeReader.h
 include/libLLVM/llvm/Bitcode/BitcodeWriter.h
@@ -202,6 +232,8 @@ include/libLLVM/llvm/CodeGen/DIE.h
 include/libLLVM/llvm/CodeGen/DIEValue.def
 include/libLLVM/llvm/CodeGen/DwarfStringPoolEntry.h
 include/libLLVM/llvm/CodeGen/EdgeBundles.h
+include/libLLVM/llvm/CodeGen/ExecutionDepsFix.h
+include/libLLVM/llvm/CodeGen/ExpandReductions.h
 include/libLLVM/llvm/CodeGen/FastISel.h
 include/libLLVM/llvm/CodeGen/FaultMaps.h
 include/libLLVM/llvm/CodeGen/FunctionLoweringInfo.h
@@ -214,9 +246,11 @@ include/libLLVM/llvm/CodeGen/GlobalISel/
 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/InstructionSelectorImpl.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/Localizer.h
 include/libLLVM/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
 include/libLLVM/llvm/CodeGen/GlobalISel/RegBankSelect.h
 include/libLLVM/llvm/CodeGen/GlobalISel/RegisterBank.h
@@ -226,6 +260,7 @@ include/libLLVM/llvm/CodeGen/GlobalISel/
 include/libLLVM/llvm/CodeGen/ISDOpcodes.h
 include/libLLVM/llvm/CodeGen/IntrinsicLowering.h
 include/libLLVM/llvm/CodeGen/LatencyPriorityQueue.h
+include/libLLVM/llvm/CodeGen/LazyMachineBlockFrequencyInfo.h
 include/libLLVM/llvm/CodeGen/LexicalScopes.h
 include/libLLVM/llvm/CodeGen/LinkAllAsmWriterComponents.h
 include/libLLVM/llvm/CodeGen/LinkAllCodegenComponents.h
@@ -235,10 +270,12 @@ include/libLLVM/llvm/CodeGen/LiveInterva
 include/libLLVM/llvm/CodeGen/LivePhysRegs.h
 include/libLLVM/llvm/CodeGen/LiveRangeEdit.h
 include/libLLVM/llvm/CodeGen/LiveRegMatrix.h
+include/libLLVM/llvm/CodeGen/LiveRegUnits.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/MIRPrinter.h
 include/libLLVM/llvm/CodeGen/MIRYamlMapping.h
 include/libLLVM/llvm/CodeGen/MachORelocation.h
 include/libLLVM/llvm/CodeGen/MachineBasicBlock.h
@@ -250,7 +287,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/MachineFunctionInitializer.h
 include/libLLVM/llvm/CodeGen/MachineFunctionPass.h
 include/libLLVM/llvm/CodeGen/MachineInstr.h
 include/libLLVM/llvm/CodeGen/MachineInstrBuilder.h
@@ -262,6 +298,7 @@ include/libLLVM/llvm/CodeGen/MachineMemO
 include/libLLVM/llvm/CodeGen/MachineModuleInfo.h
 include/libLLVM/llvm/CodeGen/MachineModuleInfoImpls.h
 include/libLLVM/llvm/CodeGen/MachineOperand.h
+include/libLLVM/llvm/CodeGen/MachineOptimizationRemarkEmitter.h
 include/libLLVM/llvm/CodeGen/MachinePassRegistry.h
 include/libLLVM/llvm/CodeGen/MachinePostDominators.h
 include/libLLVM/llvm/CodeGen/MachineRegionInfo.h
@@ -270,6 +307,7 @@ include/libLLVM/llvm/CodeGen/MachineSSAU
 include/libLLVM/llvm/CodeGen/MachineScheduler.h
 include/libLLVM/llvm/CodeGen/MachineTraceMetrics.h
 include/libLLVM/llvm/CodeGen/MachineValueType.h
+include/libLLVM/llvm/CodeGen/MacroFusion.h
 include/libLLVM/llvm/CodeGen/PBQP/CostAllocator.h
 include/libLLVM/llvm/CodeGen/PBQP/Graph.h
 include/libLLVM/llvm/CodeGen/PBQP/Math.h
@@ -296,6 +334,7 @@ include/libLLVM/llvm/CodeGen/ScheduleHaz
 include/libLLVM/llvm/CodeGen/SchedulerRegistry.h
 include/libLLVM/llvm/CodeGen/ScoreboardHazardRecognizer.h
 include/libLLVM/llvm/CodeGen/SelectionDAG.h
+include/libLLVM/llvm/CodeGen/SelectionDAGAddressAnalysis.h
 include/libLLVM/llvm/CodeGen/SelectionDAGISel.h
 include/libLLVM/llvm/CodeGen/SelectionDAGNodes.h
 include/libLLVM/llvm/CodeGen/SelectionDAGTargetInfo.h
@@ -319,19 +358,34 @@ include/libLLVM/llvm/Config/abi-breaking
 include/libLLVM/llvm/Config/llvm-config.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/CodeViewRecordIO.h
+include/libLLVM/llvm/DebugInfo/CodeView/CodeViewSymbols.def
+include/libLLVM/llvm/DebugInfo/CodeView/CodeViewTypes.def
+include/libLLVM/llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h
+include/libLLVM/llvm/DebugInfo/CodeView/DebugCrossExSubsection.h
+include/libLLVM/llvm/DebugInfo/CodeView/DebugCrossImpSubsection.h
+include/libLLVM/llvm/DebugInfo/CodeView/DebugFrameDataSubsection.h
+include/libLLVM/llvm/DebugInfo/CodeView/DebugInlineeLinesSubsection.h
+include/libLLVM/llvm/DebugInfo/CodeView/DebugLinesSubsection.h
+include/libLLVM/llvm/DebugInfo/CodeView/DebugStringTableSubsection.h
+include/libLLVM/llvm/DebugInfo/CodeView/DebugSubsection.h
+include/libLLVM/llvm/DebugInfo/CodeView/DebugSubsectionRecord.h
+include/libLLVM/llvm/DebugInfo/CodeView/DebugSubsectionVisitor.h
+include/libLLVM/llvm/DebugInfo/CodeView/DebugSymbolRVASubsection.h
+include/libLLVM/llvm/DebugInfo/CodeView/DebugSymbolsSubsection.h
+include/libLLVM/llvm/DebugInfo/CodeView/DebugUnknownSubsection.h
 include/libLLVM/llvm/DebugInfo/CodeView/EnumTables.h
+include/libLLVM/llvm/DebugInfo/CodeView/Formatters.h
 include/libLLVM/llvm/DebugInfo/CodeView/FunctionId.h
+include/libLLVM/llvm/DebugInfo/CodeView/GUID.h
+include/libLLVM/llvm/DebugInfo/CodeView/LazyRandomTypeCollection.h
 include/libLLVM/llvm/DebugInfo/CodeView/Line.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/StringsAndChecksums.h
 include/libLLVM/llvm/DebugInfo/CodeView/SymbolDeserializer.h
 include/libLLVM/llvm/DebugInfo/CodeView/SymbolDumpDelegate.h
 include/libLLVM/llvm/DebugInfo/CodeView/SymbolDumper.h
@@ -341,27 +395,29 @@ include/libLLVM/llvm/DebugInfo/CodeView/
 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/TypeDatabase.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeDatabaseVisitor.h
+include/libLLVM/llvm/DebugInfo/CodeView/TypeCollection.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/TypeIndexDiscovery.h
+include/libLLVM/llvm/DebugInfo/CodeView/TypeName.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/TypeTableCollection.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
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
+include/libLLVM/llvm/DebugInfo/DWARF/DWARFAttribute.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFCompileUnit.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFContext.h
+include/libLLVM/llvm/DebugInfo/DWARF/DWARFDataExtractor.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
@@ -380,19 +436,13 @@ include/libLLVM/llvm/DebugInfo/DWARF/DWA
 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/DWARF/DWARFVerifier.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
@@ -412,6 +462,40 @@ include/libLLVM/llvm/DebugInfo/PDB/IPDBL
 include/libLLVM/llvm/DebugInfo/PDB/IPDBRawSymbol.h
 include/libLLVM/llvm/DebugInfo/PDB/IPDBSession.h
 include/libLLVM/llvm/DebugInfo/PDB/IPDBSourceFile.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/DbiModuleDescriptor.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/DbiModuleList.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/DbiStream.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/EnumTables.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/Formatters.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/GlobalsStream.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/Hash.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/HashTable.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/ISectionContribVisitor.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/InfoStream.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/ModuleDebugStream.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/NamedStreamMap.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/NativeBuiltinSymbol.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/NativeCompilandSymbol.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/NativeEnumModules.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/NativeExeSymbol.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/NativeSession.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/PDBFile.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/PDBFileBuilder.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/PDBStringTable.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/PDBStringTableBuilder.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/PublicsStream.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/PublicsStreamBuilder.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/RawConstants.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/RawError.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/RawTypes.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/SymbolStream.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/TpiHashing.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/TpiStream.h
+include/libLLVM/llvm/DebugInfo/PDB/Native/TpiStreamBuilder.h
 include/libLLVM/llvm/DebugInfo/PDB/PDB.h
 include/libLLVM/llvm/DebugInfo/PDB/PDBContext.h
 include/libLLVM/llvm/DebugInfo/PDB/PDBExtras.h
@@ -449,30 +533,7 @@ include/libLLVM/llvm/DebugInfo/PDB/PDBSy
 include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolUnknown.h
 include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolUsingNamespace.h
 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/EnumTables.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/GlobalsStream.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/Hash.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/ISectionContribVisitor.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/InfoStream.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/ModInfo.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/ModStream.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
-include/libLLVM/llvm/DebugInfo/PDB/Raw/PDBFile.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/PDBFileBuilder.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/PublicsStream.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/RawConstants.h
-include/libLLVM/llvm/DebugInfo/PDB/Raw/RawError.h
-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/PDB/UDTLayout.h
 include/libLLVM/llvm/DebugInfo/Symbolize/DIPrinter.h
 include/libLLVM/llvm/DebugInfo/Symbolize/SymbolizableModule.h
 include/libLLVM/llvm/DebugInfo/Symbolize/Symbolize.h
@@ -496,7 +557,6 @@ include/libLLVM/llvm/ExecutionEngine/Orc
 include/libLLVM/llvm/ExecutionEngine/Orc/LambdaResolver.h
 include/libLLVM/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h
 include/libLLVM/llvm/ExecutionEngine/Orc/NullResolver.h
-include/libLLVM/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h
 include/libLLVM/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h
 include/libLLVM/llvm/ExecutionEngine/Orc/OrcABISupport.h
 include/libLLVM/llvm/ExecutionEngine/Orc/OrcError.h
@@ -505,6 +565,7 @@ include/libLLVM/llvm/ExecutionEngine/Orc
 include/libLLVM/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
 include/libLLVM/llvm/ExecutionEngine/Orc/RPCSerialization.h
 include/libLLVM/llvm/ExecutionEngine/Orc/RPCUtils.h
+include/libLLVM/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h
 include/libLLVM/llvm/ExecutionEngine/Orc/RawByteChannel.h
 include/libLLVM/llvm/ExecutionEngine/OrcMCJITReplacement.h
 include/libLLVM/llvm/ExecutionEngine/RTDyldMemoryManager.h
@@ -533,6 +594,7 @@ include/libLLVM/llvm/IR/DebugInfoFlags.d
 include/libLLVM/llvm/IR/DebugInfoMetadata.h
 include/libLLVM/llvm/IR/DebugLoc.h
 include/libLLVM/llvm/IR/DerivedTypes.h
+include/libLLVM/llvm/IR/DerivedUser.h
 include/libLLVM/llvm/IR/DiagnosticInfo.h
 include/libLLVM/llvm/IR/DiagnosticPrinter.h
 include/libLLVM/llvm/IR/Dominators.h
@@ -591,6 +653,7 @@ include/libLLVM/llvm/IR/PassManagerInter
 include/libLLVM/llvm/IR/PatternMatch.h
 include/libLLVM/llvm/IR/PredIteratorCache.h
 include/libLLVM/llvm/IR/ProfileSummary.h
+include/libLLVM/llvm/IR/SafepointIRVerifier.h
 include/libLLVM/llvm/IR/Statepoint.h
 include/libLLVM/llvm/IR/SymbolTableListTraits.h
 include/libLLVM/llvm/IR/TrackingMDRef.h
@@ -616,7 +679,6 @@ include/libLLVM/llvm/LTO/legacy/LTOCodeG
 include/libLLVM/llvm/LTO/legacy/LTOModule.h
 include/libLLVM/llvm/LTO/legacy/ThinLTOCodeGenerator.h
 include/libLLVM/llvm/LTO/legacy/UpdateCompilerUsed.h
-include/libLLVM/llvm/LibDriver/LibDriver.h
 include/libLLVM/llvm/LineEditor/LineEditor.h
 include/libLLVM/llvm/LinkAllIR.h
 include/libLLVM/llvm/LinkAllPasses.h
@@ -629,6 +691,7 @@ include/libLLVM/llvm/MC/MCAsmInfo.h
 include/libLLVM/llvm/MC/MCAsmInfoCOFF.h
 include/libLLVM/llvm/MC/MCAsmInfoDarwin.h
 include/libLLVM/llvm/MC/MCAsmInfoELF.h
+include/libLLVM/llvm/MC/MCAsmInfoWasm.h
 include/libLLVM/llvm/MC/MCAsmLayout.h
 include/libLLVM/llvm/MC/MCAssembler.h
 include/libLLVM/llvm/MC/MCCodeEmitter.h
@@ -674,15 +737,19 @@ include/libLLVM/llvm/MC/MCSection.h
 include/libLLVM/llvm/MC/MCSectionCOFF.h
 include/libLLVM/llvm/MC/MCSectionELF.h
 include/libLLVM/llvm/MC/MCSectionMachO.h
+include/libLLVM/llvm/MC/MCSectionWasm.h
 include/libLLVM/llvm/MC/MCStreamer.h
 include/libLLVM/llvm/MC/MCSubtargetInfo.h
 include/libLLVM/llvm/MC/MCSymbol.h
 include/libLLVM/llvm/MC/MCSymbolCOFF.h
 include/libLLVM/llvm/MC/MCSymbolELF.h
 include/libLLVM/llvm/MC/MCSymbolMachO.h
+include/libLLVM/llvm/MC/MCSymbolWasm.h
 include/libLLVM/llvm/MC/MCTargetOptions.h
 include/libLLVM/llvm/MC/MCTargetOptionsCommandFlags.h
 include/libLLVM/llvm/MC/MCValue.h
+include/libLLVM/llvm/MC/MCWasmObjectWriter.h
+include/libLLVM/llvm/MC/MCWasmStreamer.h
 include/libLLVM/llvm/MC/MCWin64EH.h
 include/libLLVM/llvm/MC/MCWinCOFFObjectWriter.h
 include/libLLVM/llvm/MC/MCWinCOFFStreamer.h
@@ -696,15 +763,16 @@ 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/COFFModuleDefinition.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
 include/libLLVM/llvm/Object/Error.h
 include/libLLVM/llvm/Object/IRObjectFile.h
+include/libLLVM/llvm/Object/IRSymtab.h
 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
@@ -712,11 +780,17 @@ include/libLLVM/llvm/Object/StackMapPars
 include/libLLVM/llvm/Object/SymbolSize.h
 include/libLLVM/llvm/Object/SymbolicFile.h
 include/libLLVM/llvm/Object/Wasm.h
+include/libLLVM/llvm/Object/WindowsResource.h
 include/libLLVM/llvm/ObjectYAML/COFFYAML.h
+include/libLLVM/llvm/ObjectYAML/CodeViewYAMLDebugSections.h
+include/libLLVM/llvm/ObjectYAML/CodeViewYAMLSymbols.h
+include/libLLVM/llvm/ObjectYAML/CodeViewYAMLTypes.h
+include/libLLVM/llvm/ObjectYAML/DWARFEmitter.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
+include/libLLVM/llvm/ObjectYAML/WasmYAML.h
 include/libLLVM/llvm/ObjectYAML/YAML.h
 include/libLLVM/llvm/Option/Arg.h
 include/libLLVM/llvm/Option/ArgList.h
@@ -742,6 +816,8 @@ include/libLLVM/llvm/ProfileData/SampleP
 include/libLLVM/llvm/ProfileData/SampleProfReader.h
 include/libLLVM/llvm/ProfileData/SampleProfWriter.h
 include/libLLVM/llvm/Support/AArch64TargetParser.def
+include/libLLVM/llvm/Support/AMDGPUCodeObjectMetadata.h
+include/libLLVM/llvm/Support/ARMAttributeParser.h
 include/libLLVM/llvm/Support/ARMBuildAttributes.h
 include/libLLVM/llvm/Support/ARMEHABI.h
 include/libLLVM/llvm/Support/ARMTargetParser.def
@@ -751,10 +827,17 @@ include/libLLVM/llvm/Support/Allocator.h
 include/libLLVM/llvm/Support/ArrayRecycler.h
 include/libLLVM/llvm/Support/Atomic.h
 include/libLLVM/llvm/Support/AtomicOrdering.h
+include/libLLVM/llvm/Support/BinaryByteStream.h
+include/libLLVM/llvm/Support/BinaryItemStream.h
+include/libLLVM/llvm/Support/BinaryStream.h
+include/libLLVM/llvm/Support/BinaryStreamArray.h
+include/libLLVM/llvm/Support/BinaryStreamError.h
+include/libLLVM/llvm/Support/BinaryStreamReader.h
+include/libLLVM/llvm/Support/BinaryStreamRef.h
+include/libLLVM/llvm/Support/BinaryStreamWriter.h
 include/libLLVM/llvm/Support/BlockFrequency.h
 include/libLLVM/llvm/Support/BranchProbability.h
 include/libLLVM/llvm/Support/CBindingWrapping.h
-include/libLLVM/llvm/Support/COFF.h
 include/libLLVM/llvm/Support/COM.h
 include/libLLVM/llvm/Support/CachePruning.h
 include/libLLVM/llvm/Support/Capacity.h
@@ -771,26 +854,8 @@ include/libLLVM/llvm/Support/DOTGraphTra
 include/libLLVM/llvm/Support/DataExtractor.h
 include/libLLVM/llvm/Support/DataTypes.h
 include/libLLVM/llvm/Support/Debug.h
-include/libLLVM/llvm/Support/Dwarf.def
-include/libLLVM/llvm/Support/Dwarf.h
+include/libLLVM/llvm/Support/DebugCounter.h
 include/libLLVM/llvm/Support/DynamicLibrary.h
-include/libLLVM/llvm/Support/ELF.h
-include/libLLVM/llvm/Support/ELFRelocs/AArch64.def
-include/libLLVM/llvm/Support/ELFRelocs/AMDGPU.def
-include/libLLVM/llvm/Support/ELFRelocs/ARM.def
-include/libLLVM/llvm/Support/ELFRelocs/AVR.def
-include/libLLVM/llvm/Support/ELFRelocs/BPF.def
-include/libLLVM/llvm/Support/ELFRelocs/Hexagon.def
-include/libLLVM/llvm/Support/ELFRelocs/Lanai.def
-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
-include/libLLVM/llvm/Support/ELFRelocs/i386.def
-include/libLLVM/llvm/Support/ELFRelocs/x86_64.def
 include/libLLVM/llvm/Support/Endian.h
 include/libLLVM/llvm/Support/EndianStream.h
 include/libLLVM/llvm/Support/Errc.h
@@ -815,14 +880,14 @@ include/libLLVM/llvm/Support/GlobPattern
 include/libLLVM/llvm/Support/GraphWriter.h
 include/libLLVM/llvm/Support/Host.h
 include/libLLVM/llvm/Support/JamCRC.h
+include/libLLVM/llvm/Support/KnownBits.h
 include/libLLVM/llvm/Support/LEB128.h
 include/libLLVM/llvm/Support/LICENSE.TXT
 include/libLLVM/llvm/Support/LineIterator.h
 include/libLLVM/llvm/Support/Locale.h
 include/libLLVM/llvm/Support/LockFileManager.h
+include/libLLVM/llvm/Support/LowLevelTypeImpl.h
 include/libLLVM/llvm/Support/MD5.h
-include/libLLVM/llvm/Support/MachO.def
-include/libLLVM/llvm/Support/MachO.h
 include/libLLVM/llvm/Support/ManagedStatic.h
 include/libLLVM/llvm/Support/MathExtras.h
 include/libLLVM/llvm/Support/Memory.h
@@ -833,6 +898,7 @@ include/libLLVM/llvm/Support/MutexGuard.
 include/libLLVM/llvm/Support/NativeFormatting.h
 include/libLLVM/llvm/Support/OnDiskHashTable.h
 include/libLLVM/llvm/Support/Options.h
+include/libLLVM/llvm/Support/Parallel.h
 include/libLLVM/llvm/Support/Path.h
 include/libLLVM/llvm/Support/PluginLoader.h
 include/libLLVM/llvm/Support/PointerLikeTypeTraits.h
@@ -846,13 +912,14 @@ include/libLLVM/llvm/Support/Recycler.h
 include/libLLVM/llvm/Support/RecyclingAllocator.h
 include/libLLVM/llvm/Support/Regex.h
 include/libLLVM/llvm/Support/Registry.h
+include/libLLVM/llvm/Support/ReverseIteration.h
 include/libLLVM/llvm/Support/SHA1.h
 include/libLLVM/llvm/Support/SMLoc.h
 include/libLLVM/llvm/Support/SaveAndRestore.h
 include/libLLVM/llvm/Support/ScaledNumber.h
 include/libLLVM/llvm/Support/ScopedPrinter.h
 include/libLLVM/llvm/Support/Signals.h
-include/libLLVM/llvm/Support/Solaris.h
+include/libLLVM/llvm/Support/Solaris/sys/regset.h
 include/libLLVM/llvm/Support/SourceMgr.h
 include/libLLVM/llvm/Support/SpecialCaseList.h
 include/libLLVM/llvm/Support/StringPool.h
@@ -874,8 +941,8 @@ 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/VCSRevision.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
@@ -898,11 +965,13 @@ include/libLLVM/llvm/TableGen/StringToOf
 include/libLLVM/llvm/TableGen/TableGenBackend.h
 include/libLLVM/llvm/Target/CostTable.h
 include/libLLVM/llvm/Target/GenericOpcodes.td
+include/libLLVM/llvm/Target/GlobalISel/RegisterBank.td
+include/libLLVM/llvm/Target/GlobalISel/SelectionDAGCompat.td
+include/libLLVM/llvm/Target/GlobalISel/Target.td
 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
@@ -916,10 +985,15 @@ include/libLLVM/llvm/Target/TargetRegist
 include/libLLVM/llvm/Target/TargetSchedule.td
 include/libLLVM/llvm/Target/TargetSelectionDAG.td
 include/libLLVM/llvm/Target/TargetSubtargetInfo.h
+include/libLLVM/llvm/Testing/Support/Error.h
+include/libLLVM/llvm/Testing/Support/SupportHelpers.h
+include/libLLVM/llvm/ToolDrivers/llvm-dlltool/DlltoolDriver.h
+include/libLLVM/llvm/ToolDrivers/llvm-lib/LibDriver.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/ArgumentPromotion.h
 include/libLLVM/llvm/Transforms/IPO/ConstantMerge.h
 include/libLLVM/llvm/Transforms/IPO/CrossDSOCFI.h
 include/libLLVM/llvm/Transforms/IPO/DeadArgumentElimination.h
@@ -938,6 +1012,7 @@ include/libLLVM/llvm/Transforms/IPO/Part
 include/libLLVM/llvm/Transforms/IPO/PassManagerBuilder.h
 include/libLLVM/llvm/Transforms/IPO/SCCP.h
 include/libLLVM/llvm/Transforms/IPO/StripDeadPrototypes.h
+include/libLLVM/llvm/Transforms/IPO/ThinLTOBitcodeWriter.h
 include/libLLVM/llvm/Transforms/IPO/WholeProgramDevirt.h
 include/libLLVM/llvm/Transforms/InstCombine/InstCombine.h
 include/libLLVM/llvm/Transforms/InstCombine/InstCombineWorklist.h
@@ -969,9 +1044,12 @@ include/libLLVM/llvm/Transforms/Scalar/L
 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/LoopLoadElimination.h
 include/libLLVM/llvm/Transforms/Scalar/LoopPassManager.h
+include/libLLVM/llvm/Transforms/Scalar/LoopPredication.h
 include/libLLVM/llvm/Transforms/Scalar/LoopRotation.h
 include/libLLVM/llvm/Transforms/Scalar/LoopSimplifyCFG.h
+include/libLLVM/llvm/Transforms/Scalar/LoopSink.h
 include/libLLVM/llvm/Transforms/Scalar/LoopStrengthReduce.h
 include/libLLVM/llvm/Transforms/Scalar/LoopUnrollPass.h
 include/libLLVM/llvm/Transforms/Scalar/LowerAtomic.h
@@ -985,6 +1063,7 @@ include/libLLVM/llvm/Transforms/Scalar/P
 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/SimpleLoopUnswitch.h
 include/libLLVM/llvm/Transforms/Scalar/SimplifyCFG.h
 include/libLLVM/llvm/Transforms/Scalar/Sink.h
 include/libLLVM/llvm/Transforms/Scalar/SpeculativeExecution.h
@@ -1013,10 +1092,12 @@ include/libLLVM/llvm/Transforms/Utils/Lo
 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/LowerMemIntrinsics.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/OrderedInstructions.h
+include/libLLVM/llvm/Transforms/Utils/PredicateInfo.h
 include/libLLVM/llvm/Transforms/Utils/PromoteMemToReg.h
 include/libLLVM/llvm/Transforms/Utils/SSAUpdater.h
 include/libLLVM/llvm/Transforms/Utils/SSAUpdaterImpl.h
@@ -1028,22 +1109,28 @@ include/libLLVM/llvm/Transforms/Utils/Sp
 include/libLLVM/llvm/Transforms/Utils/SymbolRewriter.h
 include/libLLVM/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
 include/libLLVM/llvm/Transforms/Utils/UnrollLoop.h
+include/libLLVM/llvm/Transforms/Utils/VNCoercion.h
 include/libLLVM/llvm/Transforms/Utils/ValueMapper.h
 include/libLLVM/llvm/Transforms/Vectorize.h
 include/libLLVM/llvm/Transforms/Vectorize/LoopVectorize.h
 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/Graph.h
+include/libLLVM/llvm/XRay/InstrumentationMap.h
 include/libLLVM/llvm/XRay/Trace.h
 include/libLLVM/llvm/XRay/XRayRecord.h
 include/libLLVM/llvm/XRay/YAMLXRayRecord.h
+${PLIST.notdylib}lib/libLLVM/libLLVM-${LLVM_MAJOR_MINOR}.${SOEXT}
+${PLIST.notdylib}lib/libLLVM/libLLVM-${PKGVERSION}.${SOEXT}
 lib/libLLVM/libLLVM.${SOEXT}
 libexec/libLLVM/llvm-cat
 libexec/libLLVM/llvm-config
+libexec/libLLVM/llvm-cvtres
 libexec/libLLVM/llvm-cxxfilt
 libexec/libLLVM/llvm-lto2
 libexec/libLLVM/llvm-modextract
+libexec/libLLVM/llvm-mt
 libexec/libLLVM/llvm-opt-report
+libexec/libLLVM/llvm-pdbutil
 libexec/libLLVM/llvm-strings
 libexec/libLLVM/llvm-xray
 share/libLLVM/cmake/AddLLVM.cmake

Index: pkgsrc/lang/libLLVM/distinfo
diff -u pkgsrc/lang/libLLVM/distinfo:1.10 pkgsrc/lang/libLLVM/distinfo:1.11
--- pkgsrc/lang/libLLVM/distinfo:1.10   Mon Jul 24 13:13:39 2017
+++ pkgsrc/lang/libLLVM/distinfo        Fri Dec  1 19:22:13 2017
@@ -1,15 +1,13 @@
-$NetBSD: distinfo,v 1.10 2017/07/24 13:13:39 maya Exp $
+$NetBSD: distinfo,v 1.11 2017/12/01 19:22:13 adam Exp $
 
-SHA1 (llvm-4.0.1.src.tar.xz) = ddbf4dab7ab1a4bdce5ed1227bf721cbb3533a6e
-RMD160 (llvm-4.0.1.src.tar.xz) = 37387a5ca73ea270b2f541ecbd1cd641f7b09be2
-SHA512 (llvm-4.0.1.src.tar.xz) = 16adc39b34ddb628f81b171119a8e2a0e9138b25011e803ef0b688e2fbea116fc4953d3a1b61b90a98a75e33619f81566b7cb06a9a2ea4d04ac5e0eb303a2d1d
-Size (llvm-4.0.1.src.tar.xz) = 21065652 bytes
+SHA1 (llvm-5.0.0.src.tar.xz) = 7b0fd212ecc38461e392cbdcbe6a1d4944138a04
+RMD160 (llvm-5.0.0.src.tar.xz) = 849075e32e6aa5e38c2e9a7108803e745c0ed0fc
+SHA512 (llvm-5.0.0.src.tar.xz) = e6d8fdcb5bf27bded814d02f39f69c6171bc3a512d5957c03e5ac2e231f903b7de87634b059bd5c5da670f7c3a8f7a538f6299225799f15f921857f1452f6b3a
+Size (llvm-5.0.0.src.tar.xz) = 23411980 bytes
 SHA1 (patch-CMakeLists.txt) = 770e0bc00a987430b6c6be7e4141f33e5be54a8f
-SHA1 (patch-cmake_modules_AddLLVM.cmake) = d9d9b8f9d33ddc3ef8ef55832aeed038500b6de8
+SHA1 (patch-cmake_modules_AddLLVM.cmake) = 065b032ba377aca36c2d2131676c3b9a51c54b9d
 SHA1 (patch-cmake_modules_CMakeLists.txt) = 69514dafb36794eb6923a39ef219bdc7b09c37ee
 SHA1 (patch-cmake_modules_HandleLLVMOptions.cmake) = 271e6f5a8cebf8162c4e3b758e96f451b434269b
 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) = 4988cd94074cb08dbb5a3606ea2376b42ae8c75f
-SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 18e6ec7b8895e55ecdf93c9d4781e92052a6fcb1
+SHA1 (patch-tools_llvm-config_llvm-config.cpp) = 64d644c13c02d1f156ea4ab7227465edfb179951
+SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 70d8f320f217d99e6f991709a080450bc05631cd

Index: pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake
diff -u pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake:1.4 pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake:1.5
--- pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake:1.4   Fri Mar 17 22:38:18 2017
+++ pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake       Fri Dec  1 19:22:13 2017
@@ -1,12 +1,12 @@
-$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.4 2017/03/17 22:38:18 adam Exp $
+$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.5 2017/12/01 19:22:13 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   2017-01-17 21:47:58.000000000 +0000
+--- cmake/modules/AddLLVM.cmake.orig   2017-07-12 21:43:14.000000000 +0000
 +++ cmake/modules/AddLLVM.cmake
-@@ -182,9 +182,6 @@ function(add_link_opts target_name)
+@@ -198,9 +198,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")
@@ -16,7 +16,7 @@ Don't use non-portable -z discard-unused
        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
-@@ -591,10 +588,6 @@ macro(add_llvm_library name)
+@@ -607,10 +604,6 @@ macro(add_llvm_library name)
          set_property(GLOBAL PROPERTY LLVM_HAS_EXPORTS True)
        endif()
  
@@ -27,7 +27,7 @@ Don't use non-portable -z discard-unused
  
        if (NOT CMAKE_CONFIGURATION_TYPES)
          add_custom_target(install-${name}
-@@ -632,10 +625,6 @@ macro(add_llvm_loadable_module name)
+@@ -648,10 +641,6 @@ macro(add_llvm_loadable_module name)
            set_property(GLOBAL PROPERTY LLVM_HAS_EXPORTS True)
          endif()
  
@@ -38,7 +38,7 @@ Don't use non-portable -z discard-unused
        endif()
        set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name})
      endif()
-@@ -823,7 +812,7 @@ macro(add_llvm_tool name)
+@@ -839,7 +828,7 @@ macro(add_llvm_tool name)
  
        install(TARGETS ${name}
                ${export_to_llvmexports}
@@ -47,12 +47,3 @@ Don't use non-portable -z discard-unused
                COMPONENT ${name})
  
        if (NOT CMAKE_CONFIGURATION_TYPES)
-@@ -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}
--      RUNTIME DESTINATION bin
-+      RUNTIME DESTINATION libexec/libLLVM
-       COMPONENT ${name})
-     if (NOT CMAKE_CONFIGURATION_TYPES)
-       add_custom_target(install-${name}

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.3 pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp:1.4
--- pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp:1.3     Fri Mar 17 22:38:18 2017
+++ pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp Fri Dec  1 19:22:13 2017
@@ -1,24 +1,26 @@
-$NetBSD: patch-tools_llvm-config_llvm-config.cpp,v 1.3 2017/03/17 22:38:18 adam Exp $
+$NetBSD: patch-tools_llvm-config_llvm-config.cpp,v 1.4 2017/12/01 19:22:13 adam Exp $
 
 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     2017-01-12 19:47:38.000000000 +0000
+--- tools/llvm-config/llvm-config.cpp.orig     2017-06-01 20:51:55.000000000 +0000
 +++ tools/llvm-config/llvm-config.cpp
-@@ -332,9 +332,9 @@ int main(int argc, char **argv) {
+@@ -332,11 +332,11 @@ int main(int argc, char **argv) {
          ("-I" + ActiveIncludeDir + " " + "-I" + ActiveObjRoot + "/include");
    } else {
      ActivePrefix = CurrentExecPrefix;
 -    ActiveIncludeDir = ActivePrefix + "/include";
 +    ActiveIncludeDir = "@PREFIX@/include/libLLVM";
-     ActiveBinDir = ActivePrefix + "/bin";
+     SmallString<256> path(StringRef(LLVM_TOOLS_INSTALL_DIR));
+     sys::fs::make_absolute(ActivePrefix, path);
+     ActiveBinDir = path.str();
 -    ActiveLibDir = ActivePrefix + "/lib" + LLVM_LIBDIR_SUFFIX;
 +    ActiveLibDir = "@PREFIX@/lib/libLLVM";
      ActiveCMakeDir = ActiveLibDir + "/cmake/llvm";
      ActiveIncludeOption = "-I" + ActiveIncludeDir;
    }
-@@ -370,14 +370,14 @@ int main(int argc, char **argv) {
+@@ -372,14 +372,14 @@ int main(int argc, char **argv) {
      StaticDir = ActiveLibDir;
    } else if (HostTriple.isOSDarwin()) {
      SharedExt = "dylib";
@@ -35,7 +37,7 @@ on patch updates.
      StaticExt = "a";
      StaticDir = SharedDir = ActiveLibDir;
      StaticPrefix = SharedPrefix = "lib";
-@@ -390,7 +390,7 @@ int main(int argc, char **argv) {
+@@ -392,7 +392,7 @@ int main(int argc, char **argv) {
  
    bool DyLibExists = false;
    const std::string DyLibName =
@@ -44,7 +46,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
-@@ -491,7 +491,7 @@ int main(int argc, char **argv) {
+@@ -493,7 +493,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.3 pkgsrc/lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt:1.4
--- pkgsrc/lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt:1.3       Fri Mar 17 22:38:18 2017
+++ pkgsrc/lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt   Fri Dec  1 19:22:13 2017
@@ -1,23 +1,27 @@
-$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.3 2017/03/17 22:38:18 adam Exp $
+$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.4 2017/12/01 19:22:13 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.orig       2017-07-11 01:17:44.000000000 +0000
 +++ tools/llvm-shlib/CMakeLists.txt
-@@ -37,11 +37,12 @@ endif()
+@@ -37,15 +37,15 @@ endif()
  add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${SOURCES})
  
  list(REMOVE_DUPLICATES LIB_NAMES)
--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")
+-if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR (MINGW) OR (HAIKU) OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD") OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "DragonFly")) # FIXME: It should be "GNU ld for 
elf"
 +if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
-   set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
++  set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
 +elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")
 +  set(LIB_NAMES -Wl,-Bsymbolic -Wl,-z -Wl,allextract ${LIB_NAMES} -Wl,-z -Wl,defaultextract)
 +else()
-+  set(LIB_NAMES -Wl,--whole-archive ${LIB_NAMES} -Wl,--no-whole-archive)
+   configure_file(
+   ${CMAKE_CURRENT_SOURCE_DIR}/simple_version_script.map.in
+   ${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map)
+-
+-  # GNU ld doesn't resolve symbols in the version script.
+   set(LIB_NAMES -Wl,--version-script,${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map -Wl,--whole-archive ${LIB_NAMES} -Wl,--no-whole-archive)
+-elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
+-  set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
  endif()
  
  target_link_libraries(LLVM PRIVATE ${LIB_NAMES})

Index: pkgsrc/lang/libunwind/Makefile
diff -u pkgsrc/lang/libunwind/Makefile:1.9 pkgsrc/lang/libunwind/Makefile:1.10
--- pkgsrc/lang/libunwind/Makefile:1.9  Wed Aug 16 20:45:40 2017
+++ pkgsrc/lang/libunwind/Makefile      Fri Dec  1 19:22:12 2017
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2017/08/16 20:45:40 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2017/12/01 19:22:12 adam Exp $
 
-DISTNAME=      libunwind-4.0.1.src
+DISTNAME=      libunwind-5.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.6 pkgsrc/lang/libunwind/distinfo:1.7
--- pkgsrc/lang/libunwind/distinfo:1.6  Tue Jul 11 19:47:37 2017
+++ pkgsrc/lang/libunwind/distinfo      Fri Dec  1 19:22:12 2017
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.6 2017/07/11 19:47:37 adam Exp $
+$NetBSD: distinfo,v 1.7 2017/12/01 19:22:12 adam Exp $
 
-SHA1 (libunwind-4.0.1.src.tar.xz) = 80a8bfd6bbcb3b63e4d87e4a2decd734274d4a3a
-RMD160 (libunwind-4.0.1.src.tar.xz) = f0a3d33e2899ec6e7c78b31b85758bb7da8686f9
-SHA512 (libunwind-4.0.1.src.tar.xz) = 8a0552a8ab830010d81420f4b778a3b831bff85b19bcce972958fc30e1ba5a2fa26a3deba499985a43dd7a103690775f6a20e7b3edda55f4eaff3541002d6b59
-Size (libunwind-4.0.1.src.tar.xz) = 63388 bytes
+SHA1 (libunwind-5.0.0.src.tar.xz) = 6bdb6e1fcaf79c29866b0d62c66a405347dea75b
+RMD160 (libunwind-5.0.0.src.tar.xz) = 87ea51017ddbaed7a3a9f50ed2f1477e288c5296
+SHA512 (libunwind-5.0.0.src.tar.xz) = 20d54d5342d67425f5e36e9c690f1bb67bc2a3b7184b3ad546b689e510728d7c596f178d4f5186daf7480409ed4e455848b4ad1d9d896370fac1db69885fc793
+Size (libunwind-5.0.0.src.tar.xz) = 72236 bytes

Index: pkgsrc/lang/llvm/Makefile
diff -u pkgsrc/lang/llvm/Makefile:1.25 pkgsrc/lang/llvm/Makefile:1.26
--- pkgsrc/lang/llvm/Makefile:1.25      Sat Sep 30 04:38:09 2017
+++ pkgsrc/lang/llvm/Makefile   Fri Dec  1 19:22:12 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2017/09/30 04:38:09 ryoon Exp $
+# $NetBSD: Makefile,v 1.26 2017/12/01 19:22:12 adam Exp $
 #
 # when updating this, please also update:
 # devel/include-what-you-use
@@ -12,9 +12,8 @@
 # Always update all */buildlink3.mk to require the latest stable release
 # version in BUILDLINK_API_DEPENDS, as there is no backwards compatibility
 
-DISTNAME=      llvm-4.0.1.src
+DISTNAME=      llvm-5.0.0.src
 PKGNAME=       ${DISTNAME:S/.src//}
-PKGREVISION=   1
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
 EXTRACT_SUFX=  .tar.xz
@@ -49,11 +48,9 @@ REPLACE_PERL+=               utils/*.pl
 REPLACE_PERL+=         utils/codegen-diff
 REPLACE_PERL+=         utils/llvm-native-gxx
 
-REPLACE_PYTHON+=       *.py
-REPLACE_PYTHON+=       */*.py
-REPLACE_PYTHON+=       */*/*.py
-REPLACE_PYTHON+=       */*/*/*.py
-REPLACE_PYTHON+=       */*/*/*/*.py
+REPLACE_PYTHON+=       tools/opt-viewer/*.py
+REPLACE_PYTHON+=       tools/sancov/*.py
+REPLACE_PYTHON+=       utils/*.py
 REPLACE_PYTHON+=       utils/Misc/zkill
 REPLACE_PYTHON+=       utils/bisect
 REPLACE_PYTHON+=       utils/clang-parse-diagnostics-file
@@ -100,5 +97,6 @@ post-extract:
 .endfor
 
 .include "../../devel/zlib/buildlink3.mk"
+.include "../../lang/python/application.mk"
 .include "../../lang/python/tool.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/lang/llvm/PLIST
diff -u pkgsrc/lang/llvm/PLIST:1.5 pkgsrc/lang/llvm/PLIST:1.6
--- pkgsrc/lang/llvm/PLIST:1.5  Sun Mar 19 19:01:48 2017
+++ pkgsrc/lang/llvm/PLIST      Fri Dec  1 19:22:12 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2017/03/19 19:01:48 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2017/12/01 19:22:12 adam Exp $
 bin/FileCheck
 bin/bugpoint
 bin/count
@@ -13,10 +13,12 @@ bin/llvm-c-test
 bin/llvm-cat
 bin/llvm-config
 bin/llvm-cov
+bin/llvm-cvtres
 bin/llvm-cxxdump
 bin/llvm-cxxfilt
 bin/llvm-diff
 bin/llvm-dis
+bin/llvm-dlltool
 bin/llvm-dsymutil
 bin/llvm-dwarfdump
 bin/llvm-dwp
@@ -28,12 +30,14 @@ bin/llvm-lto2
 bin/llvm-mc
 bin/llvm-mcmarkup
 bin/llvm-modextract
+bin/llvm-mt
 bin/llvm-nm
 bin/llvm-objdump
 bin/llvm-opt-report
-bin/llvm-pdbdump
+bin/llvm-pdbutil
 bin/llvm-profdata
 bin/llvm-ranlib
+bin/llvm-readelf
 bin/llvm-readobj
 bin/llvm-rtdyld
 bin/llvm-size
@@ -80,6 +84,7 @@ include/llvm/ADT/AllocatorList.h
 include/llvm/ADT/ArrayRef.h
 include/llvm/ADT/BitVector.h
 include/llvm/ADT/BitmaskEnum.h
+include/llvm/ADT/BreadthFirstIterator.h
 include/llvm/ADT/CachedHashString.h
 include/llvm/ADT/DAGDeltaAlgorithm.h
 include/llvm/ADT/DeltaAlgorithm.h
@@ -156,6 +161,7 @@ include/llvm/Analysis/BlockFrequencyInfo
 include/llvm/Analysis/BranchProbabilityInfo.h
 include/llvm/Analysis/CFG.h
 include/llvm/Analysis/CFGPrinter.h
+include/llvm/Analysis/CFLAliasAnalysisUtils.h
 include/llvm/Analysis/CFLAndersAliasAnalysis.h
 include/llvm/Analysis/CFLSteensAliasAnalysis.h
 include/llvm/Analysis/CGSCCPassManager.h
@@ -199,10 +205,13 @@ include/llvm/Analysis/LoopUnrollAnalyzer
 include/llvm/Analysis/MemoryBuiltins.h
 include/llvm/Analysis/MemoryDependenceAnalysis.h
 include/llvm/Analysis/MemoryLocation.h
+include/llvm/Analysis/MemorySSA.h
+include/llvm/Analysis/MemorySSAUpdater.h
 include/llvm/Analysis/ModuleSummaryAnalysis.h
 include/llvm/Analysis/ObjCARCAliasAnalysis.h
 include/llvm/Analysis/ObjCARCAnalysisUtils.h
 include/llvm/Analysis/ObjCARCInstKind.h
+include/llvm/Analysis/ObjectUtils.h
 include/llvm/Analysis/OptimizationDiagnosticInfo.h
 include/llvm/Analysis/OrderedBasicBlock.h
 include/llvm/Analysis/PHITransAddr.h
@@ -234,6 +243,31 @@ include/llvm/Analysis/ValueTracking.h
 include/llvm/Analysis/VectorUtils.h
 include/llvm/AsmParser/Parser.h
 include/llvm/AsmParser/SlotMapping.h
+include/llvm/BinaryFormat/COFF.h
+include/llvm/BinaryFormat/Dwarf.def
+include/llvm/BinaryFormat/Dwarf.h
+include/llvm/BinaryFormat/ELF.h
+include/llvm/BinaryFormat/ELFRelocs/AArch64.def
+include/llvm/BinaryFormat/ELFRelocs/AMDGPU.def
+include/llvm/BinaryFormat/ELFRelocs/ARM.def
+include/llvm/BinaryFormat/ELFRelocs/AVR.def
+include/llvm/BinaryFormat/ELFRelocs/BPF.def
+include/llvm/BinaryFormat/ELFRelocs/Hexagon.def
+include/llvm/BinaryFormat/ELFRelocs/Lanai.def
+include/llvm/BinaryFormat/ELFRelocs/Mips.def
+include/llvm/BinaryFormat/ELFRelocs/PowerPC.def
+include/llvm/BinaryFormat/ELFRelocs/PowerPC64.def
+include/llvm/BinaryFormat/ELFRelocs/RISCV.def
+include/llvm/BinaryFormat/ELFRelocs/Sparc.def
+include/llvm/BinaryFormat/ELFRelocs/SystemZ.def
+include/llvm/BinaryFormat/ELFRelocs/WebAssembly.def
+include/llvm/BinaryFormat/ELFRelocs/i386.def
+include/llvm/BinaryFormat/ELFRelocs/x86_64.def
+include/llvm/BinaryFormat/MachO.def
+include/llvm/BinaryFormat/MachO.h
+include/llvm/BinaryFormat/Magic.h
+include/llvm/BinaryFormat/Wasm.h
+include/llvm/BinaryFormat/WasmRelocs/WebAssembly.def
 include/llvm/Bitcode/BitCodes.h
 include/llvm/Bitcode/BitcodeReader.h
 include/llvm/Bitcode/BitcodeWriter.h
@@ -254,6 +288,8 @@ include/llvm/CodeGen/DIE.h
 include/llvm/CodeGen/DIEValue.def
 include/llvm/CodeGen/DwarfStringPoolEntry.h
 include/llvm/CodeGen/EdgeBundles.h
+include/llvm/CodeGen/ExecutionDepsFix.h
+include/llvm/CodeGen/ExpandReductions.h
 include/llvm/CodeGen/FastISel.h
 include/llvm/CodeGen/FaultMaps.h
 include/llvm/CodeGen/FunctionLoweringInfo.h
@@ -266,9 +302,11 @@ include/llvm/CodeGen/GlobalISel/GISelAcc
 include/llvm/CodeGen/GlobalISel/IRTranslator.h
 include/llvm/CodeGen/GlobalISel/InstructionSelect.h
 include/llvm/CodeGen/GlobalISel/InstructionSelector.h
+include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
 include/llvm/CodeGen/GlobalISel/Legalizer.h
 include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
 include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
+include/llvm/CodeGen/GlobalISel/Localizer.h
 include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
 include/llvm/CodeGen/GlobalISel/RegBankSelect.h
 include/llvm/CodeGen/GlobalISel/RegisterBank.h
@@ -278,6 +316,7 @@ include/llvm/CodeGen/GlobalISel/Utils.h
 include/llvm/CodeGen/ISDOpcodes.h
 include/llvm/CodeGen/IntrinsicLowering.h
 include/llvm/CodeGen/LatencyPriorityQueue.h
+include/llvm/CodeGen/LazyMachineBlockFrequencyInfo.h
 include/llvm/CodeGen/LexicalScopes.h
 include/llvm/CodeGen/LinkAllAsmWriterComponents.h
 include/llvm/CodeGen/LinkAllCodegenComponents.h
@@ -287,10 +326,12 @@ include/llvm/CodeGen/LiveIntervalUnion.h
 include/llvm/CodeGen/LivePhysRegs.h
 include/llvm/CodeGen/LiveRangeEdit.h
 include/llvm/CodeGen/LiveRegMatrix.h
+include/llvm/CodeGen/LiveRegUnits.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/MIRPrinter.h
 include/llvm/CodeGen/MIRYamlMapping.h
 include/llvm/CodeGen/MachORelocation.h
 include/llvm/CodeGen/MachineBasicBlock.h
@@ -302,7 +343,6 @@ include/llvm/CodeGen/MachineDominanceFro
 include/llvm/CodeGen/MachineDominators.h
 include/llvm/CodeGen/MachineFrameInfo.h
 include/llvm/CodeGen/MachineFunction.h
-include/llvm/CodeGen/MachineFunctionInitializer.h
 include/llvm/CodeGen/MachineFunctionPass.h
 include/llvm/CodeGen/MachineInstr.h
 include/llvm/CodeGen/MachineInstrBuilder.h
@@ -314,6 +354,7 @@ include/llvm/CodeGen/MachineMemOperand.h
 include/llvm/CodeGen/MachineModuleInfo.h
 include/llvm/CodeGen/MachineModuleInfoImpls.h
 include/llvm/CodeGen/MachineOperand.h
+include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h
 include/llvm/CodeGen/MachinePassRegistry.h
 include/llvm/CodeGen/MachinePostDominators.h
 include/llvm/CodeGen/MachineRegionInfo.h
@@ -322,6 +363,7 @@ include/llvm/CodeGen/MachineSSAUpdater.h
 include/llvm/CodeGen/MachineScheduler.h
 include/llvm/CodeGen/MachineTraceMetrics.h
 include/llvm/CodeGen/MachineValueType.h
+include/llvm/CodeGen/MacroFusion.h
 include/llvm/CodeGen/PBQP/CostAllocator.h
 include/llvm/CodeGen/PBQP/Graph.h
 include/llvm/CodeGen/PBQP/Math.h
@@ -348,6 +390,7 @@ include/llvm/CodeGen/ScheduleHazardRecog
 include/llvm/CodeGen/SchedulerRegistry.h
 include/llvm/CodeGen/ScoreboardHazardRecognizer.h
 include/llvm/CodeGen/SelectionDAG.h
+include/llvm/CodeGen/SelectionDAGAddressAnalysis.h
 include/llvm/CodeGen/SelectionDAGISel.h
 include/llvm/CodeGen/SelectionDAGNodes.h
 include/llvm/CodeGen/SelectionDAGTargetInfo.h
@@ -371,19 +414,34 @@ include/llvm/Config/abi-breaking.h
 include/llvm/Config/llvm-config.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/CodeViewRecordIO.h
+include/llvm/DebugInfo/CodeView/CodeViewSymbols.def
+include/llvm/DebugInfo/CodeView/CodeViewTypes.def
+include/llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h
+include/llvm/DebugInfo/CodeView/DebugCrossExSubsection.h
+include/llvm/DebugInfo/CodeView/DebugCrossImpSubsection.h
+include/llvm/DebugInfo/CodeView/DebugFrameDataSubsection.h
+include/llvm/DebugInfo/CodeView/DebugInlineeLinesSubsection.h
+include/llvm/DebugInfo/CodeView/DebugLinesSubsection.h
+include/llvm/DebugInfo/CodeView/DebugStringTableSubsection.h
+include/llvm/DebugInfo/CodeView/DebugSubsection.h
+include/llvm/DebugInfo/CodeView/DebugSubsectionRecord.h
+include/llvm/DebugInfo/CodeView/DebugSubsectionVisitor.h
+include/llvm/DebugInfo/CodeView/DebugSymbolRVASubsection.h
+include/llvm/DebugInfo/CodeView/DebugSymbolsSubsection.h
+include/llvm/DebugInfo/CodeView/DebugUnknownSubsection.h
 include/llvm/DebugInfo/CodeView/EnumTables.h
+include/llvm/DebugInfo/CodeView/Formatters.h
 include/llvm/DebugInfo/CodeView/FunctionId.h
+include/llvm/DebugInfo/CodeView/GUID.h
+include/llvm/DebugInfo/CodeView/LazyRandomTypeCollection.h
 include/llvm/DebugInfo/CodeView/Line.h
-include/llvm/DebugInfo/CodeView/ModuleSubstream.h
-include/llvm/DebugInfo/CodeView/ModuleSubstreamVisitor.h
 include/llvm/DebugInfo/CodeView/RecordSerialization.h
+include/llvm/DebugInfo/CodeView/StringsAndChecksums.h
 include/llvm/DebugInfo/CodeView/SymbolDeserializer.h
 include/llvm/DebugInfo/CodeView/SymbolDumpDelegate.h
 include/llvm/DebugInfo/CodeView/SymbolDumper.h
@@ -393,27 +451,29 @@ include/llvm/DebugInfo/CodeView/SymbolSe
 include/llvm/DebugInfo/CodeView/SymbolVisitorCallbackPipeline.h
 include/llvm/DebugInfo/CodeView/SymbolVisitorCallbacks.h
 include/llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h
-include/llvm/DebugInfo/CodeView/TypeDatabase.h
-include/llvm/DebugInfo/CodeView/TypeDatabaseVisitor.h
+include/llvm/DebugInfo/CodeView/TypeCollection.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/TypeIndexDiscovery.h
+include/llvm/DebugInfo/CodeView/TypeName.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/TypeTableCollection.h
 include/llvm/DebugInfo/CodeView/TypeVisitorCallbackPipeline.h
 include/llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h
 include/llvm/DebugInfo/DIContext.h
 include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h
 include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
+include/llvm/DebugInfo/DWARF/DWARFAttribute.h
 include/llvm/DebugInfo/DWARF/DWARFCompileUnit.h
 include/llvm/DebugInfo/DWARF/DWARFContext.h
+include/llvm/DebugInfo/DWARF/DWARFDataExtractor.h
 include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h
 include/llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h
 include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
@@ -432,19 +492,13 @@ include/llvm/DebugInfo/DWARF/DWARFSectio
 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/DWARF/DWARFVerifier.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
@@ -464,6 +518,40 @@ include/llvm/DebugInfo/PDB/IPDBLineNumbe
 include/llvm/DebugInfo/PDB/IPDBRawSymbol.h
 include/llvm/DebugInfo/PDB/IPDBSession.h
 include/llvm/DebugInfo/PDB/IPDBSourceFile.h
+include/llvm/DebugInfo/PDB/Native/DbiModuleDescriptor.h
+include/llvm/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.h
+include/llvm/DebugInfo/PDB/Native/DbiModuleList.h
+include/llvm/DebugInfo/PDB/Native/DbiStream.h
+include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h
+include/llvm/DebugInfo/PDB/Native/EnumTables.h
+include/llvm/DebugInfo/PDB/Native/Formatters.h
+include/llvm/DebugInfo/PDB/Native/GlobalsStream.h
+include/llvm/DebugInfo/PDB/Native/Hash.h
+include/llvm/DebugInfo/PDB/Native/HashTable.h
+include/llvm/DebugInfo/PDB/Native/ISectionContribVisitor.h
+include/llvm/DebugInfo/PDB/Native/InfoStream.h
+include/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h
+include/llvm/DebugInfo/PDB/Native/ModuleDebugStream.h
+include/llvm/DebugInfo/PDB/Native/NamedStreamMap.h
+include/llvm/DebugInfo/PDB/Native/NativeBuiltinSymbol.h
+include/llvm/DebugInfo/PDB/Native/NativeCompilandSymbol.h
+include/llvm/DebugInfo/PDB/Native/NativeEnumModules.h
+include/llvm/DebugInfo/PDB/Native/NativeExeSymbol.h
+include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h
+include/llvm/DebugInfo/PDB/Native/NativeSession.h
+include/llvm/DebugInfo/PDB/Native/PDBFile.h
+include/llvm/DebugInfo/PDB/Native/PDBFileBuilder.h
+include/llvm/DebugInfo/PDB/Native/PDBStringTable.h
+include/llvm/DebugInfo/PDB/Native/PDBStringTableBuilder.h
+include/llvm/DebugInfo/PDB/Native/PublicsStream.h
+include/llvm/DebugInfo/PDB/Native/PublicsStreamBuilder.h
+include/llvm/DebugInfo/PDB/Native/RawConstants.h
+include/llvm/DebugInfo/PDB/Native/RawError.h
+include/llvm/DebugInfo/PDB/Native/RawTypes.h
+include/llvm/DebugInfo/PDB/Native/SymbolStream.h
+include/llvm/DebugInfo/PDB/Native/TpiHashing.h
+include/llvm/DebugInfo/PDB/Native/TpiStream.h
+include/llvm/DebugInfo/PDB/Native/TpiStreamBuilder.h
 include/llvm/DebugInfo/PDB/PDB.h
 include/llvm/DebugInfo/PDB/PDBContext.h
 include/llvm/DebugInfo/PDB/PDBExtras.h
@@ -501,30 +589,7 @@ include/llvm/DebugInfo/PDB/PDBSymbolType
 include/llvm/DebugInfo/PDB/PDBSymbolUnknown.h
 include/llvm/DebugInfo/PDB/PDBSymbolUsingNamespace.h
 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/EnumTables.h
-include/llvm/DebugInfo/PDB/Raw/GlobalsStream.h
-include/llvm/DebugInfo/PDB/Raw/Hash.h
-include/llvm/DebugInfo/PDB/Raw/ISectionContribVisitor.h
-include/llvm/DebugInfo/PDB/Raw/InfoStream.h
-include/llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h
-include/llvm/DebugInfo/PDB/Raw/ModInfo.h
-include/llvm/DebugInfo/PDB/Raw/ModStream.h
-include/llvm/DebugInfo/PDB/Raw/NameHashTable.h
-include/llvm/DebugInfo/PDB/Raw/NameMap.h
-include/llvm/DebugInfo/PDB/Raw/NameMapBuilder.h
-include/llvm/DebugInfo/PDB/Raw/PDBFile.h
-include/llvm/DebugInfo/PDB/Raw/PDBFileBuilder.h
-include/llvm/DebugInfo/PDB/Raw/PublicsStream.h
-include/llvm/DebugInfo/PDB/Raw/RawConstants.h
-include/llvm/DebugInfo/PDB/Raw/RawError.h
-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/PDB/UDTLayout.h
 include/llvm/DebugInfo/Symbolize/DIPrinter.h
 include/llvm/DebugInfo/Symbolize/SymbolizableModule.h
 include/llvm/DebugInfo/Symbolize/Symbolize.h
@@ -548,7 +613,6 @@ include/llvm/ExecutionEngine/Orc/Indirec
 include/llvm/ExecutionEngine/Orc/LambdaResolver.h
 include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h
 include/llvm/ExecutionEngine/Orc/NullResolver.h
-include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h
 include/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h
 include/llvm/ExecutionEngine/Orc/OrcABISupport.h
 include/llvm/ExecutionEngine/Orc/OrcError.h
@@ -557,6 +621,7 @@ include/llvm/ExecutionEngine/Orc/OrcRemo
 include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
 include/llvm/ExecutionEngine/Orc/RPCSerialization.h
 include/llvm/ExecutionEngine/Orc/RPCUtils.h
+include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h
 include/llvm/ExecutionEngine/Orc/RawByteChannel.h
 include/llvm/ExecutionEngine/OrcMCJITReplacement.h
 include/llvm/ExecutionEngine/RTDyldMemoryManager.h
@@ -585,6 +650,7 @@ include/llvm/IR/DebugInfoFlags.def
 include/llvm/IR/DebugInfoMetadata.h
 include/llvm/IR/DebugLoc.h
 include/llvm/IR/DerivedTypes.h
+include/llvm/IR/DerivedUser.h
 include/llvm/IR/DiagnosticInfo.h
 include/llvm/IR/DiagnosticPrinter.h
 include/llvm/IR/Dominators.h
@@ -643,6 +709,7 @@ include/llvm/IR/PassManagerInternal.h
 include/llvm/IR/PatternMatch.h
 include/llvm/IR/PredIteratorCache.h
 include/llvm/IR/ProfileSummary.h
+include/llvm/IR/SafepointIRVerifier.h
 include/llvm/IR/Statepoint.h
 include/llvm/IR/SymbolTableListTraits.h
 include/llvm/IR/TrackingMDRef.h
@@ -668,7 +735,6 @@ include/llvm/LTO/legacy/LTOCodeGenerator
 include/llvm/LTO/legacy/LTOModule.h
 include/llvm/LTO/legacy/ThinLTOCodeGenerator.h
 include/llvm/LTO/legacy/UpdateCompilerUsed.h
-include/llvm/LibDriver/LibDriver.h
 include/llvm/LineEditor/LineEditor.h
 include/llvm/LinkAllIR.h
 include/llvm/LinkAllPasses.h
@@ -681,6 +747,7 @@ include/llvm/MC/MCAsmInfo.h
 include/llvm/MC/MCAsmInfoCOFF.h
 include/llvm/MC/MCAsmInfoDarwin.h
 include/llvm/MC/MCAsmInfoELF.h
+include/llvm/MC/MCAsmInfoWasm.h
 include/llvm/MC/MCAsmLayout.h
 include/llvm/MC/MCAssembler.h
 include/llvm/MC/MCCodeEmitter.h
@@ -726,15 +793,19 @@ include/llvm/MC/MCSection.h
 include/llvm/MC/MCSectionCOFF.h
 include/llvm/MC/MCSectionELF.h
 include/llvm/MC/MCSectionMachO.h
+include/llvm/MC/MCSectionWasm.h
 include/llvm/MC/MCStreamer.h
 include/llvm/MC/MCSubtargetInfo.h
 include/llvm/MC/MCSymbol.h
 include/llvm/MC/MCSymbolCOFF.h
 include/llvm/MC/MCSymbolELF.h
 include/llvm/MC/MCSymbolMachO.h
+include/llvm/MC/MCSymbolWasm.h
 include/llvm/MC/MCTargetOptions.h
 include/llvm/MC/MCTargetOptionsCommandFlags.h
 include/llvm/MC/MCValue.h
+include/llvm/MC/MCWasmObjectWriter.h
+include/llvm/MC/MCWasmStreamer.h
 include/llvm/MC/MCWin64EH.h
 include/llvm/MC/MCWinCOFFObjectWriter.h
 include/llvm/MC/MCWinCOFFStreamer.h
@@ -748,15 +819,16 @@ include/llvm/Object/ArchiveWriter.h
 include/llvm/Object/Binary.h
 include/llvm/Object/COFF.h
 include/llvm/Object/COFFImportFile.h
+include/llvm/Object/COFFModuleDefinition.h
 include/llvm/Object/Decompressor.h
 include/llvm/Object/ELF.h
 include/llvm/Object/ELFObjectFile.h
 include/llvm/Object/ELFTypes.h
 include/llvm/Object/Error.h
 include/llvm/Object/IRObjectFile.h
+include/llvm/Object/IRSymtab.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
@@ -764,11 +836,17 @@ include/llvm/Object/StackMapParser.h
 include/llvm/Object/SymbolSize.h
 include/llvm/Object/SymbolicFile.h
 include/llvm/Object/Wasm.h
+include/llvm/Object/WindowsResource.h
 include/llvm/ObjectYAML/COFFYAML.h
+include/llvm/ObjectYAML/CodeViewYAMLDebugSections.h
+include/llvm/ObjectYAML/CodeViewYAMLSymbols.h
+include/llvm/ObjectYAML/CodeViewYAMLTypes.h
+include/llvm/ObjectYAML/DWARFEmitter.h
 include/llvm/ObjectYAML/DWARFYAML.h
 include/llvm/ObjectYAML/ELFYAML.h
 include/llvm/ObjectYAML/MachOYAML.h
 include/llvm/ObjectYAML/ObjectYAML.h
+include/llvm/ObjectYAML/WasmYAML.h
 include/llvm/ObjectYAML/YAML.h
 include/llvm/Option/Arg.h
 include/llvm/Option/ArgList.h
@@ -794,6 +872,8 @@ include/llvm/ProfileData/SampleProf.h
 include/llvm/ProfileData/SampleProfReader.h
 include/llvm/ProfileData/SampleProfWriter.h
 include/llvm/Support/AArch64TargetParser.def
+include/llvm/Support/AMDGPUCodeObjectMetadata.h
+include/llvm/Support/ARMAttributeParser.h
 include/llvm/Support/ARMBuildAttributes.h
 include/llvm/Support/ARMEHABI.h
 include/llvm/Support/ARMTargetParser.def
@@ -803,10 +883,17 @@ include/llvm/Support/Allocator.h
 include/llvm/Support/ArrayRecycler.h
 include/llvm/Support/Atomic.h
 include/llvm/Support/AtomicOrdering.h
+include/llvm/Support/BinaryByteStream.h
+include/llvm/Support/BinaryItemStream.h
+include/llvm/Support/BinaryStream.h
+include/llvm/Support/BinaryStreamArray.h
+include/llvm/Support/BinaryStreamError.h
+include/llvm/Support/BinaryStreamReader.h
+include/llvm/Support/BinaryStreamRef.h
+include/llvm/Support/BinaryStreamWriter.h
 include/llvm/Support/BlockFrequency.h
 include/llvm/Support/BranchProbability.h
 include/llvm/Support/CBindingWrapping.h
-include/llvm/Support/COFF.h
 include/llvm/Support/COM.h
 include/llvm/Support/CachePruning.h
 include/llvm/Support/Capacity.h
@@ -823,26 +910,8 @@ include/llvm/Support/DOTGraphTraits.h
 include/llvm/Support/DataExtractor.h
 include/llvm/Support/DataTypes.h
 include/llvm/Support/Debug.h
-include/llvm/Support/Dwarf.def
-include/llvm/Support/Dwarf.h
+include/llvm/Support/DebugCounter.h
 include/llvm/Support/DynamicLibrary.h
-include/llvm/Support/ELF.h
-include/llvm/Support/ELFRelocs/AArch64.def
-include/llvm/Support/ELFRelocs/AMDGPU.def
-include/llvm/Support/ELFRelocs/ARM.def
-include/llvm/Support/ELFRelocs/AVR.def
-include/llvm/Support/ELFRelocs/BPF.def
-include/llvm/Support/ELFRelocs/Hexagon.def
-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
-include/llvm/Support/ELFRelocs/i386.def
-include/llvm/Support/ELFRelocs/x86_64.def
 include/llvm/Support/Endian.h
 include/llvm/Support/EndianStream.h
 include/llvm/Support/Errc.h
@@ -867,14 +936,14 @@ include/llvm/Support/GlobPattern.h
 include/llvm/Support/GraphWriter.h
 include/llvm/Support/Host.h
 include/llvm/Support/JamCRC.h
+include/llvm/Support/KnownBits.h
 include/llvm/Support/LEB128.h
 include/llvm/Support/LICENSE.TXT
 include/llvm/Support/LineIterator.h
 include/llvm/Support/Locale.h
 include/llvm/Support/LockFileManager.h
+include/llvm/Support/LowLevelTypeImpl.h
 include/llvm/Support/MD5.h
-include/llvm/Support/MachO.def
-include/llvm/Support/MachO.h
 include/llvm/Support/ManagedStatic.h
 include/llvm/Support/MathExtras.h
 include/llvm/Support/Memory.h
@@ -885,6 +954,7 @@ include/llvm/Support/MutexGuard.h
 include/llvm/Support/NativeFormatting.h
 include/llvm/Support/OnDiskHashTable.h
 include/llvm/Support/Options.h
+include/llvm/Support/Parallel.h
 include/llvm/Support/Path.h
 include/llvm/Support/PluginLoader.h
 include/llvm/Support/PointerLikeTypeTraits.h
@@ -898,13 +968,14 @@ include/llvm/Support/Recycler.h
 include/llvm/Support/RecyclingAllocator.h
 include/llvm/Support/Regex.h
 include/llvm/Support/Registry.h
+include/llvm/Support/ReverseIteration.h
 include/llvm/Support/SHA1.h
 include/llvm/Support/SMLoc.h
 include/llvm/Support/SaveAndRestore.h
 include/llvm/Support/ScaledNumber.h
 include/llvm/Support/ScopedPrinter.h
 include/llvm/Support/Signals.h
-include/llvm/Support/Solaris.h
+include/llvm/Support/Solaris/sys/regset.h
 include/llvm/Support/SourceMgr.h
 include/llvm/Support/SpecialCaseList.h
 include/llvm/Support/StringPool.h
@@ -926,8 +997,8 @@ include/llvm/Support/TypeName.h
 include/llvm/Support/Unicode.h
 include/llvm/Support/UnicodeCharRanges.h
 include/llvm/Support/UniqueLock.h
+include/llvm/Support/VCSRevision.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
@@ -950,11 +1021,13 @@ include/llvm/TableGen/StringToOffsetTabl
 include/llvm/TableGen/TableGenBackend.h
 include/llvm/Target/CostTable.h
 include/llvm/Target/GenericOpcodes.td
+include/llvm/Target/GlobalISel/RegisterBank.td
+include/llvm/Target/GlobalISel/SelectionDAGCompat.td
+include/llvm/Target/GlobalISel/Target.td
 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
@@ -968,10 +1041,15 @@ include/llvm/Target/TargetRegisterInfo.h
 include/llvm/Target/TargetSchedule.td
 include/llvm/Target/TargetSelectionDAG.td
 include/llvm/Target/TargetSubtargetInfo.h
+include/llvm/Testing/Support/Error.h
+include/llvm/Testing/Support/SupportHelpers.h
+include/llvm/ToolDrivers/llvm-dlltool/DlltoolDriver.h
+include/llvm/ToolDrivers/llvm-lib/LibDriver.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/ArgumentPromotion.h
 include/llvm/Transforms/IPO/ConstantMerge.h
 include/llvm/Transforms/IPO/CrossDSOCFI.h
 include/llvm/Transforms/IPO/DeadArgumentElimination.h
@@ -990,6 +1068,7 @@ include/llvm/Transforms/IPO/PartialInlin
 include/llvm/Transforms/IPO/PassManagerBuilder.h
 include/llvm/Transforms/IPO/SCCP.h
 include/llvm/Transforms/IPO/StripDeadPrototypes.h
+include/llvm/Transforms/IPO/ThinLTOBitcodeWriter.h
 include/llvm/Transforms/IPO/WholeProgramDevirt.h
 include/llvm/Transforms/InstCombine/InstCombine.h
 include/llvm/Transforms/InstCombine/InstCombineWorklist.h
@@ -1021,9 +1100,12 @@ include/llvm/Transforms/Scalar/LoopDelet
 include/llvm/Transforms/Scalar/LoopDistribute.h
 include/llvm/Transforms/Scalar/LoopIdiomRecognize.h
 include/llvm/Transforms/Scalar/LoopInstSimplify.h
+include/llvm/Transforms/Scalar/LoopLoadElimination.h
 include/llvm/Transforms/Scalar/LoopPassManager.h
+include/llvm/Transforms/Scalar/LoopPredication.h
 include/llvm/Transforms/Scalar/LoopRotation.h
 include/llvm/Transforms/Scalar/LoopSimplifyCFG.h
+include/llvm/Transforms/Scalar/LoopSink.h
 include/llvm/Transforms/Scalar/LoopStrengthReduce.h
 include/llvm/Transforms/Scalar/LoopUnrollPass.h
 include/llvm/Transforms/Scalar/LowerAtomic.h
@@ -1037,6 +1119,7 @@ include/llvm/Transforms/Scalar/Partially
 include/llvm/Transforms/Scalar/Reassociate.h
 include/llvm/Transforms/Scalar/SCCP.h
 include/llvm/Transforms/Scalar/SROA.h
+include/llvm/Transforms/Scalar/SimpleLoopUnswitch.h
 include/llvm/Transforms/Scalar/SimplifyCFG.h
 include/llvm/Transforms/Scalar/Sink.h
 include/llvm/Transforms/Scalar/SpeculativeExecution.h
@@ -1065,10 +1148,12 @@ include/llvm/Transforms/Utils/LoopSimpli
 include/llvm/Transforms/Utils/LoopUtils.h
 include/llvm/Transforms/Utils/LoopVersioning.h
 include/llvm/Transforms/Utils/LowerInvoke.h
+include/llvm/Transforms/Utils/LowerMemIntrinsics.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/OrderedInstructions.h
+include/llvm/Transforms/Utils/PredicateInfo.h
 include/llvm/Transforms/Utils/PromoteMemToReg.h
 include/llvm/Transforms/Utils/SSAUpdater.h
 include/llvm/Transforms/Utils/SSAUpdaterImpl.h
@@ -1080,10 +1165,13 @@ include/llvm/Transforms/Utils/SplitModul
 include/llvm/Transforms/Utils/SymbolRewriter.h
 include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
 include/llvm/Transforms/Utils/UnrollLoop.h
+include/llvm/Transforms/Utils/VNCoercion.h
 include/llvm/Transforms/Utils/ValueMapper.h
 include/llvm/Transforms/Vectorize.h
 include/llvm/Transforms/Vectorize/LoopVectorize.h
 include/llvm/Transforms/Vectorize/SLPVectorizer.h
+include/llvm/XRay/Graph.h
+include/llvm/XRay/InstrumentationMap.h
 include/llvm/XRay/Trace.h
 include/llvm/XRay/XRayRecord.h
 include/llvm/XRay/YAMLXRayRecord.h
@@ -1115,6 +1203,9 @@ lib/cmake/llvm/LLVMInstallSymlink.cmake
 lib/cmake/llvm/LLVMProcessSources.cmake
 lib/cmake/llvm/TableGen.cmake
 lib/cmake/llvm/VersionFromVCS.cmake
+${PLIST.notdylib}lib/libLLVM-${PKGVERSION}.${SOEXT}
+${PLIST.notdylib}lib/libLLVM-5.0.${SOEXT}
+lib/libLLVM.${SOEXT}
 ${PLIST.AArch64}lib/libLLVMAArch64AsmParser.a
 ${PLIST.AArch64}lib/libLLVMAArch64AsmPrinter.a
 ${PLIST.AArch64}lib/libLLVMAArch64CodeGen.a
@@ -1143,6 +1234,7 @@ ${PLIST.BPF}lib/libLLVMBPFCodeGen.a
 ${PLIST.BPF}lib/libLLVMBPFDesc.a
 ${PLIST.BPF}lib/libLLVMBPFDisassembler.a
 ${PLIST.BPF}lib/libLLVMBPFInfo.a
+lib/libLLVMBinaryFormat.a
 lib/libLLVMBitReader.a
 lib/libLLVMBitWriter.a
 lib/libLLVMCodeGen.a
@@ -1154,6 +1246,7 @@ lib/libLLVMDebugInfoDWARF.a
 lib/libLLVMDebugInfoMSF.a
 lib/libLLVMDebugInfoPDB.a
 lib/libLLVMDemangle.a
+lib/libLLVMDlltoolDriver.a
 lib/libLLVMExecutionEngine.a
 lib/libLLVMGlobalISel.a
 ${PLIST.Hexagon}lib/libLLVMHexagonAsmParser.a
@@ -1236,9 +1329,12 @@ ${PLIST.XCore}lib/libLLVMXCoreDisassembl
 ${PLIST.XCore}lib/libLLVMXCoreInfo.a
 lib/libLLVMXRay.a
 lib/libLLVMipo.a
-lib/libLLVM.${SOEXT}
-${PLIST.notdylib}lib/libLLVM-4.0.${SOEXT}
-${PLIST.notdylib}lib/libLLVM-${PKGVERSION}.${SOEXT}
 lib/libLTO.${SOEXT}
-${PLIST.notdylib}lib/libLTO.${SOEXT}.4
 ${PLIST.notdylib}lib/libLTO.${SOEXT}.${PKGVERSION}
+${PLIST.notdylib}lib/libLTO.${SOEXT}.5
+share/opt-viewer/opt-diff.py
+share/opt-viewer/opt-stats.py
+share/opt-viewer/opt-viewer.py
+share/opt-viewer/optpmap.py
+share/opt-viewer/optrecord.py
+share/opt-viewer/style.css

Index: pkgsrc/lang/llvm/distinfo
diff -u pkgsrc/lang/llvm/distinfo:1.10 pkgsrc/lang/llvm/distinfo:1.11
--- pkgsrc/lang/llvm/distinfo:1.10      Sat Sep 30 04:38:09 2017
+++ pkgsrc/lang/llvm/distinfo   Fri Dec  1 19:22:12 2017
@@ -1,14 +1,10 @@
-$NetBSD: distinfo,v 1.10 2017/09/30 04:38:09 ryoon Exp $
+$NetBSD: distinfo,v 1.11 2017/12/01 19:22:12 adam Exp $
 
-SHA1 (llvm-4.0.1.src.tar.xz) = ddbf4dab7ab1a4bdce5ed1227bf721cbb3533a6e
-RMD160 (llvm-4.0.1.src.tar.xz) = 37387a5ca73ea270b2f541ecbd1cd641f7b09be2
-SHA512 (llvm-4.0.1.src.tar.xz) = 16adc39b34ddb628f81b171119a8e2a0e9138b25011e803ef0b688e2fbea116fc4953d3a1b61b90a98a75e33619f81566b7cb06a9a2ea4d04ac5e0eb303a2d1d
-Size (llvm-4.0.1.src.tar.xz) = 21065652 bytes
-SHA1 (patch-cmake_config-ix.cmake) = ae7fdf297485b8e944f92dceed0da2c835c43c72
+SHA1 (llvm-5.0.0.src.tar.xz) = 7b0fd212ecc38461e392cbdcbe6a1d4944138a04
+RMD160 (llvm-5.0.0.src.tar.xz) = 849075e32e6aa5e38c2e9a7108803e745c0ed0fc
+SHA512 (llvm-5.0.0.src.tar.xz) = e6d8fdcb5bf27bded814d02f39f69c6171bc3a512d5957c03e5ac2e231f903b7de87634b059bd5c5da670f7c3a8f7a538f6299225799f15f921857f1452f6b3a
+Size (llvm-5.0.0.src.tar.xz) = 23411980 bytes
+SHA1 (patch-cmake_config-ix.cmake) = 4675b1dfca3850dbed6c494bf6a8f6fc6d500c20
 SHA1 (patch-cmake_modules_AddLLVM.cmake) = 4bfb98c5d99797155d0fb13a43352d31f6cfe783
 SHA1 (patch-cmake_modules_HandleLLVMOptions.cmake) = 271e6f5a8cebf8162c4e3b758e96f451b434269b
-SHA1 (patch-include_llvm_Support_Host.h) = a4e19a72714084b211b0182c04ccc51bd606e150
-SHA1 (patch-lib_Support_Unix_Path.inc) = 08db2e5a098e6450652ca4b239c677716ba9f69f
-SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 18e6ec7b8895e55ecdf93c9d4781e92052a6fcb1
-SHA1 (patch-utils_unittest_googletest_include_gtest_internal_gtest-port-arch.h) = 973941b2180dde3b0c6362bba3a472951b7a5a49
-SHA1 (patch-utils_unittest_googletest_include_gtest_internal_gtest-port.h) = 8a39fa48a44cb1f7e6bd555670089a44b4bee9a1
+SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 70d8f320f217d99e6f991709a080450bc05631cd

Index: pkgsrc/lang/llvm/patches/patch-cmake_config-ix.cmake
diff -u pkgsrc/lang/llvm/patches/patch-cmake_config-ix.cmake:1.1 pkgsrc/lang/llvm/patches/patch-cmake_config-ix.cmake:1.2
--- pkgsrc/lang/llvm/patches/patch-cmake_config-ix.cmake:1.1    Sat Sep 30 04:38:09 2017
+++ pkgsrc/lang/llvm/patches/patch-cmake_config-ix.cmake        Fri Dec  1 19:22:12 2017
@@ -1,6 +1,6 @@
-$NetBSD: patch-cmake_config-ix.cmake,v 1.1 2017/09/30 04:38:09 ryoon Exp $
+$NetBSD: patch-cmake_config-ix.cmake,v 1.2 2017/12/01 19:22:12 adam Exp $
 
-* Do not generate invalid llvm-config in pkgsrc
+Do not generate invalid llvm-config in pkgsrc.
 
 --- cmake/config-ix.cmake.orig 2017-05-19 01:55:05.000000000 +0000
 +++ cmake/config-ix.cmake
@@ -9,7 +9,7 @@ $NetBSD: patch-cmake_config-ix.cmake,v 1
    if(LLVM_ENABLE_TERMINFO)
      set(HAVE_TERMINFO 0)
 -    foreach(library tinfo terminfo curses ncurses ncursesw)
-+    foreach(library terminfo tinfo curses ncurses ncursesw)
++    foreach(library terminfo curses ncurses ncursesw tinfo)
        string(TOUPPER ${library} library_suffix)
        check_library_exists(${library} setupterm "" HAVE_TERMINFO_${library_suffix})
        if(HAVE_TERMINFO_${library_suffix})
Index: pkgsrc/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt
diff -u pkgsrc/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt:1.1 pkgsrc/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt:1.2
--- pkgsrc/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt:1.1  Sun Mar 19 19:01:48 2017
+++ pkgsrc/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt      Fri Dec  1 19:22:12 2017
@@ -1,23 +1,27 @@
-$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.1 2017/03/19 19:01:48 adam Exp $
+$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.2 2017/12/01 19:22:12 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.orig       2017-07-11 01:17:44.000000000 +0000
 +++ tools/llvm-shlib/CMakeLists.txt
-@@ -37,11 +37,12 @@ endif()
+@@ -37,15 +37,15 @@ endif()
  add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${SOURCES})
  
  list(REMOVE_DUPLICATES LIB_NAMES)
--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")
+-if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR (MINGW) OR (HAIKU) OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD") OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "DragonFly")) # FIXME: It should be "GNU ld for 
elf"
 +if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
-   set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
++  set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
 +elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")
 +  set(LIB_NAMES -Wl,-Bsymbolic -Wl,-z -Wl,allextract ${LIB_NAMES} -Wl,-z -Wl,defaultextract)
 +else()
-+  set(LIB_NAMES -Wl,--whole-archive ${LIB_NAMES} -Wl,--no-whole-archive)
+   configure_file(
+   ${CMAKE_CURRENT_SOURCE_DIR}/simple_version_script.map.in
+   ${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map)
+-
+-  # GNU ld doesn't resolve symbols in the version script.
+   set(LIB_NAMES -Wl,--version-script,${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map -Wl,--whole-archive ${LIB_NAMES} -Wl,--no-whole-archive)
+-elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
+-  set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
  endif()
  
  target_link_libraries(LLVM PRIVATE ${LIB_NAMES})



Home | Main Index | Thread Index | Old Index