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:   ryoon
Date:           Mon Nov 14 20:15:33 UTC 2016

Modified Files:
        pkgsrc/devel/lldb: Makefile PLIST distinfo
        pkgsrc/devel/lldb/patches: patch-cmake_modules_LLDBStandalone.cmake
        pkgsrc/lang/clang: Makefile.common PLIST buildlink3.mk distinfo
        pkgsrc/lang/clang/patches: patch-tools_clang-format_CMakeLists.txt
        pkgsrc/lang/libLLVM: Makefile PLIST distinfo options.mk
        pkgsrc/lang/libLLVM/patches: patch-cmake_modules_AddLLVM.cmake
            patch-cmake_modules_CMakeLists.txt
            patch-cmake_modules_TableGen.cmake
            patch-include_llvm_Support_Host.h
            patch-tools_llvm-config_llvm-config.cpp
        pkgsrc/lang/libunwind: Makefile distinfo
        pkgsrc/lang/llvm: Makefile PLIST buildlink3.mk distinfo options.mk
        pkgsrc/lang/llvm/patches: patch-include_llvm_Support_Host.h
Removed Files:
        pkgsrc/devel/lldb/patches: patch-scripts_CMakeLists.txt
        pkgsrc/lang/libLLVM/patches: patch-lib_Transforms_CMakeLists.txt
        pkgsrc/lang/libunwind/patches: patch-src_AddressSpace.hpp

Log Message:
Update llvm packages to 3.9.0

* Drop CppBackend. It is removed.

Changelog:
* GCC ABI Tag
* LLVM IR: new intrinsics etc.
* Change LLVM IPO model
* Support ThinLTO
* Improve the ARM targets, ARMv8.2-A support etc.
* Improve the MIPS targets
* Improve the PowerPC target, default optim O3 to O2
* Improve the X86 target, SKylake AVX-512 etc.
* Improve the AMDGPU, better support for Mesa 12


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/lldb/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/lldb/PLIST pkgsrc/devel/lldb/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/devel/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake
cvs rdiff -u -r1.1 -r0 pkgsrc/devel/lldb/patches/patch-scripts_CMakeLists.txt
cvs rdiff -u -r1.14 -r1.15 pkgsrc/lang/clang/Makefile.common
cvs rdiff -u -r1.18 -r1.19 pkgsrc/lang/clang/PLIST
cvs rdiff -u -r1.4 -r1.5 pkgsrc/lang/clang/buildlink3.mk
cvs rdiff -u -r1.42 -r1.43 pkgsrc/lang/clang/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/lang/clang/patches/patch-tools_clang-format_CMakeLists.txt
cvs rdiff -u -r1.12 -r1.13 pkgsrc/lang/libLLVM/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/lang/libLLVM/PLIST
cvs rdiff -u -r1.4 -r1.5 pkgsrc/lang/libLLVM/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/libLLVM/options.mk
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/lang/libLLVM/patches/patch-cmake_modules_CMakeLists.txt \
    pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake \
    pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h \
    pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/lang/libLLVM/patches/patch-lib_Transforms_CMakeLists.txt
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/libunwind/Makefile \
    pkgsrc/lang/libunwind/distinfo
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/lang/libunwind/patches/patch-src_AddressSpace.hpp
cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/llvm/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/llvm/PLIST
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/llvm/buildlink3.mk \
    pkgsrc/lang/llvm/options.mk
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/llvm/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/lang/llvm/patches/patch-include_llvm_Support_Host.h

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

Modified files:

Index: pkgsrc/devel/lldb/Makefile
diff -u pkgsrc/devel/lldb/Makefile:1.3 pkgsrc/devel/lldb/Makefile:1.4
--- pkgsrc/devel/lldb/Makefile:1.3      Wed Jul 27 09:17:41 2016
+++ pkgsrc/devel/lldb/Makefile  Mon Nov 14 20:15:33 2016
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2016/07/27 09:17:41 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2016/11/14 20:15:33 ryoon Exp $
 
-DISTNAME=      lldb-3.8.1.src
+DISTNAME=      lldb-3.9.0.src
 PKGNAME=       ${DISTNAME:S/.src//}
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
@@ -28,6 +28,7 @@ CMAKE_ARGS+=  -DLLVM_CONFIG=${LLVM_CONFIG
 CMAKE_ARGS+=   -DCMAKE_BUILD_TYPE=Release
 CMAKE_ARGS+=   -DCMAKE_C_COMPILER=gcc
 CMAKE_ARGS+=   -DCMAKE_CXX_COMPILER=g++
+CMAKE_ARGS+=   -DHAVE_CXX_ATOMICS64_WITHOUT_LIB=ON
 
 CHECK_PORTABILITY_SKIP=        utils/buildit/build_llvm
 
@@ -138,4 +139,5 @@ DEPENDS+=   clang-${PKGVERSION_NOREV}{,nb*
 .include "../../lang/python/tool.mk"
 .include "../../lang/python/extension.mk"
 .include "../../devel/swig/buildlink3.mk"
+.include "../../devel/libatomic_ops/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/lldb/PLIST
diff -u pkgsrc/devel/lldb/PLIST:1.2 pkgsrc/devel/lldb/PLIST:1.3
--- pkgsrc/devel/lldb/PLIST:1.2 Wed Jul 27 09:17:41 2016
+++ pkgsrc/devel/lldb/PLIST     Mon Nov 14 20:15:33 2016
@@ -1,11 +1,11 @@
-@comment $NetBSD: PLIST,v 1.2 2016/07/27 09:17:41 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2016/11/14 20:15:33 ryoon Exp $
 bin/lldb
-bin/lldb-3.8.1
+bin/${PKGNAME}
 bin/lldb-argdumper
 bin/lldb-mi
-bin/lldb-mi-3.8.1
+bin/lldb-mi-${PKGVERSION}
 bin/lldb-server
-bin/lldb-server-3.8.1
+bin/lldb-server-${PKGVERSION}
 include/lldb/API/LLDB.h
 include/lldb/API/SBAddress.h
 include/lldb/API/SBAttachInfo.h
@@ -36,6 +36,8 @@ include/lldb/API/SBLanguageRuntime.h
 include/lldb/API/SBLaunchInfo.h
 include/lldb/API/SBLineEntry.h
 include/lldb/API/SBListener.h
+include/lldb/API/SBMemoryRegionInfo.h
+include/lldb/API/SBMemoryRegionInfoList.h
 include/lldb/API/SBModule.h
 include/lldb/API/SBModuleSpec.h
 include/lldb/API/SBPlatform.h
@@ -156,6 +158,7 @@ include/lldb/Core/StructuredData.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
@@ -198,6 +201,7 @@ include/lldb/DataFormatters/ValueObjectP
 include/lldb/DataFormatters/VectorIterator.h
 include/lldb/DataFormatters/VectorType.h
 include/lldb/Expression/DWARFExpression.h
+include/lldb/Expression/DiagnosticManager.h
 include/lldb/Expression/Expression.h
 include/lldb/Expression/ExpressionParser.h
 include/lldb/Expression/ExpressionSourceCode.h
@@ -281,7 +285,6 @@ include/lldb/Host/linux/HostInfoLinux.h
 include/lldb/Host/linux/HostThreadLinux.h
 include/lldb/Host/linux/Personality.h
 include/lldb/Host/linux/Ptrace.h
-include/lldb/Host/linux/Signalfd.h
 include/lldb/Host/linux/Uio.h
 include/lldb/Host/macosx/Config.h
 include/lldb/Host/macosx/HostInfoMacOSX.h
@@ -316,6 +319,7 @@ include/lldb/Initialization/SystemInitia
 include/lldb/Initialization/SystemInitializerCommon.h
 include/lldb/Initialization/SystemLifetimeManager.h
 include/lldb/Interpreter/Args.h
+include/lldb/Interpreter/CommandAlias.h
 include/lldb/Interpreter/CommandCompletions.h
 include/lldb/Interpreter/CommandHistory.h
 include/lldb/Interpreter/CommandInterpreter.h
@@ -366,6 +370,7 @@ include/lldb/Symbol/ClangASTContext.h
 include/lldb/Symbol/ClangASTImporter.h
 include/lldb/Symbol/ClangExternalASTSourceCallbacks.h
 include/lldb/Symbol/ClangExternalASTSourceCommon.h
+include/lldb/Symbol/ClangUtil.h
 include/lldb/Symbol/CompactUnwindInfo.h
 include/lldb/Symbol/CompileUnit.h
 include/lldb/Symbol/CompilerDecl.h
@@ -378,6 +383,7 @@ include/lldb/Symbol/Declaration.h
 include/lldb/Symbol/FuncUnwinders.h
 include/lldb/Symbol/Function.h
 include/lldb/Symbol/GoASTContext.h
+include/lldb/Symbol/JavaASTContext.h
 include/lldb/Symbol/LineEntry.h
 include/lldb/Symbol/LineTable.h
 include/lldb/Symbol/ObjectContainer.h
@@ -486,6 +492,7 @@ include/lldb/Utility/regutils.h
 include/lldb/lldb-defines.h
 include/lldb/lldb-enumerations.h
 include/lldb/lldb-forward.h
+include/lldb/lldb-private-defines.h
 include/lldb/lldb-private-enumerations.h
 include/lldb/lldb-private-forward.h
 include/lldb/lldb-private-interfaces.h
@@ -495,7 +502,7 @@ include/lldb/lldb-public.h
 include/lldb/lldb-types.h
 include/lldb/lldb-versioning.h
 lib/liblldb.so
-lib/liblldb.so.3.8.1
+lib/liblldb.so.${PKGVERSION}
 lib/liblldbBase.a
 lib/liblldbBreakpoint.a
 lib/liblldbCommands.a
@@ -516,6 +523,7 @@ lib/liblldbPluginABISysV_mips.a
 lib/liblldbPluginABISysV_mips64.a
 lib/liblldbPluginABISysV_ppc.a
 lib/liblldbPluginABISysV_ppc64.a
+lib/liblldbPluginABISysV_s390x.a
 lib/liblldbPluginABISysV_x86_64.a
 lib/liblldbPluginAppleObjCRuntime.a
 lib/liblldbPluginCPlusPlusLanguage.a
@@ -534,8 +542,11 @@ lib/liblldbPluginInstructionARM64.a
 lib/liblldbPluginInstructionMIPS.a
 lib/liblldbPluginInstructionMIPS64.a
 lib/liblldbPluginInstrumentationRuntimeAddressSanitizer.a
+lib/liblldbPluginInstrumentationRuntimeThreadSanitizer.a
 lib/liblldbPluginJITLoaderGDB.a
+lib/liblldbPluginJavaLanguage.a
 lib/liblldbPluginLanguageRuntimeGo.a
+lib/liblldbPluginLanguageRuntimeJava.a
 lib/liblldbPluginMemoryHistoryASan.a
 lib/liblldbPluginOSGo.a
 lib/liblldbPluginOSPython.a
@@ -565,6 +576,7 @@ lib/liblldbPluginRenderScriptRuntime.a
 lib/liblldbPluginScriptInterpreterNone.a
 lib/liblldbPluginScriptInterpreterPython.a
 lib/liblldbPluginSymbolFileDWARF.a
+lib/liblldbPluginSymbolFilePDB.a
 lib/liblldbPluginSymbolFileSymtab.a
 lib/liblldbPluginSymbolVendorELF.a
 lib/liblldbPluginSystemRuntimeMacOSX.a
Index: pkgsrc/devel/lldb/distinfo
diff -u pkgsrc/devel/lldb/distinfo:1.2 pkgsrc/devel/lldb/distinfo:1.3
--- pkgsrc/devel/lldb/distinfo:1.2      Wed Jul 27 09:17:41 2016
+++ pkgsrc/devel/lldb/distinfo  Mon Nov 14 20:15:33 2016
@@ -1,17 +1,16 @@
-$NetBSD: distinfo,v 1.2 2016/07/27 09:17:41 wiz Exp $
+$NetBSD: distinfo,v 1.3 2016/11/14 20:15:33 ryoon Exp $
 
-SHA1 (lldb-3.8.1.src.tar.xz) = 20ecd2d20d95b25ed84fd707f3851bb567d750cb
-RMD160 (lldb-3.8.1.src.tar.xz) = e080bb734bcba419472acc0619fc7affb6209104
-SHA512 (lldb-3.8.1.src.tar.xz) = d73c55daed6ef5e5ca784c7010f2d75be26024b14fa61a2861a8a6cbe129e417fb7be2a3b532e17e9d7de98ae38ce6a689d8166049eff365fb04f4bd772758f3
-Size (lldb-3.8.1.src.tar.xz) = 10928220 bytes
-SHA1 (patch-cmake_modules_LLDBStandalone.cmake) = 1b8d85d5aa4ac35d4b303a1dc7754ce63cf96cb0
+SHA1 (lldb-3.9.0.src.tar.xz) = 413549d22671c189f1548155813b4382de5c6b95
+RMD160 (lldb-3.9.0.src.tar.xz) = dbcbe796ea46fc0081e6d5519b4a96c6c32e0fc5
+SHA512 (lldb-3.9.0.src.tar.xz) = b2d7f36b4462dba8e478022da19981e2d029bc4728efeed50600f0d03e3dd4573e7fb3cee773ec19b11ad3d8ba53b1aef9de1b21612e77d2888d0f6de433b24a
+Size (lldb-3.9.0.src.tar.xz) = 13754516 bytes
+SHA1 (patch-cmake_modules_LLDBStandalone.cmake) = 8f7d06a4b3a1e996af9af4affd650291c4f01fe5
 SHA1 (patch-include_lldb_Utility_regcclass.h) = 9ed649e8deb5924feaf82a6e675f5c596367b3d6
 SHA1 (patch-include_lldb_Utility_regcname.h) = b67145f0437d3c09adc33a925d49267cd9ba4fd7
 SHA1 (patch-include_lldb_Utility_regengine.inc) = a031c43a63acab80a97cfb7727326d610d4ad9ab
 SHA1 (patch-include_lldb_Utility_regex2.h) = 822a47b1221368ec5442bfbdbc20fe4e370c1a6b
 SHA1 (patch-include_lldb_Utility_regex__impl.h) = 4d99669a756bd662ae28abc8cefe6e1538ef84b6
 SHA1 (patch-include_lldb_Utility_regutils.h) = ea36409f8cd05dcf9b81144cbc136abc5fc3a190
-SHA1 (patch-scripts_CMakeLists.txt) = 07043853b1a923aa8fcb9124b79453eca21c01fb
 SHA1 (patch-scripts_Python_finishSwigPythonLLDB.py) = fc0723771d886f0f174f25d91dac85376376af79
 SHA1 (patch-scripts_Python_modules_readline_readline.cpp) = 4a030226c47cf7d54ebc727e92e278c163e48bf5
 SHA1 (patch-source_Utility_CMakeLists.txt) = 5b10fe94d76135d8d5ba31862066841394dd45c1

Index: pkgsrc/devel/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake
diff -u pkgsrc/devel/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake:1.1 pkgsrc/devel/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake:1.2
--- pkgsrc/devel/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake:1.1      Mon Mar 28 13:13:55 2016
+++ pkgsrc/devel/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake  Mon Nov 14 20:15:33 2016
@@ -1,152 +1,12 @@
-$NetBSD: patch-cmake_modules_LLDBStandalone.cmake,v 1.1 2016/03/28 13:13:55 kamil Exp $
+$NetBSD: patch-cmake_modules_LLDBStandalone.cmake,v 1.2 2016/11/14 20:15:33 ryoon Exp $
 
---- cmake/modules/LLDBStandalone.cmake.orig    2015-11-10 18:09:14.000000000 +0000
+--- cmake/modules/LLDBStandalone.cmake.orig    2016-07-15 22:46:15.000000000 +0000
 +++ cmake/modules/LLDBStandalone.cmake
-@@ -6,57 +6,78 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
- 
-   option(LLVM_INSTALL_TOOLCHAIN_ONLY "Only include toolchain files in the 'install' target." OFF)
- 
--  set(LLDB_PATH_TO_LLVM_SOURCE "" CACHE PATH
--    "Path to LLVM source code. Not necessary if using an installed LLVM.")
--  set(LLDB_PATH_TO_LLVM_BUILD "" CACHE PATH
--    "Path to the directory where LLVM was built or installed.")
--
--  set(LLDB_PATH_TO_CLANG_SOURCE "" CACHE PATH
--    "Path to Clang source code. Not necessary if using an installed Clang.")
--  set(LLDB_PATH_TO_CLANG_BUILD "" CACHE PATH
--    "Path to the directory where Clang was built or installed.")
--
--  if (LLDB_PATH_TO_LLVM_SOURCE)
--    if (NOT EXISTS "${LLDB_PATH_TO_LLVM_SOURCE}/cmake/config-ix.cmake")
--      message(FATAL_ERROR "Please set LLDB_PATH_TO_LLVM_SOURCE to the root "
--              "directory of LLVM source code.")
-+  # 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
-+    )
-+    if(NOT HAD_ERROR)
-+      string(REGEX REPLACE
-+        "[ \t]*[\r\n]+[ \t]*" ";"
-+        CONFIG_OUTPUT ${CONFIG_OUTPUT})
-+
-     else()
--      get_filename_component(LLVM_MAIN_SRC_DIR ${LLDB_PATH_TO_LLVM_SOURCE}
--                             ABSOLUTE)
--      set(LLVM_MAIN_INCLUDE_DIR "${LLVM_MAIN_SRC_DIR}/include")
--      list(APPEND CMAKE_MODULE_PATH "${LLVM_MAIN_SRC_DIR}/cmake/modules")
-+      string(REPLACE ";" " " CONFIG_COMMAND_STR "${CONFIG_COMMAND}")
-+      message(STATUS "${CONFIG_COMMAND_STR}")
-+      message(FATAL_ERROR "llvm-config failed with status ${HAD_ERROR}")
-     endif()
--  endif()
--
--  if (LLDB_PATH_TO_CLANG_SOURCE)
--      get_filename_component(CLANG_MAIN_SRC_DIR ${LLDB_PATH_TO_CLANG_SOURCE}
--                             ABSOLUTE)
--      set(CLANG_MAIN_INCLUDE_DIR "${CLANG_MAIN_SRC_DIR}/include")
--  endif()
--
--  list(APPEND CMAKE_MODULE_PATH "${LLDB_PATH_TO_LLVM_BUILD}/share/llvm/cmake")
--
--  if (LLDB_PATH_TO_LLVM_BUILD)
--    get_filename_component(PATH_TO_LLVM_BUILD ${LLDB_PATH_TO_LLVM_BUILD}
--                           ABSOLUTE)
-   else()
--    message(FATAL_ERROR "Please set LLDB_PATH_TO_LLVM_BUILD to the root "
--            "directory of LLVM build or install site.")
-+    message(FATAL_ERROR "llvm-config not found -- ${LLVM_CONFIG}")
-   endif()
- 
--  if (LLDB_PATH_TO_CLANG_BUILD)
--    get_filename_component(PATH_TO_CLANG_BUILD ${LLDB_PATH_TO_CLANG_BUILD}
--                           ABSOLUTE)
-+  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_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}/share/llvm/cmake") # this will change in 3.9.0
-+  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 "Please set LLDB_PATH_TO_CLANG_BUILD to the root "
--            "directory of Clang build or install site.")
-+    message(FATAL_ERROR "Not found: ${LLVMCONFIG_FILE}")
-   endif()
- 
--
--  # These variables are used by add_llvm_library.
-+  # 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})
--  set(LLVM_LIBRARY_DIR ${LLVM_LIBRARY_OUTPUT_INTDIR})
-+  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()
+@@ -86,7 +86,6 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
  
    include(AddLLVM)
    include(HandleLLVMOptions)
