git: e048f78b2143 - main - Merge llvm-project release/16.x llvmorg-16.0.6-0-g7cbf1a259152

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Thu, 22 Jun 2023 21:11:40 UTC
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=e048f78b21438144bab781f2ba9ee33a2aae6772

commit e048f78b21438144bab781f2ba9ee33a2aae6772
Merge: cf24393421ca 23e196feed9f
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-06-22 17:47:54 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-06-22 18:22:59 +0000

    Merge llvm-project release/16.x llvmorg-16.0.6-0-g7cbf1a259152
    
    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvmorg-16.0.6-0-g7cbf1a259152 (aka 16.0.6 release).
    
    PR:             271047
    MFC after:      1 month

 contrib/llvm-project/libcxx/include/__config    |     2 +-
 lib/clang/freebsd_cc_version.h                  |     2 -
 lib/clang/include/Plugins/Plugins.def           |     1 -
 lib/clang/include/VCSVersion.inc                |     8 +-
 lib/clang/include/clang/Basic/Version.inc       |     8 +-
 lib/clang/include/clang/Config/config.h         |     1 -
 lib/clang/include/lld/Common/Version.inc        |     2 +-
 lib/clang/include/lldb/Host/Config.h            |     1 -
 lib/clang/include/lldb/Version/Version.inc      |     6 +-
 lib/clang/include/llvm/Config/AsmParsers.def    |     2 -
 lib/clang/include/llvm/Config/AsmPrinters.def   |     2 -
 lib/clang/include/llvm/Config/Disassemblers.def |     2 -
 lib/clang/include/llvm/Config/TargetMCAs.def    |     2 -
 lib/clang/include/llvm/Config/Targets.def       |     2 -
 lib/clang/include/llvm/Config/abi-breaking.h    |     1 -
 lib/clang/include/llvm/Config/config.h          |     5 +-
 lib/clang/include/llvm/Config/llvm-config.h     |     5 +-
 lib/clang/include/llvm/Support/Extension.def    |     1 -
 lib/clang/include/llvm/Support/VCSRevision.h    |     3 +-
 lib/clang/liblldb/LLDBWrapLua.cpp               | 82074 +++++++++++-----------
 lib/clang/llvm.pre.mk                           |     1 -
 21 files changed, 41074 insertions(+), 41057 deletions(-)

diff --cc lib/clang/freebsd_cc_version.h
index 6b094f383083,000000000000..82830fe2baee
mode 100644,000000..100644
--- a/lib/clang/freebsd_cc_version.h
+++ b/lib/clang/freebsd_cc_version.h
@@@ -1,3 -1,0 +1,1 @@@
- /* $FreeBSD$ */
- 
 +#define	FREEBSD_CC_VERSION		1400005
diff --cc lib/clang/include/Plugins/Plugins.def
index 55ff6eae7c07,000000000000..a1224b71fc75
mode 100644,000000..100644
--- a/lib/clang/include/Plugins/Plugins.def
+++ b/lib/clang/include/Plugins/Plugins.def
@@@ -1,80 -1,0 +1,79 @@@
- // $FreeBSD$
 +/*===- lldb/source/Plugin/Plugins.def ---------------------------*- C++ -*-===*\
 +|*                                                                            *|
 +|* Part of the LLVM Project, under the Apache License v2.0 with LLVM          *|
 +|* Exceptions.                                                                *|
 +|* See https://llvm.org/LICENSE.txt for license information.                  *|
 +|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception                    *|
 +|*                                                                            *|
 +|*===----------------------------------------------------------------------===*|
 +|*                                                                            *|
 +|* This file enumerates all of the plugins supported by this build of LLDB.   *|
 +|* Clients of this file should define the LLDB_PLUGIN macro to be a           *|
 +|* function-like macro with a single parameter (the name of the plugin)       *|
 +|* including this file will then enumerate all of the plugins. Script         *|
 +|* interpreter plugins can be enumerated separately by defining               *|
 +|* LLDB_SCRIPT_PLUGIN in which case they are not part of LLDB_PLUGIN.         *|
 +|*                                                                            *|
 +|*                                                                            *|
 +|* The set of plugins supported by LLDB is generated at configuration         *|
 +|* time, at which point this header is generated. Do not modify this          *|
 +|* header directly.                                                           *|
 +|*                                                                            *|
 +\*===----------------------------------------------------------------------===*/
 +
 +#ifndef LLDB_PLUGIN
 +#  error Please define the macro LLDB_PLUGIN(PluginName)
 +#endif
 +
 +#ifndef LLDB_SCRIPT_PLUGIN
 +#define LLDB_SCRIPT_PLUGIN(p) LLDB_PLUGIN(p)
 +#endif
 +
 +LLDB_PLUGIN(ABIAArch64)
 +LLDB_PLUGIN(ABIARM)
 +LLDB_PLUGIN(ABIMips)
 +LLDB_PLUGIN(ABIPowerPC)
 +LLDB_PLUGIN(ABIX86)
 +LLDB_PLUGIN(ArchitectureArm)
 +LLDB_PLUGIN(ArchitectureMips)
 +LLDB_PLUGIN(ArchitecturePPC64)
 +LLDB_PLUGIN(ArchitectureAArch64)
 +LLDB_PLUGIN(DisassemblerLLVMC)
 +LLDB_PLUGIN(DynamicLoaderPosixDYLD)
 +LLDB_PLUGIN(DynamicLoaderStatic)
 +LLDB_PLUGIN(InstructionARM)
 +LLDB_PLUGIN(InstructionARM64)
 +LLDB_PLUGIN(InstructionMIPS)
 +LLDB_PLUGIN(InstructionMIPS64)
 +LLDB_PLUGIN(InstructionPPC64)
 +LLDB_PLUGIN(InstructionRISCV)
 +LLDB_PLUGIN(InstrumentationRuntimeASan)
 +LLDB_PLUGIN(InstrumentationRuntimeMainThreadChecker)
 +LLDB_PLUGIN(InstrumentationRuntimeTSan)
 +LLDB_PLUGIN(InstrumentationRuntimeUBSan)
 +LLDB_PLUGIN(JITLoaderGDB)
 +LLDB_PLUGIN(CPlusPlusLanguage)
 +LLDB_PLUGIN(CXXItaniumABI)
 +LLDB_PLUGIN(MemoryHistoryASan)
 +LLDB_PLUGIN(ObjectContainerBSDArchive)
 +LLDB_PLUGIN(ObjectFileBreakpad)
 +LLDB_PLUGIN(ObjectFileELF)
 +LLDB_PLUGIN(ObjectFileJIT)
 +LLDB_PLUGIN(PlatformFreeBSD)
 +LLDB_PLUGIN(PlatformGDB)
 +LLDB_PLUGIN(ScriptedProcess)
 +LLDB_PLUGIN(ProcessElfCore)
 +LLDB_PLUGIN(ProcessFreeBSDKernel)
 +LLDB_SCRIPT_PLUGIN(ScriptInterpreterNone)
 +LLDB_SCRIPT_PLUGIN(ScriptInterpreterLua)
 +LLDB_PLUGIN(SymbolFileBreakpad)
 +LLDB_PLUGIN(SymbolFileDWARF)
 +LLDB_PLUGIN(SymbolFileSymtab)
 +LLDB_PLUGIN(SymbolVendorELF)
 +LLDB_PLUGIN(TypeSystemClang)
 +LLDB_PLUGIN(UnwindAssemblyInstEmulation)
 +LLDB_PLUGIN(UnwindAssemblyX86)
 +LLDB_PLUGIN(ProcessGDBRemote)
 +
 +#undef LLDB_PLUGIN
 +#undef LLDB_SCRIPT_PLUGIN
