freebsd-nq/contrib/llvm-project
Dimitry Andric efe67f33c3 compiler-rt: add aarch64 init function for LSE atomics
As reported by Ronald, adding the out-of-line LSE atomics helpers for
aarch64 to compiler-rt was not sufficient to link programs using these,
as they also require a __aarch64_have_lse_atomics global. This is
initialized in compiler-rt's lib/builtins/cpu_model.c, roughly similar
to the x86 CPU model and feature detection in that file.

Since upstream does not yet have a FreeBSD specific implementation for
getting the required information, add a simple one that should work for
now, while I try to get it sorted with the LLVM people.

Reported by:	Ronald Klop <ronald-lists@klop.ws>
Fixes:		cc55ee8009
PR:		257392
MFC after:	2 weeks
2021-09-06 21:24:01 +02:00
..
clang Apply clang fix for assertion failure compiling multimedia/minitube 2021-08-21 23:03:50 +02:00
compiler-rt compiler-rt: add aarch64 init function for LSE atomics 2021-09-06 21:24:01 +02:00
libcxx Merge llvm-project 12.0.1 release 2021-07-16 18:29:42 +02:00
libunwind Revert libunwind change to fix backtrace segfault on aarch64 2021-07-03 00:35:49 +02:00
lld Apply upstream lld fix for compressed input sections on BE targets 2021-08-07 13:14:11 +02:00
lldb Apply upstream lldb fix for unhandled Error causing abort 2021-08-16 18:57:24 +02:00
llvm llvm: Revert "[HardwareLoops] Change order of SCEV expression construction for InitLoopCount." 2021-09-03 13:31:54 -03:00
openmp Merge llvm-project 12.0.0 release 2021-06-13 22:01:15 +02:00
FREEBSD-Xlist Update contrib/llvm-project/FREEBSD-Xlist for llvmorg-11.0.1-rc2. 2021-01-03 14:21:54 +01:00