-@@ -73,23 +94,16 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
-     message("-- Found PythonInterp: ${PYTHON_EXECUTABLE}")
-   endif()
-   # Import CMake library targets from LLVM and Clang.
--  include("${LLDB_PATH_TO_LLVM_BUILD}/share/llvm/cmake/LLVMConfig.cmake")
--  if (EXISTS "${LLDB_PATH_TO_CLANG_BUILD}/share/clang/cmake/ClangConfig.cmake")
--      include("${LLDB_PATH_TO_CLANG_BUILD}/share/clang/cmake/ClangConfig.cmake")
--  endif()
-+  include("${LLVM_OBJ_ROOT}/share/llvm/cmake/LLVMConfig.cmake") # this will change in 3.9.0
-+  include("${LLVM_OBJ_ROOT}/share/clang/cmake/ClangConfig.cmake") # this will change in 3.9.0
- 
-   set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
- 
-   set(LLVM_BINARY_DIR ${CMAKE_BINARY_DIR})
- 
-   set(CMAKE_INCLUDE_CURRENT_DIR ON)
--  include_directories("${PATH_TO_LLVM_BUILD}/include"
--                      "${LLVM_MAIN_INCLUDE_DIR}"
--                      "${PATH_TO_CLANG_BUILD}/include"
--                      "${CLANG_MAIN_INCLUDE_DIR}"
--                      "${CMAKE_CURRENT_SOURCE_DIR}/source")
--  link_directories("${PATH_TO_LLVM_BUILD}/lib${LLVM_LIBDIR_SUFFIX}"
--                   "${PATH_TO_CLANG_BUILD}/lib${LLVM_LIBDIR_SUFFIX}")
-+  include_directories("${LLVM_BINARY_DIR}/include" "${LLVM_MAIN_INCLUDE_DIR}")
-+  link_directories("${LLVM_LIBRARY_DIR}")
+-  include(CheckAtomic)
  
-   set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
-   set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
+   if (PYTHON_EXECUTABLE STREQUAL "")
+     set(Python_ADDITIONAL_VERSIONS 3.5 3.4 3.3 3.2 3.1 3.0 2.7 2.6 2.5)

Index: pkgsrc/lang/clang/Makefile.common
diff -u pkgsrc/lang/clang/Makefile.common:1.14 pkgsrc/lang/clang/Makefile.common:1.15
--- pkgsrc/lang/clang/Makefile.common:1.14      Tue Jul 26 12:43:51 2016
+++ pkgsrc/lang/clang/Makefile.common   Mon Nov 14 20:15:33 2016
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile.common,v 1.14 2016/07/26 12:43:51 wiz Exp $
+# $NetBSD: Makefile.common,v 1.15 2016/11/14 20:15:33 ryoon Exp $
 # used by lang/clang/Makefile
 # used by lang/clang-static-analyzer/Makefile
 
-DISTNAME=      cfe-3.8.1.src
+DISTNAME=      cfe-3.9.0.src
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
 EXTRACT_SUFX=  .tar.xz

Index: pkgsrc/lang/clang/PLIST
diff -u pkgsrc/lang/clang/PLIST:1.18 pkgsrc/lang/clang/PLIST:1.19
--- pkgsrc/lang/clang/PLIST:1.18        Thu Mar 10 15:01:52 2016
+++ pkgsrc/lang/clang/PLIST     Mon Nov 14 20:15:33 2016
@@ -1,8 +1,8 @@
-@comment $NetBSD: PLIST,v 1.18 2016/03/10 15:01:52 tnn Exp $
+@comment $NetBSD: PLIST,v 1.19 2016/11/14 20:15:33 ryoon Exp $
 bin/c-index-test
 bin/clang
 bin/clang++
-bin/clang-${LLVM_MAJOR}
+bin/clang-3.9
 bin/clang-cl
 bin/clang-cpp
 bin/clang-format
@@ -34,6 +34,7 @@ include/clang/AST/AttrImpl.inc
 include/clang/AST/AttrIterator.h
 include/clang/AST/AttrVisitor.inc
 include/clang/AST/Attrs.inc
+include/clang/AST/Availability.h
 include/clang/AST/BaseSubobject.h
 include/clang/AST/BuiltinTypes.def
 include/clang/AST/CXXInheritance.h
@@ -76,11 +77,13 @@ include/clang/AST/ExprOpenMP.h
 include/clang/AST/ExternalASTSource.h
 include/clang/AST/GlobalDecl.h
 include/clang/AST/LambdaCapture.h
+include/clang/AST/LocInfoType.h
 include/clang/AST/Mangle.h
 include/clang/AST/MangleNumberingContext.h
 include/clang/AST/NSAPI.h
 include/clang/AST/NestedNameSpecifier.h
 include/clang/AST/OpenMPClause.h
+include/clang/AST/OperationKinds.def
 include/clang/AST/OperationKinds.h
 include/clang/AST/ParentMap.h
 include/clang/AST/PrettyPrinter.h
@@ -169,6 +172,8 @@ include/clang/Basic/BuiltinsXCore.def
 include/clang/Basic/CapturedStmt.h
 include/clang/Basic/CharInfo.h
 include/clang/Basic/CommentOptions.h
+include/clang/Basic/Cuda.h
+include/clang/Basic/DebugInfoOptions.h
 include/clang/Basic/Diagnostic.h
 include/clang/Basic/DiagnosticASTKinds.inc
 include/clang/Basic/DiagnosticAnalysisKinds.inc
@@ -201,6 +206,8 @@ include/clang/Basic/MacroBuilder.h
 include/clang/Basic/Module.h
 include/clang/Basic/ObjCRuntime.h
 include/clang/Basic/OpenCLExtensions.def
+include/clang/Basic/OpenCLImageTypes.def
+include/clang/Basic/OpenCLOptions.h
 include/clang/Basic/OpenMPKinds.def
 include/clang/Basic/OpenMPKinds.h
 include/clang/Basic/OperatorKinds.def
@@ -208,6 +215,7 @@ include/clang/Basic/OperatorKinds.h
 include/clang/Basic/OperatorPrecedence.h
 include/clang/Basic/PartialDiagnostic.h
 include/clang/Basic/PlistSupport.h
+include/clang/Basic/PragmaKinds.h
 include/clang/Basic/PrettyStackTrace.h
 include/clang/Basic/SanitizerBlacklist.h
 include/clang/Basic/Sanitizers.def
@@ -236,6 +244,7 @@ include/clang/CodeGen/CodeGenABITypes.h
 include/clang/CodeGen/CodeGenAction.h
 include/clang/CodeGen/ModuleBuilder.h
 include/clang/CodeGen/ObjectFilePCHContainerOperations.h
+include/clang/CodeGen/SwiftCallingConv.h
 include/clang/Config/config.h
 include/clang/Driver/Action.h
 include/clang/Driver/Compilation.h
@@ -290,12 +299,17 @@ include/clang/Frontend/TextDiagnosticPri
 include/clang/Frontend/Utils.h
 include/clang/Frontend/VerifyDiagnosticConsumer.h
 include/clang/FrontendTool/Utils.h
+include/clang/Index/CodegenNameGenerator.h
 include/clang/Index/CommentToXML.h
+include/clang/Index/IndexDataConsumer.h
+include/clang/Index/IndexSymbol.h
+include/clang/Index/IndexingAction.h
 include/clang/Index/USRGeneration.h
 include/clang/Lex/CodeCompletionHandler.h
 include/clang/Lex/DirectoryLookup.h
 include/clang/Lex/ExternalPreprocessorSource.h
 include/clang/Lex/HeaderMap.h
+include/clang/Lex/HeaderMapTypes.h
 include/clang/Lex/HeaderSearch.h
 include/clang/Lex/HeaderSearchOptions.h
 include/clang/Lex/LexDiagnostic.h
@@ -341,6 +355,7 @@ include/clang/Sema/AttrSpellingListIndex
 include/clang/Sema/AttrTemplateInstantiate.inc
 include/clang/Sema/AttributeList.h
 include/clang/Sema/CXXFieldCollector.h
+include/clang/Sema/CleanupInfo.h
 include/clang/Sema/CodeCompleteConsumer.h
 include/clang/Sema/CodeCompleteOptions.h
 include/clang/Sema/DeclSpec.h
@@ -349,7 +364,6 @@ include/clang/Sema/Designator.h
 include/clang/Sema/ExternalSemaSource.h
 include/clang/Sema/IdentifierResolver.h
 include/clang/Sema/Initialization.h
-include/clang/Sema/LocInfoType.h
 include/clang/Sema/Lookup.h
 include/clang/Sema/LoopHint.h
 include/clang/Sema/MultiplexExternalSemaSource.h
@@ -382,9 +396,11 @@ include/clang/Serialization/Module.h
 include/clang/Serialization/ModuleFileExtension.h
 include/clang/Serialization/ModuleManager.h
 include/clang/Serialization/SerializationDiagnostic.h
+include/clang/StaticAnalyzer/Checkers/Checkers.inc
 include/clang/StaticAnalyzer/Checkers/ClangCheckers.h
 include/clang/StaticAnalyzer/Checkers/LocalCheckers.h
 include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h
+include/clang/StaticAnalyzer/Checkers/SValExplainer.h
 include/clang/StaticAnalyzer/Core/Analyses.def
 include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
 include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
@@ -418,13 +434,18 @@ include/clang/StaticAnalyzer/Core/PathSe
 include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
 include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h
 include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState_Fwd.h
+include/clang/StaticAnalyzer/Core/PathSensitive/Regions.def
 include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h
+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/Store.h
 include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h
 include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h
 include/clang/StaticAnalyzer/Core/PathSensitive/SummaryManager.h
+include/clang/StaticAnalyzer/Core/PathSensitive/SymExpr.h
 include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h
+include/clang/StaticAnalyzer/Core/PathSensitive/Symbols.def
 include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h
 include/clang/StaticAnalyzer/Core/PathSensitive/TaintTag.h
 include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h
@@ -437,14 +458,18 @@ include/clang/Tooling/CommonOptionsParse
 include/clang/Tooling/CompilationDatabase.h
 include/clang/Tooling/CompilationDatabasePluginRegistry.h
 include/clang/Tooling/Core/Lookup.h
+include/clang/Tooling/Core/QualTypeNames.h
 include/clang/Tooling/Core/Replacement.h
 include/clang/Tooling/FileMatchTrie.h
+include/clang/Tooling/FixIt.h
 include/clang/Tooling/JSONCompilationDatabase.h
 include/clang/Tooling/Refactoring.h
 include/clang/Tooling/RefactoringCallbacks.h
 include/clang/Tooling/ReplacementsYaml.h
 include/clang/Tooling/Tooling.h
-lib/clang/${PKGVERSION}/include/Intrin.h
+lib/clang/${PKGVERSION}/include/__clang_cuda_cmath.h
+lib/clang/${PKGVERSION}/include/__clang_cuda_intrinsics.h
+lib/clang/${PKGVERSION}/include/__clang_cuda_math_forward_declares.h
 lib/clang/${PKGVERSION}/include/__clang_cuda_runtime_wrapper.h
 lib/clang/${PKGVERSION}/include/__stddef_max_align_t.h
 lib/clang/${PKGVERSION}/include/__wmmintrin_aes.h
@@ -460,12 +485,19 @@ lib/clang/${PKGVERSION}/include/avx512cd
 lib/clang/${PKGVERSION}/include/avx512dqintrin.h
 lib/clang/${PKGVERSION}/include/avx512erintrin.h
 lib/clang/${PKGVERSION}/include/avx512fintrin.h
+lib/clang/${PKGVERSION}/include/avx512ifmaintrin.h
+lib/clang/${PKGVERSION}/include/avx512ifmavlintrin.h
+lib/clang/${PKGVERSION}/include/avx512pfintrin.h
+lib/clang/${PKGVERSION}/include/avx512vbmiintrin.h
+lib/clang/${PKGVERSION}/include/avx512vbmivlintrin.h
 lib/clang/${PKGVERSION}/include/avx512vlbwintrin.h
+lib/clang/${PKGVERSION}/include/avx512vlcdintrin.h
 lib/clang/${PKGVERSION}/include/avx512vldqintrin.h
 lib/clang/${PKGVERSION}/include/avx512vlintrin.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/cpuid.h
 lib/clang/${PKGVERSION}/include/cuda_builtin_vars.h
 lib/clang/${PKGVERSION}/include/emmintrin.h
@@ -478,6 +510,7 @@ lib/clang/${PKGVERSION}/include/htmintri
 lib/clang/${PKGVERSION}/include/htmxlintrin.h
 lib/clang/${PKGVERSION}/include/ia32intrin.h
 lib/clang/${PKGVERSION}/include/immintrin.h
+lib/clang/${PKGVERSION}/include/intrin.h
 lib/clang/${PKGVERSION}/include/inttypes.h
 lib/clang/${PKGVERSION}/include/iso646.h
 lib/clang/${PKGVERSION}/include/limits.h
@@ -486,7 +519,9 @@ lib/clang/${PKGVERSION}/include/mm3dnow.
 lib/clang/${PKGVERSION}/include/mm_malloc.h
 lib/clang/${PKGVERSION}/include/mmintrin.h
 lib/clang/${PKGVERSION}/include/module.modulemap
+lib/clang/${PKGVERSION}/include/mwaitxintrin.h
 lib/clang/${PKGVERSION}/include/nmmintrin.h
+lib/clang/${PKGVERSION}/include/opencl-c.h
 lib/clang/${PKGVERSION}/include/pkuintrin.h
 lib/clang/${PKGVERSION}/include/pmmintrin.h
 lib/clang/${PKGVERSION}/include/popcntintrin.h
@@ -519,6 +554,9 @@ lib/clang/${PKGVERSION}/include/xsaveint
 lib/clang/${PKGVERSION}/include/xsaveoptintrin.h
 lib/clang/${PKGVERSION}/include/xsavesintrin.h
 lib/clang/${PKGVERSION}/include/xtestintrin.h
+lib/cmake/clang/ClangConfig.cmake
+lib/cmake/clang/ClangTargets-release.cmake
+lib/cmake/clang/ClangTargets.cmake
 lib/libclang.${SOEXT}
 ${PLIST.notdylib}lib/libclang.${SOEXT}.${LLVM_MAJOR}
 lib/libclangAST.a
@@ -546,7 +584,4 @@ share/clang/clang-format-diff.py
 share/clang/clang-format-sublime.py
 share/clang/clang-format.el
 share/clang/clang-format.py
-share/clang/cmake/ClangConfig.cmake
-share/clang/cmake/ClangTargets-release.cmake
-share/clang/cmake/ClangTargets.cmake
 share/clang/git-clang-format

Index: pkgsrc/lang/clang/buildlink3.mk
diff -u pkgsrc/lang/clang/buildlink3.mk:1.4 pkgsrc/lang/clang/buildlink3.mk:1.5
--- pkgsrc/lang/clang/buildlink3.mk:1.4 Thu Mar 10 15:01:52 2016
+++ pkgsrc/lang/clang/buildlink3.mk     Mon Nov 14 20:15:33 2016
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.4 2016/03/10 15:01:52 tnn Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2016/11/14 20:15:33 ryoon Exp $
 
 BUILDLINK_TREE+=       clang
 
 .if !defined(CLANG_BUILDLINK3_MK)
 CLANG_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.clang+=  clang>=3.8.0
+BUILDLINK_API_DEPENDS.clang+=  clang>=3.9.0
 BUILDLINK_PKGSRCDIR.clang?=    ../../lang/clang
 
 .include "../../textproc/libxml2/buildlink3.mk"