diff --cc lib/clang/include/VCSVersion.inc
index 1daa9c25ab45,000000000000..598871260c01
mode 100644,000000..100644
--- a/lib/clang/include/VCSVersion.inc
+++ b/lib/clang/include/VCSVersion.inc
@@@ -1,10 -1,0 +1,8 @@@
- // $FreeBSD$
- 
- #define LLVM_REVISION "llvmorg-16.0.5-0-g185b81e034ba"
++#define LLVM_REVISION "llvmorg-16.0.6-0-g7cbf1a259152"
 +#define LLVM_REPOSITORY "https://github.com/llvm/llvm-project.git"
 +
- #define CLANG_REVISION "llvmorg-16.0.5-0-g185b81e034ba"
++#define CLANG_REVISION "llvmorg-16.0.6-0-g7cbf1a259152"
 +#define CLANG_REPOSITORY "https://github.com/llvm/llvm-project.git"
 +
- #define LLDB_REVISION "llvmorg-16.0.5-0-g185b81e034ba"
++#define LLDB_REVISION "llvmorg-16.0.6-0-g7cbf1a259152"
 +#define LLDB_REPOSITORY "https://github.com/llvm/llvm-project.git"
diff --cc lib/clang/include/clang/Basic/Version.inc
index e99bc8fb4f95,000000000000..d5aa1ce51f33
mode 100644,000000..100644
--- a/lib/clang/include/clang/Basic/Version.inc
+++ b/lib/clang/include/clang/Basic/Version.inc
@@@ -1,10 -1,0 +1,8 @@@
- /* $FreeBSD$ */
- 
- #define	CLANG_VERSION			16.0.5
- #define	CLANG_VERSION_STRING		"16.0.5"
++#define	CLANG_VERSION			16.0.6
++#define	CLANG_VERSION_STRING		"16.0.6"
 +#define	CLANG_VERSION_MAJOR		16
 +#define	CLANG_VERSION_MAJOR_STRING	"16"
 +#define	CLANG_VERSION_MINOR		0
- #define	CLANG_VERSION_PATCHLEVEL	5
++#define	CLANG_VERSION_PATCHLEVEL	6
 +
 +#define	CLANG_VENDOR			"FreeBSD "
