mirror of
https://github.com/opnsense/src.git
synced 2026-05-25 02:35:01 -04:00
Merge llvm-project main llvmorg-12-init-17869-g8e464dd76bef This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-12-init-17869-g8e464dd76bef, the last commit before the upstream release/12.x branch was created. PR: 255570 (cherry picked from commite8d8bef961) Merge llvm-project 12.0.0 release This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-12.0.0-0-gd28af7c654d8, a.k.a. 12.0.0 release. PR: 255570 (cherry picked from commitd409305fa3) Disable strict-fp for powerpcspe, as it does not work properly yet Merge commit 5c18d1136665 from llvm git (by Qiu Chaofan) [SPE] Disable strict-fp for SPE by default As discussed in PR50385, strict-fp on PowerPC SPE has not been handled well. This patch disables it by default for SPE. Reviewed By: nemanjai, vit9696, jhibbits Differential Revision: https://reviews.llvm.org/D103235 PR: 255570 (cherry picked from commit715df83abc) Apply upstream libc++ fix to allow building with devel/xxx-xtoolchain-gcc Merge commit 52e9d80d5db2 from llvm git (by Jason Liu): [libc++] add `inline` for __open's definition in ifstream and ofstream Summary: When building with gcc on AIX, it seems that gcc does not like the `always_inline` without the `inline` keyword. So adding the inline keywords in for __open in ifstream and ofstream. That will also make it consistent with __open in basic_filebuf (it seems we added `inline` there before for gcc build as well). Differential Revision: https://reviews.llvm.org/D99422 PR: 255570 (cherry picked from commitd099db2546) Undefine HAVE_(DE)REGISTER_FRAME in llvm's config.h on arm Otherwise, the lli tool (enable by WITH_CLANG_EXTRAS) won't link on arm, stating that __register_frame is undefined. This function is normally provided by libunwind, but explicitly not for the ARM Exception ABI. Reported by: oh PR: 255570 (cherry picked from commitf336b45e94) Merge llvm-project 12.0.1 rc2 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-12.0.1-rc2-0-ge7dac564cd0e, a.k.a. 12.0.1 rc2. PR: 255570 (cherry picked from commit23408297fb) Revert libunwind change to fix backtrace segfault on aarch64 Revert commit 22b615a96593 from llvm git (by Daniel Kiss): [libunwind] Support for leaf function unwinding. Unwinding leaf function is useful in cases when the backtrace finds a leaf function for example when it caused a signal. This patch also add the support for the DW_CFA_undefined because it marks the end of the frames. Ryan Prichard provided code for the tests. Reviewed By: #libunwind, mstorsjo Differential Revision: https://reviews.llvm.org/D83573 Reland with limit the test to the x86_64-linux target. Bisection has shown that this particular upstream commit causes programs using backtrace(3) on aarch64 to segfault. This affects the lang/rust port, for instance. Until we can upstream to fix this problem, revert the commit for now. Reported by: mikael PR: 256864 (cherry picked from commit5866c369e4) Merge llvm-project 12.0.1 release This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-12.0.1-0-gfed41342a82f, a.k.a. 12.0.1 release. PR: 255570 (cherry picked from commit4652422eb4) compilert-rt: build out-of-line LSE atomics helpers for aarch64 Both clang >= 12 and gcc >= 10.1 now default to -moutline-atomics for aarch64. This requires a bunch of helper functions in libcompiler_rt.a, to avoid link errors like "undefined symbol: __aarch64_ldadd8_acq_rel". (Note: of course you can use -mno-outline-atomics as a workaround too, but this would negate the potential performance benefit of the faster LSE instructions.) Bump __FreeBSD_version so ports maintainers can easily detect this. PR: 257392 (cherry picked from commitcc55ee8009)
130 lines
4 KiB
C
130 lines
4 KiB
C
// $FreeBSD$
|
|
/*
|
|
* kmp_config.h -- Feature macros
|
|
*/
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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 KMP_CONFIG_H
|
|
#define KMP_CONFIG_H
|
|
|
|
#include "kmp_platform.h"
|
|
|
|
// cmakedefine01 MACRO will define MACRO as either 0 or 1
|
|
// cmakedefine MACRO 1 will define MACRO as 1 or leave undefined
|
|
#define DEBUG_BUILD 0
|
|
#define RELWITHDEBINFO_BUILD 0
|
|
#define LIBOMP_USE_ITT_NOTIFY 1
|
|
#define USE_ITT_NOTIFY LIBOMP_USE_ITT_NOTIFY
|
|
#if ! LIBOMP_USE_ITT_NOTIFY
|
|
# define INTEL_NO_ITTNOTIFY_API
|
|
#endif
|
|
#define LIBOMP_USE_VERSION_SYMBOLS 1
|
|
#if LIBOMP_USE_VERSION_SYMBOLS
|
|
# define KMP_USE_VERSION_SYMBOLS
|
|
#endif
|
|
#define LIBOMP_HAVE_WEAK_ATTRIBUTE 1
|
|
#define KMP_HAVE_WEAK_ATTRIBUTE LIBOMP_HAVE_WEAK_ATTRIBUTE
|
|
#define LIBOMP_HAVE_PSAPI 0
|
|
#define KMP_HAVE_PSAPI LIBOMP_HAVE_PSAPI
|
|
#define LIBOMP_STATS 0
|
|
#define KMP_STATS_ENABLED LIBOMP_STATS
|
|
#define LIBOMP_HAVE_X86INTRIN_H 0
|
|
#define KMP_HAVE_X86INTRIN_H LIBOMP_HAVE_X86INTRIN_H
|
|
#define LIBOMP_HAVE___BUILTIN_READCYCLECOUNTER 0
|
|
#define KMP_HAVE___BUILTIN_READCYCLECOUNTER LIBOMP_HAVE___BUILTIN_READCYCLECOUNTER
|
|
#define LIBOMP_HAVE___RDTSC 0
|
|
#define KMP_HAVE___RDTSC LIBOMP_HAVE___RDTSC
|
|
#define LIBOMP_USE_DEBUGGER 0
|
|
#define USE_DEBUGGER LIBOMP_USE_DEBUGGER
|
|
#define LIBOMP_OMPT_DEBUG 0
|
|
#define OMPT_DEBUG LIBOMP_OMPT_DEBUG
|
|
#define LIBOMP_OMPT_SUPPORT 1
|
|
#define OMPT_SUPPORT LIBOMP_OMPT_SUPPORT
|
|
#define LIBOMP_PROFILING_SUPPORT 0
|
|
#define OMP_PROFILING_SUPPORT LIBOMP_PROFILING_SUPPORT
|
|
#define LIBOMP_OMPT_OPTIONAL 1
|
|
#define OMPT_OPTIONAL LIBOMP_OMPT_OPTIONAL
|
|
#define LIBOMP_USE_ADAPTIVE_LOCKS 1
|
|
#define KMP_USE_ADAPTIVE_LOCKS LIBOMP_USE_ADAPTIVE_LOCKS
|
|
#define KMP_DEBUG_ADAPTIVE_LOCKS 0
|
|
#define LIBOMP_USE_INTERNODE_ALIGNMENT 0
|
|
#define KMP_USE_INTERNODE_ALIGNMENT LIBOMP_USE_INTERNODE_ALIGNMENT
|
|
#define LIBOMP_ENABLE_ASSERTIONS 1
|
|
#define KMP_USE_ASSERT LIBOMP_ENABLE_ASSERTIONS
|
|
#define LIBOMP_USE_HIER_SCHED 0
|
|
#define KMP_USE_HIER_SCHED LIBOMP_USE_HIER_SCHED
|
|
#define STUBS_LIBRARY 0
|
|
#define LIBOMP_USE_HWLOC 0
|
|
#define KMP_USE_HWLOC LIBOMP_USE_HWLOC
|
|
#define LIBOMP_ENABLE_SHARED 1
|
|
#define KMP_DYNAMIC_LIB LIBOMP_ENABLE_SHARED
|
|
#define KMP_ARCH_STR "Intel(R) 64"
|
|
#define KMP_LIBRARY_FILE "libomp.so"
|
|
#define KMP_VERSION_MAJOR 5
|
|
#define KMP_VERSION_MINOR 0
|
|
#define LIBOMP_TSAN_SUPPORT 0
|
|
#if LIBOMP_TSAN_SUPPORT
|
|
#define TSAN_SUPPORT
|
|
#endif
|
|
#define MSVC 0
|
|
#define KMP_MSVC_COMPAT MSVC
|
|
#define LIBOMP_HAVE_WAITPKG_INTRINSICS 1
|
|
#define KMP_HAVE_WAITPKG_INTRINSICS LIBOMP_HAVE_WAITPKG_INTRINSICS
|
|
#define LIBOMP_HAVE_RTM_INTRINSICS 1
|
|
#define KMP_HAVE_RTM_INTRINSICS LIBOMP_HAVE_RTM_INTRINSICS
|
|
#define LIBOMP_HAVE_IMMINTRIN_H 1
|
|
#define KMP_HAVE_IMMINTRIN_H LIBOMP_HAVE_IMMINTRIN_H
|
|
#define LIBOMP_HAVE_INTRIN_H 0
|
|
#define KMP_HAVE_INTRIN_H LIBOMP_HAVE_INTRIN_H
|
|
#define LIBOMP_HAVE_ATTRIBUTE_WAITPKG 1
|
|
#define KMP_HAVE_ATTRIBUTE_WAITPKG LIBOMP_HAVE_ATTRIBUTE_WAITPKG
|
|
#define LIBOMP_HAVE_ATTRIBUTE_RTM 1
|
|
#define KMP_HAVE_ATTRIBUTE_RTM LIBOMP_HAVE_ATTRIBUTE_RTM
|
|
#define LIBOMP_ARCH_AARCH64_A64FX 0
|
|
#define KMP_ARCH_AARCH64_A64FX LIBOMP_ARCH_AARCH64_A64FX
|
|
|
|
// Configured cache line based on architecture
|
|
#if KMP_ARCH_PPC64
|
|
# define CACHE_LINE 128
|
|
#elif KMP_ARCH_AARCH64_A64FX
|
|
# define CACHE_LINE 256
|
|
#else
|
|
# define CACHE_LINE 64
|
|
#endif
|
|
|
|
#if ! KMP_32_BIT_ARCH
|
|
# define BUILD_I8 1
|
|
#endif
|
|
|
|
#define KMP_NESTED_HOT_TEAMS 1
|
|
#define KMP_ADJUST_BLOCKTIME 1
|
|
#define BUILD_PARALLEL_ORDERED 1
|
|
#define KMP_ASM_INTRINS 1
|
|
#define USE_ITT_BUILD LIBOMP_USE_ITT_NOTIFY
|
|
#define INTEL_ITTNOTIFY_PREFIX __kmp_itt_
|
|
#if ! KMP_MIC
|
|
# define USE_LOAD_BALANCE 1
|
|
#endif
|
|
#if ! (KMP_OS_WINDOWS || KMP_OS_DARWIN)
|
|
# define KMP_TDATA_GTID 1
|
|
#endif
|
|
#if STUBS_LIBRARY
|
|
# define KMP_STUB 1
|
|
#endif
|
|
#if DEBUG_BUILD || RELWITHDEBINFO_BUILD
|
|
# define KMP_DEBUG 1
|
|
#endif
|
|
|
|
#if KMP_OS_WINDOWS
|
|
# define KMP_WIN_CDECL
|
|
#else
|
|
# define BUILD_TV
|
|
# define KMP_GOMP_COMPAT
|
|
#endif
|
|
|
|
#endif // KMP_CONFIG_H
|