Index: pkgsrc/lang/clang/distinfo
diff -u pkgsrc/lang/clang/distinfo:1.42 pkgsrc/lang/clang/distinfo:1.43
--- pkgsrc/lang/clang/distinfo:1.42     Tue Jul 26 12:43:51 2016
+++ pkgsrc/lang/clang/distinfo  Mon Nov 14 20:15:33 2016
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.42 2016/07/26 12:43:51 wiz Exp $
+$NetBSD: distinfo,v 1.43 2016/11/14 20:15:33 ryoon Exp $
 
-SHA1 (cfe-3.8.1.src.tar.xz) = b5ff24dc6ad8f84654f4859389990bace1cfb6d5
-RMD160 (cfe-3.8.1.src.tar.xz) = a280504a3ba3aa59274120305f68fc8f8b3aca9c
-SHA512 (cfe-3.8.1.src.tar.xz) = 72d23a410271b50f97371b13dd7a6c6c5c0a993e35df436ab716ece8521d83406aa3d4bf8fdecd8154139f39fd5e011e480d405225d8c3ff152d0a2ac4573e04
-Size (cfe-3.8.1.src.tar.xz) = 9605548 bytes
-SHA1 (patch-tools_clang-format_CMakeLists.txt) = a1052c71728467625a40234719580cb34688a568
+SHA1 (cfe-3.9.0.src.tar.xz) = 00d49ee82451130a8e1e7b1d56cffa37b783bcb2
+RMD160 (cfe-3.9.0.src.tar.xz) = a33d18142ce0fd69db59a96b75ffcfd20cef2f2c
+SHA512 (cfe-3.9.0.src.tar.xz) = f405b5819fd19276b2de4da80a51171a3b1c5c00df810e1f284184c693e410775fe2933576f942b881664dd3b75e78f0f15b7e5a3eca7819ffbcfe528d9a578e
+Size (cfe-3.9.0.src.tar.xz) = 10390440 bytes
+SHA1 (patch-tools_clang-format_CMakeLists.txt) = 4efc9c9f69caf7df1dd0db384eae644c606c5ca9

Index: pkgsrc/lang/clang/patches/patch-tools_clang-format_CMakeLists.txt
diff -u pkgsrc/lang/clang/patches/patch-tools_clang-format_CMakeLists.txt:1.1 pkgsrc/lang/clang/patches/patch-tools_clang-format_CMakeLists.txt:1.2
--- pkgsrc/lang/clang/patches/patch-tools_clang-format_CMakeLists.txt:1.1       Thu Mar 10 15:01:52 2016
+++ pkgsrc/lang/clang/patches/patch-tools_clang-format_CMakeLists.txt   Mon Nov 14 20:15:33 2016
@@ -1,15 +1,16 @@
-$NetBSD: patch-tools_clang-format_CMakeLists.txt,v 1.1 2016/03/10 15:01:52 tnn Exp $
+$NetBSD: patch-tools_clang-format_CMakeLists.txt,v 1.2 2016/11/14 20:15:33 ryoon Exp $
 
 git-clang-format is a git integration for clang-format,
 written in python. It could be moved to a separate package
 to avoid a python runtime dependency here, but for now I just opted
 to move it to share/clang and skip the interpreter check.
 
---- tools/clang-format/CMakeLists.txt.orig     2016-02-21 01:22:56.000000000 +0000
+--- tools/clang-format/CMakeLists.txt.orig     2016-02-23 20:33:15.000000000 +0000
 +++ tools/clang-format/CMakeLists.txt