diff --cc lib/clang/include/clang/Config/config.h
index 0cd1e12a4108,000000000000..b2c85aa23d19
mode 100644,000000..100644
--- a/lib/clang/include/clang/Config/config.h
+++ b/lib/clang/include/clang/Config/config.h
@@@ -1,81 -1,0 +1,80 @@@
- /* $FreeBSD$ */
 +/* This generated file is for internal use. Do not include it from headers. */
 +
 +#ifdef CLANG_CONFIG_H
 +#error config.h can only be included once
 +#else
 +#define CLANG_CONFIG_H
 +
 +/* Bug report URL. */
 +#define BUG_REPORT_URL "https://bugs.freebsd.org/submit/"
 +
 +/* Default to -fPIE and -pie on Linux. */
 +#define CLANG_DEFAULT_PIE_ON_LINUX 1
 +
 +/* Default linker to use. */
 +#define CLANG_DEFAULT_LINKER ""
 +
 +/* Default C++ stdlib to use. */
 +#define CLANG_DEFAULT_CXX_STDLIB ""
 +
 +/* Default runtime library to use. */
 +#define CLANG_DEFAULT_RTLIB ""
 +
 +/* Default unwind library to use. */
 +#define CLANG_DEFAULT_UNWINDLIB ""
 +
 +/* Default objcopy to use */
 +#define CLANG_DEFAULT_OBJCOPY "objcopy"
 +
 +/* Default OpenMP runtime used by -fopenmp. */
 +#define CLANG_DEFAULT_OPENMP_RUNTIME "libomp"
 +
 +/* Default architecture for SystemZ. */
 +#define CLANG_SYSTEMZ_DEFAULT_ARCH "z10"
 +
 +/* Multilib basename for libdir. */
 +#define CLANG_INSTALL_LIBDIR_BASENAME "lib"
 +
 +/* Relative directory for resource files */
 +#define CLANG_RESOURCE_DIR ""
 +
 +/* Directories clang will search for headers */
 +#define C_INCLUDE_DIRS ""
 +
 +/* Directories clang will search for configuration files */
 +/* #undef CLANG_CONFIG_FILE_SYSTEM_DIR */
 +/* #undef CLANG_CONFIG_FILE_USER_DIR */
 +
 +/* Default <path> to all compiler invocations for --sysroot=<path>. */
 +/* #undef DEFAULT_SYSROOT */
 +
 +/* Directory where gcc is installed. */
 +#define GCC_INSTALL_PREFIX ""
 +
 +/* Define if we have libxml2 */
 +/* #undef CLANG_HAVE_LIBXML */
 +
 +/* Define if we have sys/resource.h (rlimits) */
 +#define CLANG_HAVE_RLIMITS 1
 +
 +/* Linker version detected at compile time. */
 +/* #undef HOST_LINK_VERSION */
 +
 +/* pass --build-id to ld */
 +/* #undef ENABLE_LINKER_BUILD_ID */
 +
 +/* enable x86 relax relocations by default */
 +#define ENABLE_X86_RELAX_RELOCATIONS 1
 +
 +/* Enable IEEE binary128 as default long double format on PowerPC Linux. */
 +#define PPC_LINUX_DEFAULT_IEEELONGDOUBLE 0
 +
 +/* Enable each functionality of modules */
 +/* #undef CLANG_ENABLE_ARCMT */
 +/* #undef CLANG_ENABLE_OBJC_REWRITER */
 +/* #undef CLANG_ENABLE_STATIC_ANALYZER */
 +
 +/* Spawn a new process clang.exe for the CC1 tool invocation, when necessary */
 +#define CLANG_SPAWN_CC1 0
 +
 +#endif
diff --cc lib/clang/include/lld/Common/Version.inc
index f6061c3e6784,000000000000..20810f686dad
mode 100644,000000..100644
--- a/lib/clang/include/lld/Common/Version.inc
+++ b/lib/clang/include/lld/Common/Version.inc
@@@ -1,4 -1,0 +1,4 @@@
 +// Local identifier in __FreeBSD_version style
 +#define LLD_FREEBSD_VERSION 1400006
 +
- #define LLD_VERSION_STRING "16.0.5 (FreeBSD llvmorg-16.0.5-0-g185b81e034ba-" __XSTRING(LLD_FREEBSD_VERSION) ")"
++#define LLD_VERSION_STRING "16.0.6 (FreeBSD llvmorg-16.0.6-0-g7cbf1a259152-" __XSTRING(LLD_FREEBSD_VERSION) ")"
diff --cc lib/clang/include/lldb/Host/Config.h
index 0e855b6b09c6,000000000000..8f6bdf58790e
mode 100644,000000..100644
--- a/lib/clang/include/lldb/Host/Config.h
+++ b/lib/clang/include/lldb/Host/Config.h
@@@ -1,59 -1,0 +1,58 @@@
- // $FreeBSD$
 +//===-- Config.h -----------------------------------------------*- C++ -*-===//
 +//
 +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 +// See https://llvm.org/LICENSE.txt for license information.
 +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 +//
 +//===----------------------------------------------------------------------===//
 +
 +#ifndef LLDB_HOST_CONFIG_H
 +#define LLDB_HOST_CONFIG_H
 +
 +#define LLDB_EDITLINE_USE_WCHAR 1
 +
 +#define LLDB_HAVE_EL_RFUNC_T 1
 +
 +#define HAVE_SYS_EVENT_H 1
 +
 +#define HAVE_PPOLL 1
 +
 +#define HAVE_PTSNAME_R 1
 +
 +#define HAVE_PROCESS_VM_READV 0
 +
 +#define HAVE_NR_PROCESS_VM_READV 0
 +
 +#ifndef HAVE_LIBCOMPRESSION
 +/* #undef HAVE_LIBCOMPRESSION */
 +#endif
 +
 +#define LLDB_ENABLE_POSIX 1
 +
 +#define LLDB_ENABLE_TERMIOS 1
 +
 +#define LLDB_ENABLE_LZMA 1
 +
 +#define LLDB_ENABLE_CURSES 1
 +
 +#define CURSES_HAVE_NCURSES_CURSES_H 0
 +
 +#define LLDB_ENABLE_LIBEDIT 1
 +
 +#define LLDB_ENABLE_LIBXML2 0
 +
 +#define LLDB_ENABLE_LUA 1
 +
 +#define LLDB_ENABLE_PYTHON 0
 +
 +#define LLDB_ENABLE_FBSDVMCORE 0
 +
 +#define LLDB_EMBED_PYTHON_HOME 0
 +
 +/* #undef LLDB_PYTHON_HOME */
 +
 +#define LLDB_INSTALL_LIBDIR_BASENAME "lib"
 +
 +/* #undef LLDB_GLOBAL_INIT_DIRECTORY */
 +
 +#endif // #ifndef LLDB_HOST_CONFIG_H
diff --cc lib/clang/include/lldb/Version/Version.inc
index 982e4714b182,000000000000..99f8a8e09dea
mode 100644,000000..100644
--- a/lib/clang/include/lldb/Version/Version.inc
+++ b/lib/clang/include/lldb/Version/Version.inc
@@@ -1,6 -1,0 +1,6 @@@
- #define LLDB_VERSION 16.0.5
- #define LLDB_VERSION_STRING "16.0.5"
++#define LLDB_VERSION 16.0.6
++#define LLDB_VERSION_STRING "16.0.6"
 +#define LLDB_VERSION_MAJOR 16
 +#define LLDB_VERSION_MINOR 0
- #define LLDB_VERSION_PATCH 5
++#define LLDB_VERSION_PATCH 6
 +/* #undef LLDB_FULL_VERSION_STRING */
diff --cc lib/clang/include/llvm/Config/AsmParsers.def
index d0924c0914f3,000000000000..e37ea136a87b
mode 100644,000000..100644
--- a/lib/clang/include/llvm/Config/AsmParsers.def
+++ b/lib/clang/include/llvm/Config/AsmParsers.def
@@@ -1,32 -1,0 +1,30 @@@
- /* $FreeBSD$ */
- 
 +#ifndef LLVM_ASM_PARSER
 +#  error Please define the macro LLVM_ASM_PARSER(TargetName)
 +#endif
 +
 +#ifdef LLVM_TARGET_ENABLE_AARCH64
 +LLVM_ASM_PARSER(AArch64)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_ARM
 +LLVM_ASM_PARSER(ARM)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_BPF
 +LLVM_ASM_PARSER(BPF)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_MIPS
 +LLVM_ASM_PARSER(Mips)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_POWERPC
 +LLVM_ASM_PARSER(PowerPC)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_RISCV
 +LLVM_ASM_PARSER(RISCV)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_SPARC
 +LLVM_ASM_PARSER(Sparc)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_X86
 +LLVM_ASM_PARSER(X86)
 +#endif
 +
 +#undef LLVM_ASM_PARSER
diff --cc lib/clang/include/llvm/Config/AsmPrinters.def
index 2a335aa93b42,000000000000..819a52bc29e2
mode 100644,000000..100644
--- a/lib/clang/include/llvm/Config/AsmPrinters.def
+++ b/lib/clang/include/llvm/Config/AsmPrinters.def
@@@ -1,32 -1,0 +1,30 @@@
- /* $FreeBSD$ */
- 
 +#ifndef LLVM_ASM_PRINTER
 +#  error Please define the macro LLVM_ASM_PRINTER(TargetName)
 +#endif
 +
 +#ifdef LLVM_TARGET_ENABLE_AARCH64
 +LLVM_ASM_PRINTER(AArch64)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_ARM
 +LLVM_ASM_PRINTER(ARM)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_BPF
 +LLVM_ASM_PRINTER(BPF)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_MIPS
 +LLVM_ASM_PRINTER(Mips)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_POWERPC
 +LLVM_ASM_PRINTER(PowerPC)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_RISCV
 +LLVM_ASM_PRINTER(RISCV)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_SPARC
 +LLVM_ASM_PRINTER(Sparc)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_X86
 +LLVM_ASM_PRINTER(X86)
 +#endif
 +
 +#undef LLVM_ASM_PRINTER
diff --cc lib/clang/include/llvm/Config/Disassemblers.def
index 756ff37b4bf8,000000000000..90ab73d82294
mode 100644,000000..100644
--- a/lib/clang/include/llvm/Config/Disassemblers.def
+++ b/lib/clang/include/llvm/Config/Disassemblers.def
@@@ -1,32 -1,0 +1,30 @@@
- /* $FreeBSD$ */
- 
 +#ifndef LLVM_DISASSEMBLER
 +#  error Please define the macro LLVM_DISASSEMBLER(TargetName)
 +#endif
 +
 +#ifdef LLVM_TARGET_ENABLE_AARCH64
 +LLVM_DISASSEMBLER(AArch64)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_ARM
 +LLVM_DISASSEMBLER(ARM)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_BPF
 +LLVM_DISASSEMBLER(BPF)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_MIPS
 +LLVM_DISASSEMBLER(Mips)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_POWERPC
 +LLVM_DISASSEMBLER(PowerPC)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_RISCV
 +LLVM_DISASSEMBLER(RISCV)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_SPARC
 +LLVM_DISASSEMBLER(Sparc)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_X86
 +LLVM_DISASSEMBLER(X86)
 +#endif
 +
 +#undef LLVM_DISASSEMBLER