-@@ -25,4 +25,4 @@ install(PROGRAMS clang-format-diff.py DE
- install(PROGRAMS clang-format-sublime.py DESTINATION share/clang)
- install(PROGRAMS clang-format.el DESTINATION share/clang)
- install(PROGRAMS clang-format.py DESTINATION share/clang)
--install(PROGRAMS git-clang-format DESTINATION bin)
-+install(PROGRAMS git-clang-format DESTINATION share/clang)
+@@ -35,5 +35,5 @@ install(PROGRAMS clang-format.py
+   DESTINATION share/clang
+   COMPONENT clang-format)
+ install(PROGRAMS git-clang-format
+-  DESTINATION bin
++  DESTINATION share/clang
+   COMPONENT clang-format)

Index: pkgsrc/lang/libLLVM/Makefile
diff -u pkgsrc/lang/libLLVM/Makefile:1.12 pkgsrc/lang/libLLVM/Makefile:1.13
--- pkgsrc/lang/libLLVM/Makefile:1.12   Tue Aug  2 22:39:21 2016
+++ pkgsrc/lang/libLLVM/Makefile        Mon Nov 14 20:15:33 2016
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.12 2016/08/02 22:39:21 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2016/11/14 20:15:33 ryoon Exp $
 
-DISTNAME=      llvm-3.8.1.src
+DISTNAME=      llvm-3.9.0.src
 PKGNAME=       ${DISTNAME:S/llvm/libLLVM/:S/.src//}
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
@@ -23,6 +23,7 @@ CMAKE_ARGS+=  -DCMAKE_BUILD_TYPE=Release
 CMAKE_ARGS+=   -DCMAKE_C_COMPILER=gcc
 CMAKE_ARGS+=   -DCMAKE_CXX_COMPILER=g++
 CMAKE_ARGS+=   -DLLVM_BUILD_LLVM_DYLIB=ON
+CMAKE_ARGS+=   -DLLVM_INCLUDE_TESTS=OFF
 
 .for tool in   bugpoint bugpoint_passes dsymutil llc lli llvm_ar       \
        llvm_as llvm_bcanalyzer llvm_c_test llvm_cov llvm_cxxdump       \
@@ -30,7 +31,7 @@ CMAKE_ARGS+=  -DLLVM_BUILD_LLVM_DYLIB=ON
        llvm_jitlistener llvm_link llvm_lto llvm_mc llvm_mcmarkup       \
        llvm_nm llvm_objdump llvm_pdbdump llvm_profdata llvm_readobj    \
        llvm_rtdyld llvm_size llvm_split llvm_stress llvm_symbolizer    \
-       lto obj2yaml opt sancov verify_uselistorder yaml2obj
+       lto obj2yaml opt sancov verify_uselistorder yaml2obj sanstats
 CMAKE_ARGS+=   -DLLVM_TOOL_${tool:tu}_BUILD=OFF
 .endfor
 
@@ -110,7 +111,7 @@ PLIST_SUBST+=       LLVM_LIBNAME=${LLVM_LIBNAM
 post-extract:
        ${RUN} mkdir -p ${WRKDIR}/build
 .for f in config.guess config.sub
-       cp ../../mk/gnu-config/${f} ${WRKSRC}/autoconf/${f}
+       cp ../../mk/gnu-config/${f} ${WRKSRC}/cmake/${f}
 .endfor
 
 post-install:

Index: pkgsrc/lang/libLLVM/PLIST
diff -u pkgsrc/lang/libLLVM/PLIST:1.7 pkgsrc/lang/libLLVM/PLIST:1.8
--- pkgsrc/lang/libLLVM/PLIST:1.7       Thu Mar 17 02:53:59 2016
+++ pkgsrc/lang/libLLVM/PLIST   Mon Nov 14 20:15:33 2016
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2016/03/17 02:53:59 tnn Exp $
+@comment $NetBSD: PLIST,v 1.8 2016/11/14 20:15:33 ryoon Exp $
 include/libLLVM/llvm-c/Analysis.h
 include/libLLVM/llvm-c/BitReader.h
 include/libLLVM/llvm-c/BitWriter.h
@@ -26,6 +26,7 @@ include/libLLVM/llvm/ADT/APInt.h
 include/libLLVM/llvm/ADT/APSInt.h
 include/libLLVM/llvm/ADT/ArrayRef.h
 include/libLLVM/llvm/ADT/BitVector.h
+include/libLLVM/llvm/ADT/BitmaskEnum.h
 include/libLLVM/llvm/ADT/DAGDeltaAlgorithm.h
 include/libLLVM/llvm/ADT/DeltaAlgorithm.h
 include/libLLVM/llvm/ADT/DenseMap.h
@@ -54,9 +55,11 @@ include/libLLVM/llvm/ADT/PointerSumType.
 include/libLLVM/llvm/ADT/PointerUnion.h
 include/libLLVM/llvm/ADT/PostOrderIterator.h
 include/libLLVM/llvm/ADT/PriorityQueue.h
+include/libLLVM/llvm/ADT/PriorityWorklist.h
 include/libLLVM/llvm/ADT/SCCIterator.h
 include/libLLVM/llvm/ADT/STLExtras.h
 include/libLLVM/llvm/ADT/ScopedHashTable.h
+include/libLLVM/llvm/ADT/Sequence.h
 include/libLLVM/llvm/ADT/SetOperations.h
 include/libLLVM/llvm/ADT/SetVector.h
 include/libLLVM/llvm/ADT/SmallBitVector.h
@@ -84,6 +87,7 @@ include/libLLVM/llvm/ADT/ilist_node.h
 include/libLLVM/llvm/ADT/iterator.h
 include/libLLVM/llvm/ADT/iterator_range.h
 include/libLLVM/llvm/Analysis/AliasAnalysis.h
+include/libLLVM/llvm/Analysis/AliasAnalysisEvaluator.h
 include/libLLVM/llvm/Analysis/AliasSetTracker.h
 include/libLLVM/llvm/Analysis/AssumptionCache.h
 include/libLLVM/llvm/Analysis/BasicAliasAnalysis.h
@@ -92,7 +96,8 @@ 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/CFLAliasAnalysis.h
+include/libLLVM/llvm/Analysis/CFLAndersAliasAnalysis.h
+include/libLLVM/llvm/Analysis/CFLSteensAliasAnalysis.h
 include/libLLVM/llvm/Analysis/CGSCCPassManager.h
 include/libLLVM/llvm/Analysis/CallGraph.h
 include/libLLVM/llvm/Analysis/CallGraphSCCPass.h
@@ -110,12 +115,15 @@ include/libLLVM/llvm/Analysis/DominanceF
 include/libLLVM/llvm/Analysis/EHPersonalities.h
 include/libLLVM/llvm/Analysis/GlobalsModRef.h
 include/libLLVM/llvm/Analysis/IVUsers.h
+include/libLLVM/llvm/Analysis/IndirectCallPromotionAnalysis.h
+include/libLLVM/llvm/Analysis/IndirectCallSiteVisitor.h
 include/libLLVM/llvm/Analysis/InlineCost.h
 include/libLLVM/llvm/Analysis/InstructionSimplify.h
 include/libLLVM/llvm/Analysis/Interval.h
 include/libLLVM/llvm/Analysis/IntervalIterator.h
 include/libLLVM/llvm/Analysis/IntervalPartition.h
 include/libLLVM/llvm/Analysis/IteratedDominanceFrontier.h
+include/libLLVM/llvm/Analysis/LazyBlockFrequencyInfo.h
 include/libLLVM/llvm/Analysis/LazyCallGraph.h
 include/libLLVM/llvm/Analysis/LazyValueInfo.h
 include/libLLVM/llvm/Analysis/Lint.h
@@ -125,16 +133,21 @@ include/libLLVM/llvm/Analysis/LoopInfo.h
 include/libLLVM/llvm/Analysis/LoopInfoImpl.h
 include/libLLVM/llvm/Analysis/LoopIterator.h
 include/libLLVM/llvm/Analysis/LoopPass.h
+include/libLLVM/llvm/Analysis/LoopPassManager.h
+include/libLLVM/llvm/Analysis/LoopUnrollAnalyzer.h
 include/libLLVM/llvm/Analysis/MemoryBuiltins.h
 include/libLLVM/llvm/Analysis/MemoryDependenceAnalysis.h
 include/libLLVM/llvm/Analysis/MemoryLocation.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/OptimizationDiagnosticInfo.h
 include/libLLVM/llvm/Analysis/OrderedBasicBlock.h
 include/libLLVM/llvm/Analysis/PHITransAddr.h
 include/libLLVM/llvm/Analysis/Passes.h
 include/libLLVM/llvm/Analysis/PostDominators.h
+include/libLLVM/llvm/Analysis/ProfileSummaryInfo.h
 include/libLLVM/llvm/Analysis/PtrUseVisitor.h
 include/libLLVM/llvm/Analysis/RegionInfo.h
 include/libLLVM/llvm/Analysis/RegionInfoImpl.h
@@ -155,6 +168,7 @@ include/libLLVM/llvm/Analysis/TargetTran
 include/libLLVM/llvm/Analysis/TargetTransformInfoImpl.h
 include/libLLVM/llvm/Analysis/Trace.h
 include/libLLVM/llvm/Analysis/TypeBasedAliasAnalysis.h
+include/libLLVM/llvm/Analysis/TypeMetadataUtils.h
 include/libLLVM/llvm/Analysis/ValueTracking.h
 include/libLLVM/llvm/Analysis/VectorUtils.h
 include/libLLVM/llvm/AsmParser/Parser.h
@@ -185,6 +199,14 @@ include/libLLVM/llvm/CodeGen/GCMetadata.
 include/libLLVM/llvm/CodeGen/GCMetadataPrinter.h
 include/libLLVM/llvm/CodeGen/GCStrategy.h
 include/libLLVM/llvm/CodeGen/GCs.h
+include/libLLVM/llvm/CodeGen/GlobalISel/CallLowering.h
+include/libLLVM/llvm/CodeGen/GlobalISel/GISelAccessor.h
+include/libLLVM/llvm/CodeGen/GlobalISel/IRTranslator.h
+include/libLLVM/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
+include/libLLVM/llvm/CodeGen/GlobalISel/RegBankSelect.h
+include/libLLVM/llvm/CodeGen/GlobalISel/RegisterBank.h
+include/libLLVM/llvm/CodeGen/GlobalISel/RegisterBankInfo.h
+include/libLLVM/llvm/CodeGen/GlobalISel/Types.h
 include/libLLVM/llvm/CodeGen/ISDOpcodes.h
 include/libLLVM/llvm/CodeGen/IntrinsicLowering.h
 include/libLLVM/llvm/CodeGen/LatencyPriorityQueue.h
@@ -217,6 +239,7 @@ include/libLLVM/llvm/CodeGen/MachineFunc
 include/libLLVM/llvm/CodeGen/MachineInstr.h
 include/libLLVM/llvm/CodeGen/MachineInstrBuilder.h
 include/libLLVM/llvm/CodeGen/MachineInstrBundle.h
+include/libLLVM/llvm/CodeGen/MachineInstrBundleIterator.h
 include/libLLVM/llvm/CodeGen/MachineJumpTableInfo.h
 include/libLLVM/llvm/CodeGen/MachineLoopInfo.h
 include/libLLVM/llvm/CodeGen/MachineMemOperand.h
@@ -239,16 +262,19 @@ include/libLLVM/llvm/CodeGen/PBQP/Soluti
 include/libLLVM/llvm/CodeGen/PBQPRAConstraint.h
 include/libLLVM/llvm/CodeGen/ParallelCG.h
 include/libLLVM/llvm/CodeGen/Passes.h
+include/libLLVM/llvm/CodeGen/PreISelIntrinsicLowering.h
 include/libLLVM/llvm/CodeGen/PseudoSourceValue.h
 include/libLLVM/llvm/CodeGen/RegAllocPBQP.h
 include/libLLVM/llvm/CodeGen/RegAllocRegistry.h
 include/libLLVM/llvm/CodeGen/RegisterClassInfo.h
 include/libLLVM/llvm/CodeGen/RegisterPressure.h
 include/libLLVM/llvm/CodeGen/RegisterScavenging.h
+include/libLLVM/llvm/CodeGen/RegisterUsageInfo.h
 include/libLLVM/llvm/CodeGen/ResourcePriorityQueue.h
 include/libLLVM/llvm/CodeGen/RuntimeLibcalls.h
 include/libLLVM/llvm/CodeGen/ScheduleDAG.h
 include/libLLVM/llvm/CodeGen/ScheduleDAGInstrs.h
+include/libLLVM/llvm/CodeGen/ScheduleDAGMutation.h
 include/libLLVM/llvm/CodeGen/ScheduleDFS.h
 include/libLLVM/llvm/CodeGen/ScheduleHazardRecognizer.h
 include/libLLVM/llvm/CodeGen/SchedulerRegistry.h
@@ -256,11 +282,15 @@ include/libLLVM/llvm/CodeGen/ScoreboardH
 include/libLLVM/llvm/CodeGen/SelectionDAG.h
 include/libLLVM/llvm/CodeGen/SelectionDAGISel.h
 include/libLLVM/llvm/CodeGen/SelectionDAGNodes.h
+include/libLLVM/llvm/CodeGen/SelectionDAGTargetInfo.h
 include/libLLVM/llvm/CodeGen/SlotIndexes.h
 include/libLLVM/llvm/CodeGen/StackMaps.h
 include/libLLVM/llvm/CodeGen/StackProtector.h
+include/libLLVM/llvm/CodeGen/TailDuplicator.h
 include/libLLVM/llvm/CodeGen/TargetLoweringObjectFileImpl.h
+include/libLLVM/llvm/CodeGen/TargetPassConfig.h
 include/libLLVM/llvm/CodeGen/TargetSchedule.h
+include/libLLVM/llvm/CodeGen/UnreachableBlockElim.h
 include/libLLVM/llvm/CodeGen/ValueTypes.h
 include/libLLVM/llvm/CodeGen/ValueTypes.td
 include/libLLVM/llvm/CodeGen/VirtRegMap.h
@@ -270,19 +300,42 @@ include/libLLVM/llvm/Config/AsmPrinters.
 include/libLLVM/llvm/Config/Disassemblers.def
 include/libLLVM/llvm/Config/Targets.def
 include/libLLVM/llvm/Config/llvm-config.h
+include/libLLVM/llvm/DebugInfo/CodeView/ByteStream.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/CVTypeVisitor.h
 include/libLLVM/llvm/DebugInfo/CodeView/CodeView.h
+include/libLLVM/llvm/DebugInfo/CodeView/CodeViewError.h
 include/libLLVM/llvm/DebugInfo/CodeView/CodeViewOStream.h
+include/libLLVM/llvm/DebugInfo/CodeView/EnumTables.h
 include/libLLVM/llvm/DebugInfo/CodeView/FieldListRecordBuilder.h
 include/libLLVM/llvm/DebugInfo/CodeView/FunctionId.h
 include/libLLVM/llvm/DebugInfo/CodeView/Line.h
 include/libLLVM/llvm/DebugInfo/CodeView/ListRecordBuilder.h
 include/libLLVM/llvm/DebugInfo/CodeView/MemoryTypeTableBuilder.h
 include/libLLVM/llvm/DebugInfo/CodeView/MethodListRecordBuilder.h
+include/libLLVM/llvm/DebugInfo/CodeView/ModuleSubstream.h
+include/libLLVM/llvm/DebugInfo/CodeView/ModuleSubstreamVisitor.h
+include/libLLVM/llvm/DebugInfo/CodeView/RecordSerialization.h
+include/libLLVM/llvm/DebugInfo/CodeView/StreamArray.h
+include/libLLVM/llvm/DebugInfo/CodeView/StreamInterface.h
+include/libLLVM/llvm/DebugInfo/CodeView/StreamReader.h
+include/libLLVM/llvm/DebugInfo/CodeView/StreamRef.h
+include/libLLVM/llvm/DebugInfo/CodeView/StreamWriter.h
+include/libLLVM/llvm/DebugInfo/CodeView/SymbolDumpDelegate.h
+include/libLLVM/llvm/DebugInfo/CodeView/SymbolDumper.h
+include/libLLVM/llvm/DebugInfo/CodeView/SymbolRecord.h
+include/libLLVM/llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h
+include/libLLVM/llvm/DebugInfo/CodeView/TypeDumper.h
 include/libLLVM/llvm/DebugInfo/CodeView/TypeIndex.h
 include/libLLVM/llvm/DebugInfo/CodeView/TypeRecord.h
 include/libLLVM/llvm/DebugInfo/CodeView/TypeRecordBuilder.h
+include/libLLVM/llvm/DebugInfo/CodeView/TypeRecords.def
+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/TypeVisitorCallbacks.h
 include/libLLVM/llvm/DebugInfo/DIContext.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h
 include/libLLVM/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
@@ -309,11 +362,13 @@ include/libLLVM/llvm/DebugInfo/PDB/DIA/D
 include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAEnumLineNumbers.h
 include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAEnumSourceFiles.h
 include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h
+include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAError.h
 include/libLLVM/llvm/DebugInfo/PDB/DIA/DIALineNumber.h
 include/libLLVM/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h
 include/libLLVM/llvm/DebugInfo/PDB/DIA/DIASession.h
 include/libLLVM/llvm/DebugInfo/PDB/DIA/DIASourceFile.h
 include/libLLVM/llvm/DebugInfo/PDB/DIA/DIASupport.h
+include/libLLVM/llvm/DebugInfo/PDB/GenericError.h
 include/libLLVM/llvm/DebugInfo/PDB/IPDBDataStream.h
 include/libLLVM/llvm/DebugInfo/PDB/IPDBEnumChildren.h
 include/libLLVM/llvm/DebugInfo/PDB/IPDBLineNumber.h
@@ -357,6 +412,34 @@ 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/DirectoryStreamData.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/EnumTables.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/Hash.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/IPDBFile.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/IPDBStreamData.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/ISectionContribVisitor.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/IndexedStreamData.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/InfoStream.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/MappedBlockStream.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/ModInfo.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/ModStream.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/MsfBuilder.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/MsfCommon.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/NameHashTable.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/NameMap.h
+include/libLLVM/llvm/DebugInfo/PDB/Raw/NameMapBuilder.h
+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/TpiStream.h
 include/libLLVM/llvm/DebugInfo/Symbolize/DIPrinter.h
 include/libLLVM/llvm/DebugInfo/Symbolize/SymbolizableModule.h
 include/libLLVM/llvm/DebugInfo/Symbolize/Symbolize.h
@@ -383,7 +466,7 @@ include/libLLVM/llvm/ExecutionEngine/Orc
 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/OrcArchitectureSupport.h
+include/libLLVM/llvm/ExecutionEngine/Orc/OrcABISupport.h
 include/libLLVM/llvm/ExecutionEngine/Orc/OrcError.h
 include/libLLVM/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
 include/libLLVM/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h
@@ -421,10 +504,11 @@ include/libLLVM/llvm/IR/DiagnosticInfo.h
 include/libLLVM/llvm/IR/DiagnosticPrinter.h
 include/libLLVM/llvm/IR/Dominators.h
 include/libLLVM/llvm/IR/Function.h
-include/libLLVM/llvm/IR/FunctionInfo.h
 include/libLLVM/llvm/IR/GVMaterializer.h
 include/libLLVM/llvm/IR/GetElementPtrTypeIterator.h
 include/libLLVM/llvm/IR/GlobalAlias.h
+include/libLLVM/llvm/IR/GlobalIFunc.h
+include/libLLVM/llvm/IR/GlobalIndirectSymbol.h
 include/libLLVM/llvm/IR/GlobalObject.h
 include/libLLVM/llvm/IR/GlobalValue.h
 include/libLLVM/llvm/IR/GlobalVariable.h
@@ -463,13 +547,16 @@ include/libLLVM/llvm/IR/Metadata.def
 include/libLLVM/llvm/IR/Metadata.h
 include/libLLVM/llvm/IR/Module.h
 include/libLLVM/llvm/IR/ModuleSlotTracker.h
+include/libLLVM/llvm/IR/ModuleSummaryIndex.h
 include/libLLVM/llvm/IR/NoFolder.h
 include/libLLVM/llvm/IR/OperandTraits.h
 include/libLLVM/llvm/IR/Operator.h
+include/libLLVM/llvm/IR/OptBisect.h
 include/libLLVM/llvm/IR/PassManager.h
 include/libLLVM/llvm/IR/PassManagerInternal.h
 include/libLLVM/llvm/IR/PatternMatch.h
 include/libLLVM/llvm/IR/PredIteratorCache.h
+include/libLLVM/llvm/IR/ProfileSummary.h
 include/libLLVM/llvm/IR/Statepoint.h
 include/libLLVM/llvm/IR/SymbolTableListTraits.h
 include/libLLVM/llvm/IR/TrackingMDRef.h
@@ -487,8 +574,11 @@ include/libLLVM/llvm/IR/ValueSymbolTable
 include/libLLVM/llvm/IR/Verifier.h
 include/libLLVM/llvm/IRReader/IRReader.h
 include/libLLVM/llvm/InitializePasses.h
-include/libLLVM/llvm/LTO/LTOCodeGenerator.h
-include/libLLVM/llvm/LTO/LTOModule.h
+include/libLLVM/llvm/LTO/LTO.h
+include/libLLVM/llvm/LTO/legacy/LTOCodeGenerator.h
+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
@@ -504,15 +594,17 @@ include/libLLVM/llvm/MC/MCAsmInfoELF.h
 include/libLLVM/llvm/MC/MCAsmLayout.h
 include/libLLVM/llvm/MC/MCAssembler.h
 include/libLLVM/llvm/MC/MCCodeEmitter.h
-include/libLLVM/llvm/MC/MCCodeGenInfo.h
+include/libLLVM/llvm/MC/MCCodeView.h
 include/libLLVM/llvm/MC/MCContext.h
 include/libLLVM/llvm/MC/MCDirectives.h
-include/libLLVM/llvm/MC/MCDisassembler.h
+include/libLLVM/llvm/MC/MCDisassembler/MCDisassembler.h
+include/libLLVM/llvm/MC/MCDisassembler/MCExternalSymbolizer.h
+include/libLLVM/llvm/MC/MCDisassembler/MCRelocationInfo.h
+include/libLLVM/llvm/MC/MCDisassembler/MCSymbolizer.h
 include/libLLVM/llvm/MC/MCDwarf.h
 include/libLLVM/llvm/MC/MCELFObjectWriter.h
 include/libLLVM/llvm/MC/MCELFStreamer.h
 include/libLLVM/llvm/MC/MCExpr.h
-include/libLLVM/llvm/MC/MCExternalSymbolizer.h
 include/libLLVM/llvm/MC/MCFixedLenDisassembler.h
 include/libLLVM/llvm/MC/MCFixup.h
 include/libLLVM/llvm/MC/MCFixupKindInfo.h
@@ -537,8 +629,8 @@ include/libLLVM/llvm/MC/MCParser/MCAsmPa
 include/libLLVM/llvm/MC/MCParser/MCAsmParserExtension.h
 include/libLLVM/llvm/MC/MCParser/MCAsmParserUtils.h
 include/libLLVM/llvm/MC/MCParser/MCParsedAsmOperand.h
+include/libLLVM/llvm/MC/MCParser/MCTargetAsmParser.h
 include/libLLVM/llvm/MC/MCRegisterInfo.h
-include/libLLVM/llvm/MC/MCRelocationInfo.h
 include/libLLVM/llvm/MC/MCSchedule.h
 include/libLLVM/llvm/MC/MCSection.h
 include/libLLVM/llvm/MC/MCSectionCOFF.h
@@ -550,8 +642,6 @@ 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/MCSymbolizer.h
-include/libLLVM/llvm/MC/MCTargetAsmParser.h
 include/libLLVM/llvm/MC/MCTargetOptions.h
 include/libLLVM/llvm/MC/MCTargetOptionsCommandFlags.h
 include/libLLVM/llvm/MC/MCValue.h
@@ -563,27 +653,29 @@ include/libLLVM/llvm/MC/MachineLocation.
 include/libLLVM/llvm/MC/SectionKind.h
 include/libLLVM/llvm/MC/StringTableBuilder.h
 include/libLLVM/llvm/MC/SubtargetFeature.h
-include/libLLVM/llvm/MC/YAML.h
 include/libLLVM/llvm/Object/Archive.h
 include/libLLVM/llvm/Object/ArchiveWriter.h
 include/libLLVM/llvm/Object/Binary.h
 include/libLLVM/llvm/Object/COFF.h
 include/libLLVM/llvm/Object/COFFImportFile.h
-include/libLLVM/llvm/Object/COFFYAML.h
 include/libLLVM/llvm/Object/ELF.h
 include/libLLVM/llvm/Object/ELFObjectFile.h
 include/libLLVM/llvm/Object/ELFTypes.h
-include/libLLVM/llvm/Object/ELFYAML.h
 include/libLLVM/llvm/Object/Error.h
-include/libLLVM/llvm/Object/FunctionIndexObjectFile.h
 include/libLLVM/llvm/Object/IRObjectFile.h
 include/libLLVM/llvm/Object/MachO.h
 include/libLLVM/llvm/Object/MachOUniversal.h
+include/libLLVM/llvm/Object/ModuleSummaryIndexObjectFile.h
 include/libLLVM/llvm/Object/ObjectFile.h
 include/libLLVM/llvm/Object/RelocVisitor.h
 include/libLLVM/llvm/Object/StackMapParser.h
 include/libLLVM/llvm/Object/SymbolSize.h
 include/libLLVM/llvm/Object/SymbolicFile.h
+include/libLLVM/llvm/ObjectYAML/COFFYAML.h
+include/libLLVM/llvm/ObjectYAML/ELFYAML.h
+include/libLLVM/llvm/ObjectYAML/MachOYAML.h
+include/libLLVM/llvm/ObjectYAML/ObjectYAML.h
+include/libLLVM/llvm/ObjectYAML/YAML.h
 include/libLLVM/llvm/Option/Arg.h
 include/libLLVM/llvm/Option/ArgList.h
 include/libLLVM/llvm/Option/OptParser.td
@@ -596,17 +688,18 @@ include/libLLVM/llvm/PassInfo.h
 include/libLLVM/llvm/PassRegistry.h
 include/libLLVM/llvm/PassSupport.h
 include/libLLVM/llvm/Passes/PassBuilder.h
-include/libLLVM/llvm/ProfileData/CoverageMapping.h
-include/libLLVM/llvm/ProfileData/CoverageMappingReader.h
-include/libLLVM/llvm/ProfileData/CoverageMappingWriter.h
+include/libLLVM/llvm/ProfileData/Coverage/CoverageMapping.h
+include/libLLVM/llvm/ProfileData/Coverage/CoverageMappingReader.h
+include/libLLVM/llvm/ProfileData/Coverage/CoverageMappingWriter.h
 include/libLLVM/llvm/ProfileData/InstrProf.h
 include/libLLVM/llvm/ProfileData/InstrProfData.inc
 include/libLLVM/llvm/ProfileData/InstrProfReader.h
 include/libLLVM/llvm/ProfileData/InstrProfWriter.h
+include/libLLVM/llvm/ProfileData/ProfileCommon.h
 include/libLLVM/llvm/ProfileData/SampleProf.h
 include/libLLVM/llvm/ProfileData/SampleProfReader.h
 include/libLLVM/llvm/ProfileData/SampleProfWriter.h
-include/libLLVM/llvm/Support/AIXDataTypesFix.h
+include/libLLVM/llvm/Support/AArch64TargetParser.def
 include/libLLVM/llvm/Support/ARMBuildAttributes.h
 include/libLLVM/llvm/Support/ARMEHABI.h
 include/libLLVM/llvm/Support/ARMTargetParser.def
@@ -615,14 +708,17 @@ include/libLLVM/llvm/Support/AlignOf.h
 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/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
 include/libLLVM/llvm/Support/Casting.h
 include/libLLVM/llvm/Support/CodeGen.h
+include/libLLVM/llvm/Support/CodeGenCWrappers.h
 include/libLLVM/llvm/Support/CommandLine.h
 include/libLLVM/llvm/Support/Compiler.h
 include/libLLVM/llvm/Support/Compression.h
@@ -638,9 +734,12 @@ include/libLLVM/llvm/Support/Dwarf.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
@@ -653,6 +752,7 @@ include/libLLVM/llvm/Support/Endian.h
 include/libLLVM/llvm/Support/EndianStream.h
 include/libLLVM/llvm/Support/Errc.h
 include/libLLVM/llvm/Support/Errno.h
+include/libLLVM/llvm/Support/Error.h
 include/libLLVM/llvm/Support/ErrorHandling.h
 include/libLLVM/llvm/Support/ErrorOr.h
 include/libLLVM/llvm/Support/FileOutputBuffer.h
@@ -672,6 +772,7 @@ include/libLLVM/llvm/Support/LineIterato
 include/libLLVM/llvm/Support/Locale.h
 include/libLLVM/llvm/Support/LockFileManager.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
@@ -696,10 +797,11 @@ 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/RegistryParser.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/SourceMgr.h
@@ -719,6 +821,7 @@ include/libLLVM/llvm/Support/TimeValue.h
 include/libLLVM/llvm/Support/Timer.h
 include/libLLVM/llvm/Support/ToolOutputFile.h
 include/libLLVM/llvm/Support/TrailingObjects.h
+include/libLLVM/llvm/Support/TypeName.h
 include/libLLVM/llvm/Support/Unicode.h
 include/libLLVM/llvm/Support/UnicodeCharRanges.h
 include/libLLVM/llvm/Support/UniqueLock.h
@@ -731,16 +834,19 @@ include/libLLVM/llvm/Support/YAMLTraits.
 include/libLLVM/llvm/Support/circular_raw_ostream.h
 include/libLLVM/llvm/Support/raw_os_ostream.h
 include/libLLVM/llvm/Support/raw_ostream.h
+include/libLLVM/llvm/Support/raw_sha1_ostream.h
 include/libLLVM/llvm/Support/thread.h
 include/libLLVM/llvm/Support/type_traits.h
 include/libLLVM/llvm/TableGen/Error.h
 include/libLLVM/llvm/TableGen/Main.h
 include/libLLVM/llvm/TableGen/Record.h
+include/libLLVM/llvm/TableGen/SearchableTable.td
 include/libLLVM/llvm/TableGen/SetTheory.h
 include/libLLVM/llvm/TableGen/StringMatcher.h
 include/libLLVM/llvm/TableGen/StringToOffsetTable.h
 include/libLLVM/llvm/TableGen/TableGenBackend.h
 include/libLLVM/llvm/Target/CostTable.h
+include/libLLVM/llvm/Target/GenericOpcodes.td
 include/libLLVM/llvm/Target/Target.td
 include/libLLVM/llvm/Target/TargetCallingConv.h
 include/libLLVM/llvm/Target/TargetCallingConv.td
@@ -751,33 +857,75 @@ include/libLLVM/llvm/Target/TargetItiner
 include/libLLVM/llvm/Target/TargetLowering.h
 include/libLLVM/llvm/Target/TargetLoweringObjectFile.h
 include/libLLVM/llvm/Target/TargetMachine.h
+include/libLLVM/llvm/Target/TargetOpcodes.def
 include/libLLVM/llvm/Target/TargetOpcodes.h
 include/libLLVM/llvm/Target/TargetOptions.h
 include/libLLVM/llvm/Target/TargetRecip.h
 include/libLLVM/llvm/Target/TargetRegisterInfo.h
 include/libLLVM/llvm/Target/TargetSchedule.td
 include/libLLVM/llvm/Target/TargetSelectionDAG.td
-include/libLLVM/llvm/Target/TargetSelectionDAGInfo.h
 include/libLLVM/llvm/Target/TargetSubtargetInfo.h
+include/libLLVM/llvm/Transforms/GCOVProfiler.h
 include/libLLVM/llvm/Transforms/IPO.h
+include/libLLVM/llvm/Transforms/IPO/ConstantMerge.h
+include/libLLVM/llvm/Transforms/IPO/CrossDSOCFI.h
+include/libLLVM/llvm/Transforms/IPO/DeadArgumentElimination.h
+include/libLLVM/llvm/Transforms/IPO/ElimAvailExtern.h
 include/libLLVM/llvm/Transforms/IPO/ForceFunctionAttrs.h
+include/libLLVM/llvm/Transforms/IPO/FunctionAttrs.h
 include/libLLVM/llvm/Transforms/IPO/FunctionImport.h
+include/libLLVM/llvm/Transforms/IPO/GlobalDCE.h
+include/libLLVM/llvm/Transforms/IPO/GlobalOpt.h
 include/libLLVM/llvm/Transforms/IPO/InferFunctionAttrs.h
 include/libLLVM/llvm/Transforms/IPO/InlinerPass.h
-include/libLLVM/llvm/Transforms/IPO/LowerBitSets.h
+include/libLLVM/llvm/Transforms/IPO/Internalize.h
+include/libLLVM/llvm/Transforms/IPO/LowerTypeTests.h
+include/libLLVM/llvm/Transforms/IPO/PartialInlining.h
 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/WholeProgramDevirt.h
 include/libLLVM/llvm/Transforms/InstCombine/InstCombine.h
 include/libLLVM/llvm/Transforms/InstCombine/InstCombineWorklist.h
+include/libLLVM/llvm/Transforms/InstrProfiling.h
 include/libLLVM/llvm/Transforms/Instrumentation.h
 include/libLLVM/llvm/Transforms/ObjCARC.h
+include/libLLVM/llvm/Transforms/PGOInstrumentation.h
+include/libLLVM/llvm/Transforms/SampleProfile.h
 include/libLLVM/llvm/Transforms/Scalar.h
 include/libLLVM/llvm/Transforms/Scalar/ADCE.h
+include/libLLVM/llvm/Transforms/Scalar/AlignmentFromAssumptions.h
+include/libLLVM/llvm/Transforms/Scalar/BDCE.h
+include/libLLVM/llvm/Transforms/Scalar/ConstantHoisting.h
+include/libLLVM/llvm/Transforms/Scalar/CorrelatedValuePropagation.h
+include/libLLVM/llvm/Transforms/Scalar/DCE.h
+include/libLLVM/llvm/Transforms/Scalar/DeadStoreElimination.h
 include/libLLVM/llvm/Transforms/Scalar/EarlyCSE.h
+include/libLLVM/llvm/Transforms/Scalar/Float2Int.h
+include/libLLVM/llvm/Transforms/Scalar/GVN.h
+include/libLLVM/llvm/Transforms/Scalar/GuardWidening.h
+include/libLLVM/llvm/Transforms/Scalar/IndVarSimplify.h
+include/libLLVM/llvm/Transforms/Scalar/JumpThreading.h
+include/libLLVM/llvm/Transforms/Scalar/LICM.h
+include/libLLVM/llvm/Transforms/Scalar/LoopDeletion.h
+include/libLLVM/llvm/Transforms/Scalar/LoopDistribute.h
+include/libLLVM/llvm/Transforms/Scalar/LoopIdiomRecognize.h
+include/libLLVM/llvm/Transforms/Scalar/LoopInstSimplify.h
+include/libLLVM/llvm/Transforms/Scalar/LoopRotation.h
+include/libLLVM/llvm/Transforms/Scalar/LoopSimplifyCFG.h
+include/libLLVM/llvm/Transforms/Scalar/LowerAtomic.h
 include/libLLVM/llvm/Transforms/Scalar/LowerExpectIntrinsic.h
+include/libLLVM/llvm/Transforms/Scalar/MemCpyOptimizer.h
+include/libLLVM/llvm/Transforms/Scalar/MergedLoadStoreMotion.h
+include/libLLVM/llvm/Transforms/Scalar/PartiallyInlineLibCalls.h
+include/libLLVM/llvm/Transforms/Scalar/Reassociate.h
+include/libLLVM/llvm/Transforms/Scalar/SCCP.h
 include/libLLVM/llvm/Transforms/Scalar/SROA.h
 include/libLLVM/llvm/Transforms/Scalar/SimplifyCFG.h
+include/libLLVM/llvm/Transforms/Scalar/Sink.h
+include/libLLVM/llvm/Transforms/Scalar/TailRecursionElimination.h
 include/libLLVM/llvm/Transforms/Utils/ASanStackFrameLayout.h
+include/libLLVM/llvm/Transforms/Utils/AddDiscriminators.h
 include/libLLVM/llvm/Transforms/Utils/BasicBlockUtils.h
 include/libLLVM/llvm/Transforms/Utils/BuildLibCalls.h
 include/libLLVM/llvm/Transforms/Utils/BypassSlowDivision.h
@@ -785,16 +933,24 @@ include/libLLVM/llvm/Transforms/Utils/Cl
 include/libLLVM/llvm/Transforms/Utils/CmpInstAnalysis.h
 include/libLLVM/llvm/Transforms/Utils/CodeExtractor.h
 include/libLLVM/llvm/Transforms/Utils/CtorUtils.h
+include/libLLVM/llvm/Transforms/Utils/Evaluator.h
+include/libLLVM/llvm/Transforms/Utils/FunctionImportUtils.h
 include/libLLVM/llvm/Transforms/Utils/GlobalStatus.h
 include/libLLVM/llvm/Transforms/Utils/IntegerDivision.h
+include/libLLVM/llvm/Transforms/Utils/LCSSA.h
 include/libLLVM/llvm/Transforms/Utils/Local.h
+include/libLLVM/llvm/Transforms/Utils/LoopSimplify.h
 include/libLLVM/llvm/Transforms/Utils/LoopUtils.h
 include/libLLVM/llvm/Transforms/Utils/LoopVersioning.h
+include/libLLVM/llvm/Transforms/Utils/Mem2Reg.h
+include/libLLVM/llvm/Transforms/Utils/MemorySSA.h
 include/libLLVM/llvm/Transforms/Utils/ModuleUtils.h
 include/libLLVM/llvm/Transforms/Utils/PromoteMemToReg.h
 include/libLLVM/llvm/Transforms/Utils/SSAUpdater.h
 include/libLLVM/llvm/Transforms/Utils/SSAUpdaterImpl.h
+include/libLLVM/llvm/Transforms/Utils/SanitizerStats.h
 include/libLLVM/llvm/Transforms/Utils/SimplifyIndVar.h
+include/libLLVM/llvm/Transforms/Utils/SimplifyInstructions.h
 include/libLLVM/llvm/Transforms/Utils/SimplifyLibCalls.h
 include/libLLVM/llvm/Transforms/Utils/SplitModule.h
 include/libLLVM/llvm/Transforms/Utils/SymbolRewriter.h
@@ -802,6 +958,8 @@ include/libLLVM/llvm/Transforms/Utils/Un
 include/libLLVM/llvm/Transforms/Utils/UnrollLoop.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}
 lib/libLLVM/libLLVM.${SOEXT}
@@ -810,11 +968,13 @@ share/libLLVM/cmake/AddLLVM.cmake
 share/libLLVM/cmake/AddLLVMDefinitions.cmake
 share/libLLVM/cmake/AddOCaml.cmake
 share/libLLVM/cmake/AddSphinxTarget.cmake
+share/libLLVM/cmake/CheckCompilerVersion.cmake
 share/libLLVM/cmake/ChooseMSVCCRT.cmake
 share/libLLVM/cmake/CrossCompile.cmake
 share/libLLVM/cmake/DetermineGCCCompatible.cmake
 share/libLLVM/cmake/FindOCaml.cmake
 share/libLLVM/cmake/FindSphinx.cmake
+share/libLLVM/cmake/GenerateVersionFromCVS.cmake
 share/libLLVM/cmake/GetSVN.cmake
 share/libLLVM/cmake/HandleLLVMOptions.cmake
 share/libLLVM/cmake/HandleLLVMStdlib.cmake
@@ -827,3 +987,4 @@ share/libLLVM/cmake/LLVMExternalProjectU
 share/libLLVM/cmake/LLVMInstallSymlink.cmake
 share/libLLVM/cmake/LLVMProcessSources.cmake
 share/libLLVM/cmake/TableGen.cmake
+share/libLLVM/cmake/VersionFromVCS.cmake

Index: pkgsrc/lang/libLLVM/distinfo
diff -u pkgsrc/lang/libLLVM/distinfo:1.4 pkgsrc/lang/libLLVM/distinfo:1.5
--- pkgsrc/lang/libLLVM/distinfo:1.4    Tue Aug  2 22:39:21 2016
+++ pkgsrc/lang/libLLVM/distinfo        Mon Nov 14 20:15:33 2016
@@ -1,14 +1,13 @@
-$NetBSD: distinfo,v 1.4 2016/08/02 22:39:21 wiz Exp $
+$NetBSD: distinfo,v 1.5 2016/11/14 20:15:33 ryoon Exp $
 
-SHA1 (llvm-3.8.1.src.tar.xz) = e0c48c4c182424b99999367d688cd8ce7876827b
-RMD160 (llvm-3.8.1.src.tar.xz) = 5e4d2193e7d58abaa70ab53e67b6fe058b781e6a
-SHA512 (llvm-3.8.1.src.tar.xz) = 99bbb2cc5f337fd5edf1621f8028c8cb74011aa4af2531018dc05409b27f7b8d0c2f76a00115f677f7c013029d5d9f55d085a5b40433409aac4e9161d53bd366
-Size (llvm-3.8.1.src.tar.xz) = 16551472 bytes
+SHA1 (llvm-3.9.0.src.tar.xz) = da792f11a208d5b994c4fe1c8faa20f90ff0e4a3
+RMD160 (llvm-3.9.0.src.tar.xz) = bbde781a914f6cd7fab3f71745fc576b2e7e23c9
+SHA512 (llvm-3.9.0.src.tar.xz) = f18ae32531218ab156c3e56c11826be0fd05f0799c82eaf2e6a043b38e1277560b4d921987513b88b11d97ea2619feaf277eec72181dd2ae4f4108c2836bf7b2
+Size (llvm-3.9.0.src.tar.xz) = 18235716 bytes
 SHA1 (patch-CMakeLists.txt) = 770e0bc00a987430b6c6be7e4141f33e5be54a8f
-SHA1 (patch-cmake_modules_AddLLVM.cmake) = 88a8d4c8703c69c6e3503ca088bf61349d835c75
-SHA1 (patch-cmake_modules_CMakeLists.txt) = 8297c4b9ddd3ac05a06d8a4a8040be46b5b8b39f
-SHA1 (patch-cmake_modules_TableGen.cmake) = 53be811936dd5157e6eb08db8cd51a7265bc8c7f
-SHA1 (patch-include_llvm_Support_Host.h) = 55a9fab6ee49ec09a2fd644747a6dddd6b39f942
-SHA1 (patch-lib_Transforms_CMakeLists.txt) = cafdd73a39574aa3a83db35997ff918f87191d18
-SHA1 (patch-tools_llvm-config_llvm-config.cpp) = 2964b70aa81d272940b8c48c7854e61f7d0662be
+SHA1 (patch-cmake_modules_AddLLVM.cmake) = 1fd7598a55eede8b1ef50556ab8d7277fe5b2f43
+SHA1 (patch-cmake_modules_CMakeLists.txt) = bf31e9d3914e2041a7d435390b63ad67282b272f
+SHA1 (patch-cmake_modules_TableGen.cmake) = d548208577f45fbb6c8f7b43548c399cc63c7887
+SHA1 (patch-include_llvm_Support_Host.h) = ad6ac520f15bba96ab887c962fb717e22aaee7bf
+SHA1 (patch-tools_llvm-config_llvm-config.cpp) = 44835bfcd2bddc16e0b93628fafb627889091f85
 SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 8f538db138219c2a3ce394b7a3c21f277d5544dd

Index: pkgsrc/lang/libLLVM/options.mk
diff -u pkgsrc/lang/libLLVM/options.mk:1.1 pkgsrc/lang/libLLVM/options.mk:1.2
--- pkgsrc/lang/libLLVM/options.mk:1.1  Tue Mar  8 21:06:50 2016
+++ pkgsrc/lang/libLLVM/options.mk      Mon Nov 14 20:15:33 2016
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.1 2016/03/08 21:06:50 tnn Exp $
+# $NetBSD: options.mk,v 1.2 2016/11/14 20:15:33 ryoon Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.llvm
 
-LLVM_TARGETS=  AArch64 AMDGPU ARM BPF CppBackend Hexagon MSP430 Mips NVPTX PowerPC Sparc SystemZ X86 XCore
+LLVM_TARGETS=  AArch64 AMDGPU ARM BPF Hexagon MSP430 Mips NVPTX PowerPC Sparc SystemZ X86 XCore
 
 .for tgt in ${LLVM_TARGETS}
 PLIST_VARS+=                   ${tgt}
@@ -36,4 +36,4 @@ LLVM_TARGETS_TO_BUILD+=       ${tgt}
 .  endif
 .endfor
 
-CMAKE_ARGS+=   -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS_TO_BUILD:ts;}"
+#CMAKE_ARGS+=  -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS_TO_BUILD:ts;}"

Index: pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake
diff -u pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake:1.2 pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake:1.3
--- pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake:1.2   Fri Mar 11 06:50:42 2016
+++ pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake       Mon Nov 14 20:15:33 2016
@@ -1,10 +1,10 @@
-$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.2 2016/03/11 06:50:42 tnn Exp $
+$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.3 2016/11/14 20:15:33 ryoon Exp $
 
 Disable library install rules. Handled manually.
 Make sure llvm-config goes in libexec/libLLVM to avoid conflict.
 Don't use non-portable -z discard-unused on SunOS.
 
---- cmake/modules/AddLLVM.cmake.orig   2016-02-12 17:52:29.000000000 +0000
+--- cmake/modules/AddLLVM.cmake.orig   2016-07-10 02:43:47.000000000 +0000
 +++ cmake/modules/AddLLVM.cmake
 @@ -174,9 +174,9 @@ function(add_link_opts target_name)
          # ld64's implementation of -dead_strip breaks tools that use plugins.
@@ -32,12 +32,34 @@ Don't use non-portable -z discard-unused
  
        if (NOT CMAKE_CONFIGURATION_TYPES)
          add_custom_target(install-${name}
-@@ -702,7 +704,7 @@ macro(add_llvm_tool name)
+@@ -592,10 +594,12 @@ macro(add_llvm_loadable_module name)
+         else()
+           set(dlldir "lib${LLVM_LIBDIR_SUFFIX}")
+         endif()
++        if (false)
+         install(TARGETS ${name}
+           EXPORT LLVMExports
+           LIBRARY DESTINATION ${dlldir}
+           ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
++       endif()
+       endif()
+       set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name})
+     endif()
+@@ -770,7 +774,7 @@ macro(add_llvm_tool name)
      if( LLVM_BUILD_TOOLS )
        install(TARGETS ${name}
                EXPORT LLVMExports
--              RUNTIME DESTINATION bin
+-              RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}
 +              RUNTIME DESTINATION libexec/libLLVM
                COMPONENT ${name})
  
        if (NOT CMAKE_CONFIGURATION_TYPES)