diff --cc lib/clang/include/llvm/Config/TargetMCAs.def
index be6edaf3dd69,000000000000..e7d4e60c0098
mode 100644,000000..100644
--- a/lib/clang/include/llvm/Config/TargetMCAs.def
+++ b/lib/clang/include/llvm/Config/TargetMCAs.def
@@@ -1,14 -1,0 +1,12 @@@
- /* $FreeBSD$ */
- 
 +#ifndef LLVM_TARGETMCA
 +#  error Please define the macro LLVM_TARGETMCA(TargetName)
 +#endif
 +
 +#ifdef LLVM_TARGET_ENABLE_RISCV
 +LLVM_TARGETMCA(RISCV)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_X86
 +LLVM_TARGETMCA(X86)
 +#endif
 +
 +#undef LLVM_TARGETMCA
diff --cc lib/clang/include/llvm/Config/Targets.def
index b6cb6fee9dce,000000000000..a9a64ccd4202
mode 100644,000000..100644
--- a/lib/clang/include/llvm/Config/Targets.def
+++ b/lib/clang/include/llvm/Config/Targets.def
@@@ -1,32 -1,0 +1,30 @@@
- /* $FreeBSD$ */
- 
 +#ifndef LLVM_TARGET
 +#  error Please define the macro LLVM_TARGET(TargetName)
 +#endif
 +
 +#ifdef LLVM_TARGET_ENABLE_AARCH64
 +LLVM_TARGET(AArch64)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_ARM
 +LLVM_TARGET(ARM)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_BPF
 +LLVM_TARGET(BPF)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_MIPS
 +LLVM_TARGET(Mips)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_POWERPC
 +LLVM_TARGET(PowerPC)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_RISCV
 +LLVM_TARGET(RISCV)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_SPARC
 +LLVM_TARGET(Sparc)
 +#endif
 +#ifdef LLVM_TARGET_ENABLE_X86
 +LLVM_TARGET(X86)
 +#endif
 +
 +#undef LLVM_TARGET
diff --cc lib/clang/include/llvm/Config/abi-breaking.h
index 1254d6218db3,000000000000..eb90be1fe37b
mode 100644,000000..100644
--- a/lib/clang/include/llvm/Config/abi-breaking.h
+++ b/lib/clang/include/llvm/Config/abi-breaking.h
@@@ -1,63 -1,0 +1,62 @@@
- /* $FreeBSD$ */
 +/*===------- llvm/Config/abi-breaking.h - llvm configuration -------*- C -*-===*/
 +/*                                                                            */
 +/* Part of the LLVM Project, under the Apache License v2.0 with LLVM          */
 +/* Exceptions.                                                                */
 +/* See https://llvm.org/LICENSE.txt for license information.                  */
 +/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception                    */
 +/*                                                                            */
 +/*===----------------------------------------------------------------------===*/
 +
 +/* This file controls the C++ ABI break introduced in LLVM public header. */
 +
 +#ifndef LLVM_ABI_BREAKING_CHECKS_H
 +#define LLVM_ABI_BREAKING_CHECKS_H
 +
 +/* Define to enable checks that alter the LLVM C++ ABI */
 +#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
 +
 +/* Define to enable reverse iteration of unordered llvm containers */
 +#define LLVM_ENABLE_REVERSE_ITERATION 0
 +
 +/* Allow selectively disabling link-time mismatch checking so that header-only
 +   ADT content from LLVM can be used without linking libSupport. */
 +#if !defined(LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING) || !LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING
 +
 +// ABI_BREAKING_CHECKS protection: provides link-time failure when clients build
 +// mismatch with LLVM
 +#if defined(_MSC_VER)
 +// Use pragma with MSVC
 +#define LLVM_XSTR(s) LLVM_STR(s)
 +#define LLVM_STR(s) #s
 +#pragma detect_mismatch("LLVM_ENABLE_ABI_BREAKING_CHECKS", LLVM_XSTR(LLVM_ENABLE_ABI_BREAKING_CHECKS))
 +#undef LLVM_XSTR
 +#undef LLVM_STR
 +#elif defined(_WIN32) || defined(__CYGWIN__) // Win32 w/o #pragma detect_mismatch
 +// FIXME: Implement checks without weak.
 +#elif defined(__cplusplus)
 +#if !(defined(_AIX) && defined(__GNUC__) && !defined(__clang__))
 +#define LLVM_HIDDEN_VISIBILITY __attribute__ ((visibility("hidden")))
 +#else
 +// GCC on AIX does not support visibility attributes. Symbols are not
 +// exported by default on AIX.
 +#define LLVM_HIDDEN_VISIBILITY
 +#endif
 +namespace llvm {
 +#if LLVM_ENABLE_ABI_BREAKING_CHECKS
 +extern int EnableABIBreakingChecks;
 +LLVM_HIDDEN_VISIBILITY
 +__attribute__((weak)) int *VerifyEnableABIBreakingChecks =
 +    &EnableABIBreakingChecks;
 +#else
 +extern int DisableABIBreakingChecks;
 +LLVM_HIDDEN_VISIBILITY
 +__attribute__((weak)) int *VerifyDisableABIBreakingChecks =
 +    &DisableABIBreakingChecks;
 +#endif
 +}
 +#undef LLVM_HIDDEN_VISIBILITY
 +#endif // _MSC_VER
 +
 +#endif // LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING
 +
 +#endif