+@@ -811,7 +815,7 @@ macro(add_llvm_utility name)
+   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-cmake_modules_CMakeLists.txt
diff -u pkgsrc/lang/libLLVM/patches/patch-cmake_modules_CMakeLists.txt:1.1 pkgsrc/lang/libLLVM/patches/patch-cmake_modules_CMakeLists.txt:1.2
--- pkgsrc/lang/libLLVM/patches/patch-cmake_modules_CMakeLists.txt:1.1  Tue Mar  8 21:06:50 2016
+++ pkgsrc/lang/libLLVM/patches/patch-cmake_modules_CMakeLists.txt      Mon Nov 14 20:15:33 2016
@@ -1,11 +1,11 @@
-$NetBSD: patch-cmake_modules_CMakeLists.txt,v 1.1 2016/03/08 21:06:50 tnn Exp $
+$NetBSD: patch-cmake_modules_CMakeLists.txt,v 1.2 2016/11/14 20:15:33 ryoon Exp $
 
 Make sure cmake rules go in own directory to avoid conflicts.
 
---- cmake/modules/CMakeLists.txt.orig  2014-12-29 11:16:19.000000000 +0000
+--- cmake/modules/CMakeLists.txt.orig  2016-06-22 21:01:19.000000000 +0000
 +++ cmake/modules/CMakeLists.txt
 @@ -1,4 +1,4 @@
--set(LLVM_INSTALL_PACKAGE_DIR share/llvm/cmake)
+-set(LLVM_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm)
 +set(LLVM_INSTALL_PACKAGE_DIR share/libLLVM/cmake)
  set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}")
  
Index: pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake
diff -u pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake:1.1 pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake:1.2
--- pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake:1.1  Tue Mar  8 21:06:50 2016
+++ pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake      Mon Nov 14 20:15:33 2016
@@ -1,8 +1,8 @@
-$NetBSD: patch-cmake_modules_TableGen.cmake,v 1.1 2016/03/08 21:06:50 tnn Exp $
+$NetBSD: patch-cmake_modules_TableGen.cmake,v 1.2 2016/11/14 20:15:33 ryoon Exp $
 
 Disable install of llvm-tblgen, provided by lang/llvm.
 