diff --cc lib/clang/include/llvm/Config/config.h
index d97252910e45,000000000000..78af3cbddcd1
mode 100644,000000..100644
--- a/lib/clang/include/llvm/Config/config.h
+++ b/lib/clang/include/llvm/Config/config.h
@@@ -1,380 -1,0 +1,379 @@@
- /* $FreeBSD$ */
 +#ifndef CONFIG_H
 +#define CONFIG_H
 +
 +// Include this header only under the llvm source tree.
 +// This is a private header.
 +
 +/* Exported configuration */
 +#include "llvm/Config/llvm-config.h"
 +
 +/* Bug report URL. */
 +#define BUG_REPORT_URL "https://bugs.freebsd.org/submit/"
 +
 +/* Define to 1 to enable backtraces, and to 0 otherwise. */
 +#define ENABLE_BACKTRACES 1
 +
 +/* Define to 1 to enable crash overrides, and to 0 otherwise. */
 +#define ENABLE_CRASH_OVERRIDES 1
 +
 +/* Define to 1 to enable crash memory dumps, and to 0 otherwise. */
 +#define LLVM_ENABLE_CRASH_DUMPS 0
 +
 +/* Define to 1 to prefer forward slashes on Windows, and to 0 prefer
 +   backslashes. */
 +#define LLVM_WINDOWS_PREFER_FORWARD_SLASH 0
 +
 +/* Define to 1 if you have the `backtrace' function. */
 +#define HAVE_BACKTRACE TRUE
 +
 +#define BACKTRACE_HEADER <execinfo.h>
 +
 +/* Define to 1 if you have the <CrashReporterClient.h> header file. */
 +/* #undef HAVE_CRASHREPORTERCLIENT_H */
 +
 +/* can use __crashreporter_info__ */
 +#if defined(__APPLE__)
 +#define HAVE_CRASHREPORTER_INFO 1
 +#else
 +#define HAVE_CRASHREPORTER_INFO 0
 +#endif
 +
 +/* Define to 1 if you have the declaration of `arc4random', and to 0 if you
 +   don't. */
 +#define HAVE_DECL_ARC4RANDOM 1
 +
 +/* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you
 +   don't. */
 +#define HAVE_DECL_FE_ALL_EXCEPT 1
 +
 +/* Define to 1 if you have the declaration of `FE_INEXACT', and to 0 if you
 +   don't. */
 +#define HAVE_DECL_FE_INEXACT 1
 +
 +/* Define to 1 if you have the declaration of `strerror_s', and to 0 if you
 +   don't. */
 +#define HAVE_DECL_STRERROR_S 0
 +
 +/* Define to 1 if you have the <dlfcn.h> header file. */
 +#define HAVE_DLFCN_H 1
 +
 +/* Define if dlopen() is available on this platform. */
 +#define HAVE_DLOPEN 1
 +
 +/* Define if dladdr() is available on this platform. */
 +#define HAVE_DLADDR 1
 +
 +#if !defined(__arm__) || defined(__USING_SJLJ_EXCEPTIONS__) || defined(__ARM_DWARF_EH__)
 +/* Define to 1 if we can register EH frames on this platform. */
 +#define HAVE_REGISTER_FRAME 1
 +
 +/* Define to 1 if we can deregister EH frames on this platform. */
 +#define HAVE_DEREGISTER_FRAME 1
 +#endif // !arm || USING_SJLJ_EXCEPTIONS || ARM_DWARF_EH_
 +
 +/* Define if __unw_add_dynamic_fde() is available on this platform. */
 +/* #undef HAVE_UNW_ADD_DYNAMIC_FDE */
 +
 +/* Define to 1 if you have the <errno.h> header file. */
 +#define HAVE_ERRNO_H 1
 +
 +/* Define to 1 if you have the <fcntl.h> header file. */
 +#define HAVE_FCNTL_H 1
 +
 +/* Define to 1 if you have the <fenv.h> header file. */
 +#define HAVE_FENV_H 1
 +
 +/* Define if libffi is available on this platform. */
 +/* #undef HAVE_FFI_CALL */
 +
 +/* Define to 1 if you have the <ffi/ffi.h> header file. */
 +/* #undef HAVE_FFI_FFI_H */
 +
 +/* Define to 1 if you have the <ffi.h> header file. */
 +/* #undef HAVE_FFI_H */
 +
 +/* Define to 1 if you have the `futimens' function. */
 +#define HAVE_FUTIMENS 1
 +
 +/* Define to 1 if you have the `futimes' function. */
 +#define HAVE_FUTIMES 1
 +
 +/* Define to 1 if you have the `getpagesize' function. */
 +#define HAVE_GETPAGESIZE 1
 +
 +/* Define to 1 if you have the `getrlimit' function. */
 +#define HAVE_GETRLIMIT 1
 +
 +/* Define to 1 if you have the `getrusage' function. */
 +#define HAVE_GETRUSAGE 1
 +
 +/* Define to 1 if you have the `isatty' function. */
 +#define HAVE_ISATTY 1
 +
 +/* Define to 1 if you have the `edit' library (-ledit). */
 +#define HAVE_LIBEDIT TRUE
 +
 +/* Define to 1 if you have the `pfm' library (-lpfm). */
 +/* #undef HAVE_LIBPFM */
 +
 +/* Define to 1 if the `perf_branch_entry' struct has field cycles. */
 +/* #undef LIBPFM_HAS_FIELD_CYCLES */
 +
 +/* Define to 1 if you have the `psapi' library (-lpsapi). */
 +/* #undef HAVE_LIBPSAPI */
 +
 +/* Define to 1 if you have the `pthread' library (-lpthread). */
 +#define HAVE_LIBPTHREAD 1
 +
 +/* Define to 1 if you have the `pthread_getname_np' function. */
 +#define HAVE_PTHREAD_GETNAME_NP 1
 +
 +/* Define to 1 if you have the `pthread_setname_np' function. */
 +#define HAVE_PTHREAD_SETNAME_NP 1
 +
 +/* Define to 1 if you have the <link.h> header file. */
 +#if __has_include(<link.h>)
 +#define HAVE_LINK_H 1
 +#else
 +#define HAVE_LINK_H 0
 +#endif
 +
 +/* Define to 1 if you have the <mach/mach.h> header file. */
 +#if __has_include(<mach/mach.h>)
 +#define HAVE_MACH_MACH_H 1
 +#endif
 +
 +/* Define to 1 if you have the `mallctl' function. */
 +#if defined(__FreeBSD__)
 +#define HAVE_MALLCTL 1
 +#endif
 +
 +/* Define to 1 if you have the `mallinfo' function. */
 +#if defined(__linux__)
 +#define HAVE_MALLINFO 1
 +#endif
 +
 +/* Define to 1 if you have the `mallinfo2' function. */
 +/* #undef HAVE_MALLINFO2 */
 +
 +/* Define to 1 if you have the <malloc/malloc.h> header file. */
 +#if __has_include(<malloc/malloc.h>)
 +#define HAVE_MALLOC_MALLOC_H 1
 +#endif
 +
 +/* Define to 1 if you have the `malloc_zone_statistics' function. */
 +#if defined(__APPLE__)
 +#define HAVE_MALLOC_ZONE_STATISTICS 1
 +#endif
 +
 +/* Define to 1 if you have the `posix_spawn' function. */
 +#define HAVE_POSIX_SPAWN 1
 +
 +/* Define to 1 if you have the `pread' function. */
 +#define HAVE_PREAD 1
 +
 +/* Define to 1 if you have the <pthread.h> header file. */
 +#define HAVE_PTHREAD_H 1
 +
 +/* Have pthread_mutex_lock */
 +#define HAVE_PTHREAD_MUTEX_LOCK 1
 +
 +/* Have pthread_rwlock_init */
 +#define HAVE_PTHREAD_RWLOCK_INIT 1
 +
 +/* Define to 1 if you have the `sbrk' function. */
 +#define HAVE_SBRK 1
 +
 +/* Define to 1 if you have the `setenv' function. */
 +#define HAVE_SETENV 1
 +
 +/* Define to 1 if you have the `setrlimit' function. */
 +#define HAVE_SETRLIMIT 1
 +
 +/* Define to 1 if you have the `sigaltstack' function. */
 +#define HAVE_SIGALTSTACK 1
 +
 +/* Define to 1 if you have the <signal.h> header file. */
 +#define HAVE_SIGNAL_H 1
 +
 +/* Define to 1 if you have the `strerror' function. */
 +#define HAVE_STRERROR 1
 +
 +/* Define to 1 if you have the `strerror_r' function. */
 +#define HAVE_STRERROR_R 1
 +
 +/* Define to 1 if you have the `sysconf' function. */
 +#define HAVE_SYSCONF 1
 +
 +/* Define to 1 if you have the <sys/ioctl.h> header file. */
 +#define HAVE_SYS_IOCTL_H 1
 +
 +/* Define to 1 if you have the <sys/mman.h> header file. */
 +#define HAVE_SYS_MMAN_H 1
 +
 +/* Define to 1 if you have the <sys/param.h> header file. */
 +#define HAVE_SYS_PARAM_H 1
 +
 +/* Define to 1 if you have the <sys/resource.h> header file. */
 +#define HAVE_SYS_RESOURCE_H 1
 +
 +/* Define to 1 if you have the <sys/stat.h> header file. */
 +#define HAVE_SYS_STAT_H 1
 +
 +/* Define to 1 if you have the <sys/time.h> header file. */
 +#define HAVE_SYS_TIME_H 1
 +
 +/* Define to 1 if stat struct has st_mtimespec member .*/
 +#if !defined(__linux__)
 +#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1
 +#endif
 +
 +/* Define to 1 if stat struct has st_mtim member. */
 +#if !defined(__APPLE__)
 +#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
 +#endif
 +
 +/* Define to 1 if you have the <sys/types.h> header file. */
 +#define HAVE_SYS_TYPES_H 1
 +
 +/* Define if the setupterm() function is supported this platform. */
 +#if defined(__FreeBSD__)
 +/*
 + * This is only needed for terminalHasColors(). When disabled LLVM falls back
 + * to checking a list of TERM prefixes which is sufficient for a bootstrap tool.
 + */
 +#define LLVM_ENABLE_TERMINFO TRUE
 +#endif
 +
 +/* Define to 1 if you have the <termios.h> header file. */
 +#define HAVE_TERMIOS_H 1
 +
 +/* Define to 1 if you have the <unistd.h> header file. */
 +#define HAVE_UNISTD_H 1
 +
 +/* Define to 1 if you have the <valgrind/valgrind.h> header file. */
 +/* #undef HAVE_VALGRIND_VALGRIND_H */
 +
 +/* Have host's _alloca */
 +/* #undef HAVE__ALLOCA */
 +
 +/* Define to 1 if you have the `_chsize_s' function. */
 +/* #undef HAVE__CHSIZE_S */
 +
 +/* Define to 1 if you have the `_Unwind_Backtrace' function. */
 +#define HAVE__UNWIND_BACKTRACE 1
 +
 +/* Have host's __alloca */
 +/* #undef HAVE___ALLOCA */
 +
 +/* Have host's __ashldi3 */
 +/* #undef HAVE___ASHLDI3 */
 +
 +/* Have host's __ashrdi3 */
 +/* #undef HAVE___ASHRDI3 */
 +
 +/* Have host's __chkstk */
 +/* #undef HAVE___CHKSTK */
 +
 +/* Have host's __chkstk_ms */
 +/* #undef HAVE___CHKSTK_MS */
 +
 +/* Have host's __cmpdi2 */
 +/* #undef HAVE___CMPDI2 */
 +
 +/* Have host's __divdi3 */
 +/* #undef HAVE___DIVDI3 */
 +
 +/* Have host's __fixdfdi */
 +/* #undef HAVE___FIXDFDI */
 +
 +/* Have host's __fixsfdi */
 +/* #undef HAVE___FIXSFDI */
 +
 +/* Have host's __floatdidf */
 +/* #undef HAVE___FLOATDIDF */
 +
 +/* Have host's __lshrdi3 */
 +/* #undef HAVE___LSHRDI3 */
 +
 +/* Have host's __main */
 +/* #undef HAVE___MAIN */
 +
 +/* Have host's __moddi3 */
 +/* #undef HAVE___MODDI3 */
 +
 +/* Have host's __udivdi3 */
 +/* #undef HAVE___UDIVDI3 */
 +
 +/* Have host's __umoddi3 */
 +/* #undef HAVE___UMODDI3 */
 +
 +/* Have host's ___chkstk */
 +/* #undef HAVE____CHKSTK */
 +
 +/* Have host's ___chkstk_ms */
 +/* #undef HAVE____CHKSTK_MS */
 +
 +/* Linker version detected at compile time. */
 +/* #undef HOST_LINK_VERSION */
 +
 +/* Define if overriding target triple is enabled */
 +/* #undef LLVM_TARGET_TRIPLE_ENV */
 +
 +/* Whether tools show host and target info when invoked with --version */
 +#define LLVM_VERSION_PRINTER_SHOW_HOST_TARGET_INFO 1
 +
 +/* Define if libxml2 is supported on this platform. */
 +/* #undef LLVM_ENABLE_LIBXML2 */
 +
 +/* Define to the extension used for shared libraries, say, ".so". */
 +#if defined(__APPLE__)
 +#define LTDL_SHLIB_EXT ".dylib"
 +#else
 +#define LTDL_SHLIB_EXT ".so"
 +#endif
 +
 +/* Define to the extension used for plugin libraries, say, ".so". */
 +#if defined(__APPLE__)
 +#define LLVM_PLUGIN_EXT ".dylib"
 +#else
 +#define LLVM_PLUGIN_EXT ".so"
 +#endif
 +
 +/* Define to the address where bug reports for this package should be sent. */
 +#define PACKAGE_BUGREPORT "https://bugs.freebsd.org/submit/"
 +
 +/* Define to the full name of this package. */
 +#define PACKAGE_NAME "LLVM"
 +
 +/* Define to the full name and version of this package. */
- #define PACKAGE_STRING "LLVM 16.0.5"
++#define PACKAGE_STRING "LLVM 16.0.6"
 +
 +/* Define to the version of this package. */
- #define PACKAGE_VERSION "16.0.5"
++#define PACKAGE_VERSION "16.0.6"
 +
 +/* Define to the vendor of this package. */
 +/* #undef PACKAGE_VENDOR */
 +
 +/* Define to a function implementing stricmp */
 +/* #undef stricmp */
 +
 +/* Define to a function implementing strdup */
 +/* #undef strdup */
 +
 +/* Whether GlobalISel rule coverage is being collected */
 +#define LLVM_GISEL_COV_ENABLED 0
 +
 +/* Define to the default GlobalISel coverage file prefix */
 +/* #undef LLVM_GISEL_COV_PREFIX */
 +
 +/* Whether Timers signpost passes in Xcode Instruments */
 +#if defined(__APPLE__)
 +#define LLVM_SUPPORT_XCODE_SIGNPOSTS 1
 +#else
 +#define LLVM_SUPPORT_XCODE_SIGNPOSTS 0
 +#endif
 +
 +/* #undef HAVE_PROC_PID_RUSAGE */
 +
 +#endif
diff --cc lib/clang/include/llvm/Config/llvm-config.h
index 82d246c949f0,000000000000..cdf493029a3a
mode 100644,000000..100644
--- a/lib/clang/include/llvm/Config/llvm-config.h
+++ b/lib/clang/include/llvm/Config/llvm-config.h
*** 116408 LINES SKIPPED ***