---- cmake/modules/TableGen.cmake.orig  2015-10-23 19:48:17.000000000 +0000
+--- cmake/modules/TableGen.cmake.orig  2016-06-08 21:19:26.000000000 +0000
 +++ cmake/modules/TableGen.cmake
 @@ -138,7 +138,7 @@ macro(add_tablegen target project)
        set_target_properties(${target} PROPERTIES LINK_FLAGS -Wl,--stack,16777216)
@@ -12,4 +12,4 @@ Disable install of llvm-tblgen, provided
 +  if (${project} STREQUAL LLVM AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY AND false)
      install(TARGETS ${target}
              EXPORT LLVMExports
-             RUNTIME DESTINATION bin)
+             RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR})
Index: pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h
diff -u pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h:1.1 pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h:1.2
--- pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h:1.1   Tue Mar  8 21:06:50 2016
+++ pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h       Mon Nov 14 20:15:33 2016
@@ -1,13 +1,13 @@
-$NetBSD: patch-include_llvm_Support_Host.h,v 1.1 2016/03/08 21:06:50 tnn Exp $
+$NetBSD: patch-include_llvm_Support_Host.h,v 1.2 2016/11/14 20:15:33 ryoon Exp $
 
 Fix lack of machine/endian.h on solaris
 http://permalink.gmane.org/gmane.comp.compilers.llvm.devel/63225
 
---- include/llvm/Support/Host.h.orig   2015-06-23 09:49:53.000000000 +0000
+--- include/llvm/Support/Host.h.orig   2016-02-26 17:01:45.000000000 +0000
 +++ include/llvm/Support/Host.h
 @@ -18,6 +18,20 @@
  
- #if defined(__linux__) || defined(__GNU__)
+ #if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__)
  #include <endian.h>
 +#elif defined(__sun) & defined(__SVR4)
 +# ifndef BYTE_ORDER
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.1 pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp:1.2
--- pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp:1.1     Thu Mar 17 02:53:59 2016
+++ pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp Mon Nov 14 20:15:33 2016
@@ -1,13 +1,13 @@
-$NetBSD: patch-tools_llvm-config_llvm-config.cpp,v 1.1 2016/03/17 02:53:59 tnn Exp $
+$NetBSD: patch-tools_llvm-config_llvm-config.cpp,v 1.2 2016/11/14 20:15:33 ryoon 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     2016-01-12 07:23:58.000000000 +0000
+--- tools/llvm-config/llvm-config.cpp.orig     2016-03-14 21:39:58.000000000 +0000
 +++ tools/llvm-config/llvm-config.cpp
-@@ -309,9 +309,9 @@ int main(int argc, char **argv) {
-                            "-I" + ActiveObjRoot + "/include");
+@@ -327,9 +327,9 @@ int main(int argc, char **argv) {
+         ("-I" + ActiveIncludeDir + " " + "-I" + ActiveObjRoot + "/include");
    } else {
      ActivePrefix = CurrentExecPrefix;
 -    ActiveIncludeDir = ActivePrefix + "/include";
@@ -18,11 +18,11 @@ on patch updates.
      ActiveIncludeOption = "-I" + ActiveIncludeDir;
    }
  
-@@ -334,14 +334,14 @@ int main(int argc, char **argv) {
-     StaticPrefix = SharedPrefix = "lib";
+@@ -363,14 +363,14 @@ int main(int argc, char **argv) {
+     StaticDir = ActiveLibDir;
    } else if (HostTriple.isOSDarwin()) {
      SharedExt = "dylib";
--    SharedVersionedExt = PACKAGE_VERSION ".dylib";
+-    SharedVersionedExt = LLVM_DYLIB_VERSION ".dylib";
 +    SharedVersionedExt = ".dylib";
      StaticExt = "a";
      StaticDir = SharedDir = ActiveLibDir;
@@ -30,26 +30,26 @@ on patch updates.
    } else {
      // default to the unix values:
      SharedExt = "so";
--    SharedVersionedExt = PACKAGE_VERSION ".so";
+-    SharedVersionedExt = LLVM_DYLIB_VERSION ".so";
 +    SharedVersionedExt = "-@LLVM_MAJOR_MINOR@.so";
      StaticExt = "a";
      StaticDir = SharedDir = ActiveLibDir;
      StaticPrefix = SharedPrefix = "lib";
-@@ -362,7 +362,7 @@ int main(int argc, char **argv) {
+@@ -383,7 +383,7 @@ int main(int argc, char **argv) {
  
    bool DyLibExists = false;
    const std::string DyLibName =
--    (SharedPrefix + "LLVM-" + SharedVersionedExt).str();
-+    (SharedPrefix + "LLVM" + SharedVersionedExt).str();
+-      (SharedPrefix + "LLVM-" + SharedVersionedExt).str();
++      (SharedPrefix + "LLVM" + SharedVersionedExt).str();
  
-   if (BuiltDyLib) {
-     DyLibExists = sys::fs::exists(SharedDir + "/" + DyLibName);
-@@ -440,7 +440,7 @@ int main(int argc, char **argv) {
-       } else if (Arg == "--cxxflags") {
+   // If LLVM_LINK_DYLIB is ON, the single shared library will be returned
+   // for "--libs", etc, if they exist. This behaviour can be overridden with
+@@ -474,7 +474,7 @@ int main(int argc, char **argv) {
          OS << ActiveIncludeOption << ' ' << LLVM_CXXFLAGS << '\n';
        } else if (Arg == "--ldflags") {
--        OS << "-L" << ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n';
-+        OS << "-L" << ActiveLibDir << " @COMPILER_RPATH_FLAG@" << ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n';
+         OS << ((HostTriple.isWindowsMSVCEnvironment()) ? "-LIBPATH:" : "-L")
+-           << ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n';
++           << ActiveLibDir << " @COMPILER_RPATH_FLAG@" << ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n';
        } else if (Arg == "--system-libs") {
          PrintSystemLibs = true;
        } else if (Arg == "--libs") {

Index: pkgsrc/lang/libunwind/Makefile
diff -u pkgsrc/lang/libunwind/Makefile:1.2 pkgsrc/lang/libunwind/Makefile:1.3
--- pkgsrc/lang/libunwind/Makefile:1.2  Wed Aug  3 09:06:44 2016
+++ pkgsrc/lang/libunwind/Makefile      Mon Nov 14 20:15:33 2016
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2016/08/03 09:06:44 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2016/11/14 20:15:33 ryoon Exp $
 
-DISTNAME=      libunwind-3.8.1.src
+DISTNAME=      libunwind-3.9.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.2 pkgsrc/lang/libunwind/distinfo:1.3
--- pkgsrc/lang/libunwind/distinfo:1.2  Wed Aug  3 09:06:44 2016
+++ pkgsrc/lang/libunwind/distinfo      Mon Nov 14 20:15:33 2016
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.2 2016/08/03 09:06:44 wiz Exp $
+$NetBSD: distinfo,v 1.3 2016/11/14 20:15:33 ryoon Exp $
 
-SHA1 (libunwind-3.8.1.src.tar.xz) = e63f72cf6646b1379ebcb07f03bf8ce6d93aeaf9
-RMD160 (libunwind-3.8.1.src.tar.xz) = 24c300852129276bddda7db5eeffd5328e77a646
-SHA512 (libunwind-3.8.1.src.tar.xz) = 2a60d7c4b0aee6c58f50089ac9fa2b756ab1d74faaee32f7436ddace4510589c7ffdd20478919966ed2fa8a23ee1b5d1b26115dbd8ee2834b00b5bcd61d00b14
-Size (libunwind-3.8.1.src.tar.xz) = 60596 bytes
-SHA1 (patch-src_AddressSpace.hpp) = 129ae52d46a2787ebc37a594040d29926a4eff03
+SHA1 (libunwind-3.9.0.src.tar.xz) = dae0d870c3bb6c23a7d86059f3ace0564c4daf12
+RMD160 (libunwind-3.9.0.src.tar.xz) = 0181a9c886032a9a24a35e4286d99bf64917eff6
+SHA512 (libunwind-3.9.0.src.tar.xz) = dce384bea99ed61b363b847e20946fc9d70377389a227cc7054fbaa916e7cb5ba0b9d89f0df6ed33409dbf38beefd3654c18c1abcf0e50b5d0315ce0135a1d25
+Size (libunwind-3.9.0.src.tar.xz) = 61764 bytes

Index: pkgsrc/lang/llvm/Makefile
diff -u pkgsrc/lang/llvm/Makefile:1.6 pkgsrc/lang/llvm/Makefile:1.7
--- pkgsrc/lang/llvm/Makefile:1.6       Mon Nov 14 19:56:46 2016
+++ pkgsrc/lang/llvm/Makefile   Mon Nov 14 20:15:32 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2016/11/14 19:56:46 ryoon Exp $
+# $NetBSD: Makefile,v 1.7 2016/11/14 20:15:32 ryoon Exp $
 #
 # when updating this, please also update:
 # devel/lldb
@@ -6,7 +6,7 @@
 # lang/libLLVM
 # lang/libunwind
 
-DISTNAME=      llvm-3.8.1.src
+DISTNAME=      llvm-3.9.0.src
 PKGNAME=       ${DISTNAME:S/.src//}
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
@@ -102,7 +102,7 @@ fix-darwin-install-name:
 post-extract:
        ${RUN} mkdir -p ${WRKDIR}/build
 .for f in config.guess config.sub
-       cp ../../mk/gnu-config/${f} ${WRKSRC}/autoconf/${f}
+       cp ../../mk/gnu-config/${f} ${WRKSRC}/cmake/${f}
 .endfor
 
 .include "../../devel/zlib/buildlink3.mk"

Index: pkgsrc/lang/llvm/PLIST
diff -u pkgsrc/lang/llvm/PLIST:1.2 pkgsrc/lang/llvm/PLIST:1.3
--- pkgsrc/lang/llvm/PLIST:1.2  Tue Jul 12 11:06:48 2016
+++ pkgsrc/lang/llvm/PLIST      Mon Nov 14 20:15:32 2016
@@ -1,9 +1,10 @@
-@comment $NetBSD: PLIST,v 1.2 2016/07/12 11:06:48 jperkin Exp $
+@comment $NetBSD: PLIST,v 1.3 2016/11/14 20:15:32 ryoon Exp $
 bin/FileCheck
 bin/bugpoint
 bin/count
 bin/llc
 bin/lli
+bin/lli-child-target
 bin/llvm-PerfectShuffle
 bin/llvm-ar
 bin/llvm-as
@@ -39,6 +40,7 @@ bin/not
 bin/obj2yaml
 bin/opt
 bin/sancov
+bin/sanstats
 bin/verify-uselistorder
 bin/yaml-bench
 bin/yaml2obj
@@ -69,6 +71,7 @@ include/llvm/ADT/APInt.h
 include/llvm/ADT/APSInt.h
 include/llvm/ADT/ArrayRef.h
 include/llvm/ADT/BitVector.h
+include/llvm/ADT/BitmaskEnum.h
 include/llvm/ADT/DAGDeltaAlgorithm.h
 include/llvm/ADT/DeltaAlgorithm.h
 include/llvm/ADT/DenseMap.h
@@ -97,9 +100,11 @@ include/llvm/ADT/PointerSumType.h
 include/llvm/ADT/PointerUnion.h
 include/llvm/ADT/PostOrderIterator.h
 include/llvm/ADT/PriorityQueue.h
+include/llvm/ADT/PriorityWorklist.h
 include/llvm/ADT/SCCIterator.h
 include/llvm/ADT/STLExtras.h
 include/llvm/ADT/ScopedHashTable.h
+include/llvm/ADT/Sequence.h
 include/llvm/ADT/SetOperations.h
 include/llvm/ADT/SetVector.h
 include/llvm/ADT/SmallBitVector.h
@@ -127,6 +132,7 @@ include/llvm/ADT/ilist_node.h
 include/llvm/ADT/iterator.h
 include/llvm/ADT/iterator_range.h
 include/llvm/Analysis/AliasAnalysis.h
+include/llvm/Analysis/AliasAnalysisEvaluator.h
 include/llvm/Analysis/AliasSetTracker.h
 include/llvm/Analysis/AssumptionCache.h
 include/llvm/Analysis/BasicAliasAnalysis.h
@@ -135,7 +141,8 @@ include/llvm/Analysis/BlockFrequencyInfo
 include/llvm/Analysis/BranchProbabilityInfo.h
 include/llvm/Analysis/CFG.h
 include/llvm/Analysis/CFGPrinter.h
-include/llvm/Analysis/CFLAliasAnalysis.h
+include/llvm/Analysis/CFLAndersAliasAnalysis.h
+include/llvm/Analysis/CFLSteensAliasAnalysis.h
 include/llvm/Analysis/CGSCCPassManager.h
 include/llvm/Analysis/CallGraph.h
 include/llvm/Analysis/CallGraphSCCPass.h
@@ -153,12 +160,15 @@ include/llvm/Analysis/DominanceFrontierI
 include/llvm/Analysis/EHPersonalities.h
 include/llvm/Analysis/GlobalsModRef.h
 include/llvm/Analysis/IVUsers.h
+include/llvm/Analysis/IndirectCallPromotionAnalysis.h
+include/llvm/Analysis/IndirectCallSiteVisitor.h
 include/llvm/Analysis/InlineCost.h
 include/llvm/Analysis/InstructionSimplify.h
 include/llvm/Analysis/Interval.h
 include/llvm/Analysis/IntervalIterator.h
 include/llvm/Analysis/IntervalPartition.h
 include/llvm/Analysis/IteratedDominanceFrontier.h
+include/llvm/Analysis/LazyBlockFrequencyInfo.h
 include/llvm/Analysis/LazyCallGraph.h
 include/llvm/Analysis/LazyValueInfo.h
 include/llvm/Analysis/Lint.h
@@ -168,16 +178,21 @@ include/llvm/Analysis/LoopInfo.h
 include/llvm/Analysis/LoopInfoImpl.h
 include/llvm/Analysis/LoopIterator.h
 include/llvm/Analysis/LoopPass.h
+include/llvm/Analysis/LoopPassManager.h
+include/llvm/Analysis/LoopUnrollAnalyzer.h
 include/llvm/Analysis/MemoryBuiltins.h
 include/llvm/Analysis/MemoryDependenceAnalysis.h
 include/llvm/Analysis/MemoryLocation.h
+include/llvm/Analysis/ModuleSummaryAnalysis.h
 include/llvm/Analysis/ObjCARCAliasAnalysis.h
 include/llvm/Analysis/ObjCARCAnalysisUtils.h
 include/llvm/Analysis/ObjCARCInstKind.h
+include/llvm/Analysis/OptimizationDiagnosticInfo.h
 include/llvm/Analysis/OrderedBasicBlock.h
 include/llvm/Analysis/PHITransAddr.h
 include/llvm/Analysis/Passes.h
 include/llvm/Analysis/PostDominators.h
+include/llvm/Analysis/ProfileSummaryInfo.h
 include/llvm/Analysis/PtrUseVisitor.h
 include/llvm/Analysis/RegionInfo.h
 include/llvm/Analysis/RegionInfoImpl.h
@@ -198,6 +213,7 @@ include/llvm/Analysis/TargetTransformInf
 include/llvm/Analysis/TargetTransformInfoImpl.h
 include/llvm/Analysis/Trace.h
 include/llvm/Analysis/TypeBasedAliasAnalysis.h
+include/llvm/Analysis/TypeMetadataUtils.h
 include/llvm/Analysis/ValueTracking.h
 include/llvm/Analysis/VectorUtils.h
 include/llvm/AsmParser/Parser.h
@@ -228,6 +244,14 @@ include/llvm/CodeGen/GCMetadata.h
 include/llvm/CodeGen/GCMetadataPrinter.h
 include/llvm/CodeGen/GCStrategy.h
 include/llvm/CodeGen/GCs.h
+include/llvm/CodeGen/GlobalISel/CallLowering.h
+include/llvm/CodeGen/GlobalISel/GISelAccessor.h
+include/llvm/CodeGen/GlobalISel/IRTranslator.h
+include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
+include/llvm/CodeGen/GlobalISel/RegBankSelect.h
+include/llvm/CodeGen/GlobalISel/RegisterBank.h
+include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h
+include/llvm/CodeGen/GlobalISel/Types.h
 include/llvm/CodeGen/ISDOpcodes.h
 include/llvm/CodeGen/IntrinsicLowering.h
 include/llvm/CodeGen/LatencyPriorityQueue.h
@@ -260,6 +284,7 @@ include/llvm/CodeGen/MachineFunctionPass
 include/llvm/CodeGen/MachineInstr.h
 include/llvm/CodeGen/MachineInstrBuilder.h
 include/llvm/CodeGen/MachineInstrBundle.h
+include/llvm/CodeGen/MachineInstrBundleIterator.h
 include/llvm/CodeGen/MachineJumpTableInfo.h
 include/llvm/CodeGen/MachineLoopInfo.h
 include/llvm/CodeGen/MachineMemOperand.h
@@ -282,16 +307,19 @@ include/llvm/CodeGen/PBQP/Solution.h
 include/llvm/CodeGen/PBQPRAConstraint.h
 include/llvm/CodeGen/ParallelCG.h
 include/llvm/CodeGen/Passes.h
+include/llvm/CodeGen/PreISelIntrinsicLowering.h
 include/llvm/CodeGen/PseudoSourceValue.h
 include/llvm/CodeGen/RegAllocPBQP.h
 include/llvm/CodeGen/RegAllocRegistry.h
 include/llvm/CodeGen/RegisterClassInfo.h
 include/llvm/CodeGen/RegisterPressure.h
 include/llvm/CodeGen/RegisterScavenging.h
+include/llvm/CodeGen/RegisterUsageInfo.h
 include/llvm/CodeGen/ResourcePriorityQueue.h
 include/llvm/CodeGen/RuntimeLibcalls.h
 include/llvm/CodeGen/ScheduleDAG.h
 include/llvm/CodeGen/ScheduleDAGInstrs.h
+include/llvm/CodeGen/ScheduleDAGMutation.h
 include/llvm/CodeGen/ScheduleDFS.h
 include/llvm/CodeGen/ScheduleHazardRecognizer.h
 include/llvm/CodeGen/SchedulerRegistry.h
@@ -299,11 +327,15 @@ include/llvm/CodeGen/ScoreboardHazardRec
 include/llvm/CodeGen/SelectionDAG.h
 include/llvm/CodeGen/SelectionDAGISel.h
 include/llvm/CodeGen/SelectionDAGNodes.h
+include/llvm/CodeGen/SelectionDAGTargetInfo.h
 include/llvm/CodeGen/SlotIndexes.h
 include/llvm/CodeGen/StackMaps.h
 include/llvm/CodeGen/StackProtector.h
+include/llvm/CodeGen/TailDuplicator.h
 include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
+include/llvm/CodeGen/TargetPassConfig.h
 include/llvm/CodeGen/TargetSchedule.h
+include/llvm/CodeGen/UnreachableBlockElim.h
 include/llvm/CodeGen/ValueTypes.h
 include/llvm/CodeGen/ValueTypes.td
 include/llvm/CodeGen/VirtRegMap.h
@@ -313,19 +345,42 @@ include/llvm/Config/AsmPrinters.def
 include/llvm/Config/Disassemblers.def
 include/llvm/Config/Targets.def
 include/llvm/Config/llvm-config.h
+include/llvm/DebugInfo/CodeView/ByteStream.h
+include/llvm/DebugInfo/CodeView/CVRecord.h
+include/llvm/DebugInfo/CodeView/CVSymbolTypes.def
+include/llvm/DebugInfo/CodeView/CVSymbolVisitor.h
+include/llvm/DebugInfo/CodeView/CVTypeVisitor.h
 include/llvm/DebugInfo/CodeView/CodeView.h
+include/llvm/DebugInfo/CodeView/CodeViewError.h
 include/llvm/DebugInfo/CodeView/CodeViewOStream.h
+include/llvm/DebugInfo/CodeView/EnumTables.h
 include/llvm/DebugInfo/CodeView/FieldListRecordBuilder.h
 include/llvm/DebugInfo/CodeView/FunctionId.h
 include/llvm/DebugInfo/CodeView/Line.h
 include/llvm/DebugInfo/CodeView/ListRecordBuilder.h
 include/llvm/DebugInfo/CodeView/MemoryTypeTableBuilder.h
 include/llvm/DebugInfo/CodeView/MethodListRecordBuilder.h
+include/llvm/DebugInfo/CodeView/ModuleSubstream.h
+include/llvm/DebugInfo/CodeView/ModuleSubstreamVisitor.h
+include/llvm/DebugInfo/CodeView/RecordSerialization.h
+include/llvm/DebugInfo/CodeView/StreamArray.h
+include/llvm/DebugInfo/CodeView/StreamInterface.h
+include/llvm/DebugInfo/CodeView/StreamReader.h
+include/llvm/DebugInfo/CodeView/StreamRef.h
+include/llvm/DebugInfo/CodeView/StreamWriter.h
+include/llvm/DebugInfo/CodeView/SymbolDumpDelegate.h
+include/llvm/DebugInfo/CodeView/SymbolDumper.h
+include/llvm/DebugInfo/CodeView/SymbolRecord.h
+include/llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h
+include/llvm/DebugInfo/CodeView/TypeDumper.h
 include/llvm/DebugInfo/CodeView/TypeIndex.h
 include/llvm/DebugInfo/CodeView/TypeRecord.h
 include/llvm/DebugInfo/CodeView/TypeRecordBuilder.h
+include/llvm/DebugInfo/CodeView/TypeRecords.def
+include/llvm/DebugInfo/CodeView/TypeStreamMerger.h
 include/llvm/DebugInfo/CodeView/TypeSymbolEmitter.h
 include/llvm/DebugInfo/CodeView/TypeTableBuilder.h
+include/llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h
 include/llvm/DebugInfo/DIContext.h
 include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h
 include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
@@ -352,11 +407,13 @@ include/llvm/DebugInfo/PDB/DIA/DIAEnumDe
 include/llvm/DebugInfo/PDB/DIA/DIAEnumLineNumbers.h
 include/llvm/DebugInfo/PDB/DIA/DIAEnumSourceFiles.h
 include/llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h
+include/llvm/DebugInfo/PDB/DIA/DIAError.h
 include/llvm/DebugInfo/PDB/DIA/DIALineNumber.h
 include/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h
 include/llvm/DebugInfo/PDB/DIA/DIASession.h
 include/llvm/DebugInfo/PDB/DIA/DIASourceFile.h
 include/llvm/DebugInfo/PDB/DIA/DIASupport.h
+include/llvm/DebugInfo/PDB/GenericError.h
 include/llvm/DebugInfo/PDB/IPDBDataStream.h
 include/llvm/DebugInfo/PDB/IPDBEnumChildren.h
 include/llvm/DebugInfo/PDB/IPDBLineNumber.h
@@ -400,6 +457,34 @@ 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/DirectoryStreamData.h
+include/llvm/DebugInfo/PDB/Raw/EnumTables.h
+include/llvm/DebugInfo/PDB/Raw/Hash.h
+include/llvm/DebugInfo/PDB/Raw/IPDBFile.h
+include/llvm/DebugInfo/PDB/Raw/IPDBStreamData.h
+include/llvm/DebugInfo/PDB/Raw/ISectionContribVisitor.h
+include/llvm/DebugInfo/PDB/Raw/IndexedStreamData.h
+include/llvm/DebugInfo/PDB/Raw/InfoStream.h
+include/llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h
+include/llvm/DebugInfo/PDB/Raw/MappedBlockStream.h
+include/llvm/DebugInfo/PDB/Raw/ModInfo.h
+include/llvm/DebugInfo/PDB/Raw/ModStream.h
+include/llvm/DebugInfo/PDB/Raw/MsfBuilder.h
+include/llvm/DebugInfo/PDB/Raw/MsfCommon.h
+include/llvm/DebugInfo/PDB/Raw/NameHashTable.h
+include/llvm/DebugInfo/PDB/Raw/NameMap.h
+include/llvm/DebugInfo/PDB/Raw/NameMapBuilder.h
+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/TpiStream.h
 include/llvm/DebugInfo/Symbolize/DIPrinter.h
 include/llvm/DebugInfo/Symbolize/SymbolizableModule.h
 include/llvm/DebugInfo/Symbolize/Symbolize.h
@@ -426,7 +511,7 @@ include/llvm/ExecutionEngine/Orc/Logical
 include/llvm/ExecutionEngine/Orc/NullResolver.h
 include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h
 include/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h
-include/llvm/ExecutionEngine/Orc/OrcArchitectureSupport.h
+include/llvm/ExecutionEngine/Orc/OrcABISupport.h
 include/llvm/ExecutionEngine/Orc/OrcError.h
 include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
 include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h
@@ -464,10 +549,11 @@ include/llvm/IR/DiagnosticInfo.h
 include/llvm/IR/DiagnosticPrinter.h
 include/llvm/IR/Dominators.h
 include/llvm/IR/Function.h
-include/llvm/IR/FunctionInfo.h
 include/llvm/IR/GVMaterializer.h
 include/llvm/IR/GetElementPtrTypeIterator.h
 include/llvm/IR/GlobalAlias.h
+include/llvm/IR/GlobalIFunc.h
+include/llvm/IR/GlobalIndirectSymbol.h
 include/llvm/IR/GlobalObject.h
 include/llvm/IR/GlobalValue.h
 include/llvm/IR/GlobalVariable.h
@@ -506,13 +592,16 @@ include/llvm/IR/Metadata.def
 include/llvm/IR/Metadata.h
 include/llvm/IR/Module.h
 include/llvm/IR/ModuleSlotTracker.h
+include/llvm/IR/ModuleSummaryIndex.h
 include/llvm/IR/NoFolder.h
 include/llvm/IR/OperandTraits.h
 include/llvm/IR/Operator.h
+include/llvm/IR/OptBisect.h
 include/llvm/IR/PassManager.h
 include/llvm/IR/PassManagerInternal.h
 include/llvm/IR/PatternMatch.h
 include/llvm/IR/PredIteratorCache.h
+include/llvm/IR/ProfileSummary.h
 include/llvm/IR/Statepoint.h
 include/llvm/IR/SymbolTableListTraits.h
 include/llvm/IR/TrackingMDRef.h
@@ -530,8 +619,11 @@ include/llvm/IR/ValueSymbolTable.h
 include/llvm/IR/Verifier.h
 include/llvm/IRReader/IRReader.h
 include/llvm/InitializePasses.h
-include/llvm/LTO/LTOCodeGenerator.h
-include/llvm/LTO/LTOModule.h
+include/llvm/LTO/LTO.h
+include/llvm/LTO/legacy/LTOCodeGenerator.h
+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
@@ -547,15 +639,17 @@ include/llvm/MC/MCAsmInfoELF.h
 include/llvm/MC/MCAsmLayout.h
 include/llvm/MC/MCAssembler.h
 include/llvm/MC/MCCodeEmitter.h
-include/llvm/MC/MCCodeGenInfo.h
+include/llvm/MC/MCCodeView.h
 include/llvm/MC/MCContext.h
 include/llvm/MC/MCDirectives.h
-include/llvm/MC/MCDisassembler.h
+include/llvm/MC/MCDisassembler/MCDisassembler.h
+include/llvm/MC/MCDisassembler/MCExternalSymbolizer.h
+include/llvm/MC/MCDisassembler/MCRelocationInfo.h
+include/llvm/MC/MCDisassembler/MCSymbolizer.h
 include/llvm/MC/MCDwarf.h
 include/llvm/MC/MCELFObjectWriter.h
 include/llvm/MC/MCELFStreamer.h
 include/llvm/MC/MCExpr.h
-include/llvm/MC/MCExternalSymbolizer.h
 include/llvm/MC/MCFixedLenDisassembler.h
 include/llvm/MC/MCFixup.h
 include/llvm/MC/MCFixupKindInfo.h
@@ -580,8 +674,8 @@ include/llvm/MC/MCParser/MCAsmParser.h
 include/llvm/MC/MCParser/MCAsmParserExtension.h
 include/llvm/MC/MCParser/MCAsmParserUtils.h
 include/llvm/MC/MCParser/MCParsedAsmOperand.h
+include/llvm/MC/MCParser/MCTargetAsmParser.h
 include/llvm/MC/MCRegisterInfo.h
-include/llvm/MC/MCRelocationInfo.h
 include/llvm/MC/MCSchedule.h
 include/llvm/MC/MCSection.h
 include/llvm/MC/MCSectionCOFF.h
@@ -593,8 +687,6 @@ include/llvm/MC/MCSymbol.h
 include/llvm/MC/MCSymbolCOFF.h
 include/llvm/MC/MCSymbolELF.h
 include/llvm/MC/MCSymbolMachO.h
-include/llvm/MC/MCSymbolizer.h
-include/llvm/MC/MCTargetAsmParser.h
 include/llvm/MC/MCTargetOptions.h
 include/llvm/MC/MCTargetOptionsCommandFlags.h
 include/llvm/MC/MCValue.h
@@ -606,27 +698,29 @@ include/llvm/MC/MachineLocation.h
 include/llvm/MC/SectionKind.h
 include/llvm/MC/StringTableBuilder.h
 include/llvm/MC/SubtargetFeature.h
-include/llvm/MC/YAML.h
 include/llvm/Object/Archive.h
 include/llvm/Object/ArchiveWriter.h
 include/llvm/Object/Binary.h
 include/llvm/Object/COFF.h
 include/llvm/Object/COFFImportFile.h
-include/llvm/Object/COFFYAML.h
 include/llvm/Object/ELF.h
 include/llvm/Object/ELFObjectFile.h
 include/llvm/Object/ELFTypes.h
-include/llvm/Object/ELFYAML.h
 include/llvm/Object/Error.h
-include/llvm/Object/FunctionIndexObjectFile.h
 include/llvm/Object/IRObjectFile.h
 include/llvm/Object/MachO.h
 include/llvm/Object/MachOUniversal.h
+include/llvm/Object/ModuleSummaryIndexObjectFile.h
 include/llvm/Object/ObjectFile.h
 include/llvm/Object/RelocVisitor.h
 include/llvm/Object/StackMapParser.h
 include/llvm/Object/SymbolSize.h
 include/llvm/Object/SymbolicFile.h
+include/llvm/ObjectYAML/COFFYAML.h
+include/llvm/ObjectYAML/ELFYAML.h
+include/llvm/ObjectYAML/MachOYAML.h
+include/llvm/ObjectYAML/ObjectYAML.h
+include/llvm/ObjectYAML/YAML.h
 include/llvm/Option/Arg.h
 include/llvm/Option/ArgList.h
 include/llvm/Option/OptParser.td
@@ -639,17 +733,18 @@ include/llvm/PassInfo.h
 include/llvm/PassRegistry.h
 include/llvm/PassSupport.h
 include/llvm/Passes/PassBuilder.h
-include/llvm/ProfileData/CoverageMapping.h
-include/llvm/ProfileData/CoverageMappingReader.h
-include/llvm/ProfileData/CoverageMappingWriter.h
+include/llvm/ProfileData/Coverage/CoverageMapping.h
+include/llvm/ProfileData/Coverage/CoverageMappingReader.h
+include/llvm/ProfileData/Coverage/CoverageMappingWriter.h
 include/llvm/ProfileData/InstrProf.h
 include/llvm/ProfileData/InstrProfData.inc
 include/llvm/ProfileData/InstrProfReader.h
 include/llvm/ProfileData/InstrProfWriter.h
+include/llvm/ProfileData/ProfileCommon.h
 include/llvm/ProfileData/SampleProf.h
 include/llvm/ProfileData/SampleProfReader.h
 include/llvm/ProfileData/SampleProfWriter.h
-include/llvm/Support/AIXDataTypesFix.h
+include/llvm/Support/AArch64TargetParser.def
 include/llvm/Support/ARMBuildAttributes.h
 include/llvm/Support/ARMEHABI.h
 include/llvm/Support/ARMTargetParser.def
@@ -658,14 +753,17 @@ include/llvm/Support/AlignOf.h
 include/llvm/Support/Allocator.h
 include/llvm/Support/ArrayRecycler.h
 include/llvm/Support/Atomic.h
+include/llvm/Support/AtomicOrdering.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
 include/llvm/Support/Casting.h
 include/llvm/Support/CodeGen.h
+include/llvm/Support/CodeGenCWrappers.h
 include/llvm/Support/CommandLine.h
 include/llvm/Support/Compiler.h
 include/llvm/Support/Compression.h
@@ -681,9 +779,12 @@ include/llvm/Support/Dwarf.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
@@ -696,6 +797,7 @@ include/llvm/Support/Endian.h
 include/llvm/Support/EndianStream.h
 include/llvm/Support/Errc.h
 include/llvm/Support/Errno.h
+include/llvm/Support/Error.h
 include/llvm/Support/ErrorHandling.h
 include/llvm/Support/ErrorOr.h
 include/llvm/Support/FileOutputBuffer.h
@@ -715,6 +817,7 @@ include/llvm/Support/LineIterator.h
 include/llvm/Support/Locale.h
 include/llvm/Support/LockFileManager.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
@@ -739,10 +842,11 @@ include/llvm/Support/Recycler.h
 include/llvm/Support/RecyclingAllocator.h
 include/llvm/Support/Regex.h
 include/llvm/Support/Registry.h
-include/llvm/Support/RegistryParser.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/SourceMgr.h
@@ -762,6 +866,7 @@ include/llvm/Support/TimeValue.h
 include/llvm/Support/Timer.h
 include/llvm/Support/ToolOutputFile.h
 include/llvm/Support/TrailingObjects.h
+include/llvm/Support/TypeName.h
 include/llvm/Support/Unicode.h
 include/llvm/Support/UnicodeCharRanges.h
 include/llvm/Support/UniqueLock.h
@@ -774,16 +879,19 @@ include/llvm/Support/YAMLTraits.h
 include/llvm/Support/circular_raw_ostream.h
 include/llvm/Support/raw_os_ostream.h
 include/llvm/Support/raw_ostream.h
+include/llvm/Support/raw_sha1_ostream.h
 include/llvm/Support/thread.h
 include/llvm/Support/type_traits.h
 include/llvm/TableGen/Error.h
 include/llvm/TableGen/Main.h
 include/llvm/TableGen/Record.h
+include/llvm/TableGen/SearchableTable.td
 include/llvm/TableGen/SetTheory.h
 include/llvm/TableGen/StringMatcher.h
 include/llvm/TableGen/StringToOffsetTable.h
 include/llvm/TableGen/TableGenBackend.h
 include/llvm/Target/CostTable.h
+include/llvm/Target/GenericOpcodes.td
 include/llvm/Target/Target.td
 include/llvm/Target/TargetCallingConv.h
 include/llvm/Target/TargetCallingConv.td
@@ -794,33 +902,75 @@ include/llvm/Target/TargetItinerary.td
 include/llvm/Target/TargetLowering.h
 include/llvm/Target/TargetLoweringObjectFile.h
 include/llvm/Target/TargetMachine.h
+include/llvm/Target/TargetOpcodes.def
 include/llvm/Target/TargetOpcodes.h
 include/llvm/Target/TargetOptions.h
 include/llvm/Target/TargetRecip.h
 include/llvm/Target/TargetRegisterInfo.h
 include/llvm/Target/TargetSchedule.td
 include/llvm/Target/TargetSelectionDAG.td
-include/llvm/Target/TargetSelectionDAGInfo.h
 include/llvm/Target/TargetSubtargetInfo.h
+include/llvm/Transforms/GCOVProfiler.h
 include/llvm/Transforms/IPO.h
+include/llvm/Transforms/IPO/ConstantMerge.h
+include/llvm/Transforms/IPO/CrossDSOCFI.h
+include/llvm/Transforms/IPO/DeadArgumentElimination.h
+include/llvm/Transforms/IPO/ElimAvailExtern.h
 include/llvm/Transforms/IPO/ForceFunctionAttrs.h
+include/llvm/Transforms/IPO/FunctionAttrs.h
 include/llvm/Transforms/IPO/FunctionImport.h
+include/llvm/Transforms/IPO/GlobalDCE.h
+include/llvm/Transforms/IPO/GlobalOpt.h
 include/llvm/Transforms/IPO/InferFunctionAttrs.h
 include/llvm/Transforms/IPO/InlinerPass.h
-include/llvm/Transforms/IPO/LowerBitSets.h
+include/llvm/Transforms/IPO/Internalize.h
+include/llvm/Transforms/IPO/LowerTypeTests.h
+include/llvm/Transforms/IPO/PartialInlining.h
 include/llvm/Transforms/IPO/PassManagerBuilder.h
+include/llvm/Transforms/IPO/SCCP.h
 include/llvm/Transforms/IPO/StripDeadPrototypes.h
+include/llvm/Transforms/IPO/WholeProgramDevirt.h
 include/llvm/Transforms/InstCombine/InstCombine.h
 include/llvm/Transforms/InstCombine/InstCombineWorklist.h
+include/llvm/Transforms/InstrProfiling.h
 include/llvm/Transforms/Instrumentation.h
 include/llvm/Transforms/ObjCARC.h
+include/llvm/Transforms/PGOInstrumentation.h
+include/llvm/Transforms/SampleProfile.h
 include/llvm/Transforms/Scalar.h
 include/llvm/Transforms/Scalar/ADCE.h
+include/llvm/Transforms/Scalar/AlignmentFromAssumptions.h
+include/llvm/Transforms/Scalar/BDCE.h
+include/llvm/Transforms/Scalar/ConstantHoisting.h
+include/llvm/Transforms/Scalar/CorrelatedValuePropagation.h
+include/llvm/Transforms/Scalar/DCE.h
+include/llvm/Transforms/Scalar/DeadStoreElimination.h
 include/llvm/Transforms/Scalar/EarlyCSE.h
+include/llvm/Transforms/Scalar/Float2Int.h
+include/llvm/Transforms/Scalar/GVN.h
+include/llvm/Transforms/Scalar/GuardWidening.h
+include/llvm/Transforms/Scalar/IndVarSimplify.h
+include/llvm/Transforms/Scalar/JumpThreading.h
+include/llvm/Transforms/Scalar/LICM.h
+include/llvm/Transforms/Scalar/LoopDeletion.h
+include/llvm/Transforms/Scalar/LoopDistribute.h
+include/llvm/Transforms/Scalar/LoopIdiomRecognize.h
+include/llvm/Transforms/Scalar/LoopInstSimplify.h
+include/llvm/Transforms/Scalar/LoopRotation.h
+include/llvm/Transforms/Scalar/LoopSimplifyCFG.h
+include/llvm/Transforms/Scalar/LowerAtomic.h
 include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h
+include/llvm/Transforms/Scalar/MemCpyOptimizer.h
+include/llvm/Transforms/Scalar/MergedLoadStoreMotion.h
+include/llvm/Transforms/Scalar/PartiallyInlineLibCalls.h
+include/llvm/Transforms/Scalar/Reassociate.h
+include/llvm/Transforms/Scalar/SCCP.h
 include/llvm/Transforms/Scalar/SROA.h
 include/llvm/Transforms/Scalar/SimplifyCFG.h
+include/llvm/Transforms/Scalar/Sink.h
+include/llvm/Transforms/Scalar/TailRecursionElimination.h
 include/llvm/Transforms/Utils/ASanStackFrameLayout.h
+include/llvm/Transforms/Utils/AddDiscriminators.h
 include/llvm/Transforms/Utils/BasicBlockUtils.h
 include/llvm/Transforms/Utils/BuildLibCalls.h
 include/llvm/Transforms/Utils/BypassSlowDivision.h
@@ -828,16 +978,24 @@ include/llvm/Transforms/Utils/Cloning.h
 include/llvm/Transforms/Utils/CmpInstAnalysis.h
 include/llvm/Transforms/Utils/CodeExtractor.h
 include/llvm/Transforms/Utils/CtorUtils.h
+include/llvm/Transforms/Utils/Evaluator.h
+include/llvm/Transforms/Utils/FunctionImportUtils.h
 include/llvm/Transforms/Utils/GlobalStatus.h
 include/llvm/Transforms/Utils/IntegerDivision.h
+include/llvm/Transforms/Utils/LCSSA.h
 include/llvm/Transforms/Utils/Local.h
+include/llvm/Transforms/Utils/LoopSimplify.h
 include/llvm/Transforms/Utils/LoopUtils.h
 include/llvm/Transforms/Utils/LoopVersioning.h
+include/llvm/Transforms/Utils/Mem2Reg.h
+include/llvm/Transforms/Utils/MemorySSA.h
 include/llvm/Transforms/Utils/ModuleUtils.h
 include/llvm/Transforms/Utils/PromoteMemToReg.h
 include/llvm/Transforms/Utils/SSAUpdater.h
 include/llvm/Transforms/Utils/SSAUpdaterImpl.h
+include/llvm/Transforms/Utils/SanitizerStats.h
 include/llvm/Transforms/Utils/SimplifyIndVar.h
+include/llvm/Transforms/Utils/SimplifyInstructions.h
 include/llvm/Transforms/Utils/SimplifyLibCalls.h
 include/llvm/Transforms/Utils/SplitModule.h
 include/llvm/Transforms/Utils/SymbolRewriter.h
@@ -845,8 +1003,34 @@ include/llvm/Transforms/Utils/UnifyFunct
 include/llvm/Transforms/Utils/UnrollLoop.h
 include/llvm/Transforms/Utils/ValueMapper.h
 include/llvm/Transforms/Vectorize.h
+include/llvm/Transforms/Vectorize/LoopVectorize.h
+include/llvm/Transforms/Vectorize/SLPVectorizer.h
 lib/BugpointPasses.${SOEXT}
 lib/LLVMHello.${SOEXT}
+lib/cmake/llvm/AddLLVM.cmake
+lib/cmake/llvm/AddLLVMDefinitions.cmake
+lib/cmake/llvm/AddOCaml.cmake
+lib/cmake/llvm/AddSphinxTarget.cmake
+lib/cmake/llvm/CheckCompilerVersion.cmake
+lib/cmake/llvm/ChooseMSVCCRT.cmake
+lib/cmake/llvm/CrossCompile.cmake
+lib/cmake/llvm/DetermineGCCCompatible.cmake
+lib/cmake/llvm/FindOCaml.cmake
+lib/cmake/llvm/FindSphinx.cmake
+lib/cmake/llvm/GenerateVersionFromCVS.cmake
+lib/cmake/llvm/GetSVN.cmake
+lib/cmake/llvm/HandleLLVMOptions.cmake
+lib/cmake/llvm/HandleLLVMStdlib.cmake
+lib/cmake/llvm/LLVM-Config.cmake
+lib/cmake/llvm/LLVMConfig.cmake
+lib/cmake/llvm/LLVMConfigVersion.cmake
+lib/cmake/llvm/LLVMExports-release.cmake
+lib/cmake/llvm/LLVMExports.cmake
+lib/cmake/llvm/LLVMExternalProjectUtils.cmake
+lib/cmake/llvm/LLVMInstallSymlink.cmake
+lib/cmake/llvm/LLVMProcessSources.cmake
+lib/cmake/llvm/TableGen.cmake
+lib/cmake/llvm/VersionFromVCS.cmake
 ${PLIST.AArch64}lib/libLLVMAArch64AsmParser.a
 ${PLIST.AArch64}lib/libLLVMAArch64AsmPrinter.a
 ${PLIST.AArch64}lib/libLLVMAArch64CodeGen.a
@@ -858,6 +1042,7 @@ ${PLIST.AMDGPU}lib/libLLVMAMDGPUAsmParse
 ${PLIST.AMDGPU}lib/libLLVMAMDGPUAsmPrinter.a
 ${PLIST.AMDGPU}lib/libLLVMAMDGPUCodeGen.a
 ${PLIST.AMDGPU}lib/libLLVMAMDGPUDesc.a
+${PLIST.AMDGPU}lib/libLLVMAMDGPUDisassembler.a
 ${PLIST.AMDGPU}lib/libLLVMAMDGPUInfo.a
 ${PLIST.AMDGPU}lib/libLLVMAMDGPUUtils.a
 ${PLIST.ARM}lib/libLLVMARMAsmParser.a
@@ -877,12 +1062,12 @@ lib/libLLVMBitReader.a
 lib/libLLVMBitWriter.a
 lib/libLLVMCodeGen.a
 lib/libLLVMCore.a
-${PLIST.CppBackend}lib/libLLVMCppBackendCodeGen.a
-${PLIST.CppBackend}lib/libLLVMCppBackendInfo.a
+lib/libLLVMCoverage.a
 lib/libLLVMDebugInfoCodeView.a
 lib/libLLVMDebugInfoDWARF.a
 lib/libLLVMDebugInfoPDB.a
 lib/libLLVMExecutionEngine.a
+lib/libLLVMGlobalISel.a
 ${PLIST.Hexagon}lib/libLLVMHexagonAsmParser.a
 ${PLIST.Hexagon}lib/libLLVMHexagonCodeGen.a
 ${PLIST.Hexagon}lib/libLLVMHexagonDesc.a
@@ -917,6 +1102,7 @@ ${PLIST.NVPTX}lib/libLLVMNVPTXDesc.a
 ${PLIST.NVPTX}lib/libLLVMNVPTXInfo.a
 lib/libLLVMObjCARCOpts.a
 lib/libLLVMObject.a
+lib/libLLVMObjectYAML.a
 lib/libLLVMOption.a
 lib/libLLVMOrcJIT.a
 lib/libLLVMPasses.a
@@ -962,24 +1148,3 @@ ${PLIST.XCore}lib/libLLVMXCoreDisassembl
 ${PLIST.XCore}lib/libLLVMXCoreInfo.a
 lib/libLLVMipo.a
 lib/libLTO.${SOEXT}
-share/llvm/cmake/AddLLVM.cmake
-share/llvm/cmake/AddLLVMDefinitions.cmake
-share/llvm/cmake/AddOCaml.cmake
-share/llvm/cmake/AddSphinxTarget.cmake
-share/llvm/cmake/ChooseMSVCCRT.cmake
-share/llvm/cmake/CrossCompile.cmake
-share/llvm/cmake/DetermineGCCCompatible.cmake
-share/llvm/cmake/FindOCaml.cmake
-share/llvm/cmake/FindSphinx.cmake
-share/llvm/cmake/GetSVN.cmake
-share/llvm/cmake/HandleLLVMOptions.cmake
-share/llvm/cmake/HandleLLVMStdlib.cmake
-share/llvm/cmake/LLVM-Config.cmake
-share/llvm/cmake/LLVMConfig.cmake
-share/llvm/cmake/LLVMConfigVersion.cmake
-share/llvm/cmake/LLVMExports-release.cmake
-share/llvm/cmake/LLVMExports.cmake
-share/llvm/cmake/LLVMExternalProjectUtils.cmake
-share/llvm/cmake/LLVMInstallSymlink.cmake
-share/llvm/cmake/LLVMProcessSources.cmake
-share/llvm/cmake/TableGen.cmake

Index: pkgsrc/lang/llvm/buildlink3.mk
diff -u pkgsrc/lang/llvm/buildlink3.mk:1.1 pkgsrc/lang/llvm/buildlink3.mk:1.2
--- pkgsrc/lang/llvm/buildlink3.mk:1.1  Thu Mar 10 15:01:52 2016
+++ pkgsrc/lang/llvm/buildlink3.mk      Mon Nov 14 20:15:32 2016
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.1 2016/03/10 15:01:52 tnn Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2016/11/14 20:15:32 ryoon Exp $
 
 BUILDLINK_TREE+=       llvm
 
 .if !defined(LLVM_BUILDLINK3_MK)
 LLVM_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.llvm+=   llvm>=3.8.0
+BUILDLINK_API_DEPENDS.llvm+=   llvm>=3.9.0
 BUILDLINK_PKGSRCDIR.llvm?=     ../../lang/llvm
 
 LLVM_CONFIG_PATH?=             ${BUILDLINK_PREFIX.llvm}/bin/llvm-config
Index: pkgsrc/lang/llvm/options.mk
diff -u pkgsrc/lang/llvm/options.mk:1.1 pkgsrc/lang/llvm/options.mk:1.2
--- pkgsrc/lang/llvm/options.mk:1.1     Thu Mar 10 15:01:52 2016
+++ pkgsrc/lang/llvm/options.mk Mon Nov 14 20:15:32 2016
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.1 2016/03/10 15:01:52 tnn Exp $
+# $NetBSD: options.mk,v 1.2 2016/11/14 20:15:32 ryoon Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.llvm
 
-LLVM_TARGETS=  AArch64 AMDGPU ARM BPF CppBackend Hexagon MSP430 Mips NVPTX PowerPC Sparc SystemZ X86 XCore
+LLVM_TARGETS=  AArch64 AMDGPU ARM BPF Hexagon MSP430 Mips NVPTX PowerPC Sparc SystemZ X86 XCore
 
 .for tgt in ${LLVM_TARGETS}
 PLIST_VARS+=                   ${tgt}

Index: pkgsrc/lang/llvm/distinfo
diff -u pkgsrc/lang/llvm/distinfo:1.3 pkgsrc/lang/llvm/distinfo:1.4
--- pkgsrc/lang/llvm/distinfo:1.3       Tue Jul 26 12:43:51 2016
+++ pkgsrc/lang/llvm/distinfo   Mon Nov 14 20:15:32 2016
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.3 2016/07/26 12:43:51 wiz Exp $
+$NetBSD: distinfo,v 1.4 2016/11/14 20:15:32 ryoon Exp $
 
-SHA1 (llvm-3.8.1.src.tar.xz) = e0c48c4c182424b99999367d688cd8ce7876827b
-RMD160 (llvm-3.8.1.src.tar.xz) = 5e4d2193e7d58abaa70ab53e67b6fe058b781e6a
-SHA512 (llvm-3.8.1.src.tar.xz) = 99bbb2cc5f337fd5edf1621f8028c8cb74011aa4af2531018dc05409b27f7b8d0c2f76a00115f677f7c013029d5d9f55d085a5b40433409aac4e9161d53bd366
-Size (llvm-3.8.1.src.tar.xz) = 16551472 bytes
+SHA1 (llvm-3.9.0.src.tar.xz) = da792f11a208d5b994c4fe1c8faa20f90ff0e4a3
+RMD160 (llvm-3.9.0.src.tar.xz) = bbde781a914f6cd7fab3f71745fc576b2e7e23c9
+SHA512 (llvm-3.9.0.src.tar.xz) = f18ae32531218ab156c3e56c11826be0fd05f0799c82eaf2e6a043b38e1277560b4d921987513b88b11d97ea2619feaf277eec72181dd2ae4f4108c2836bf7b2
+Size (llvm-3.9.0.src.tar.xz) = 18235716 bytes
 SHA1 (patch-cmake_modules_AddLLVM.cmake) = ec89e9469115b22feeb106e1c36b36af1f079576
-SHA1 (patch-include_llvm_Support_Host.h) = 55a9fab6ee49ec09a2fd644747a6dddd6b39f942
+SHA1 (patch-include_llvm_Support_Host.h) = ad6ac520f15bba96ab887c962fb717e22aaee7bf

Index: pkgsrc/lang/llvm/patches/patch-include_llvm_Support_Host.h
diff -u pkgsrc/lang/llvm/patches/patch-include_llvm_Support_Host.h:1.1 pkgsrc/lang/llvm/patches/patch-include_llvm_Support_Host.h:1.2
--- pkgsrc/lang/llvm/patches/patch-include_llvm_Support_Host.h:1.1      Thu Mar 10 15:01:52 2016
+++ pkgsrc/lang/llvm/patches/patch-include_llvm_Support_Host.h  Mon Nov 14 20:15:33 2016
@@ -1,13 +1,13 @@
-$NetBSD: patch-include_llvm_Support_Host.h,v 1.1 2016/03/10 15:01:52 tnn Exp $
+$NetBSD: patch-include_llvm_Support_Host.h,v 1.2 2016/11/14 20:15:33 ryoon Exp $
 
 Fix lack of machine/endian.h on solaris
 http://permalink.gmane.org/gmane.comp.compilers.llvm.devel/63225
 
---- include/llvm/Support/Host.h.orig   2015-06-23 09:49:53.000000000 +0000
+--- include/llvm/Support/Host.h.orig   2016-02-26 17:01:45.000000000 +0000
 +++ include/llvm/Support/Host.h
 @@ -18,6 +18,20 @@
  
- #if defined(__linux__) || defined(__GNU__)
+ #if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__)
  #include <endian.h>
 +#elif defined(__sun) & defined(__SVR4)
 +# ifndef BYTE_ORDER



Home | Main Index | Thread Index | Old Index