freebsd-dev/contrib/llvm-project
Dimitry Andric c3f7be36e8 Merge commit d989ffd10 from llvm git (by Dimitry Andric):
Implement computeHostNumHardwareThreads() for FreeBSD

  This retrieves CPU affinity via FreeBSD's cpuset(2) API, and makes
  LLVM respect affinity settings configured by the user via the
  cpuset(1) command.

  In particular, this allows to reduce the number of threads used on
  machines with high core counts, which can interact badly with
  parallelized build systems. This is particularly noticable with lld,
  which spawns lots of threads even for linking e.g. hello_world!

  This fix is related to PR48193, but does not adress the more
  fundamental problem, which is that LLVM by default grabs as many CPUs
  and/or threads as possible.

  Reviewed By: MaskRay

  Differential Revision: https://reviews.llvm.org/D92271

Originally by:	mjg
MFC after:	1 week
2020-12-03 19:29:18 +00:00
..
clang clang: allow -fstack-clash-protection on FreeBSD 2020-11-25 14:26:13 +00:00
compiler-rt Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-09-16 16:58:29 +00:00
libcxx [libcxx] Fix atomic type for mips32 on gcc to work w/out needing libatomic 2020-10-18 17:31:10 +00:00
libunwind Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-09-16 16:58:29 +00:00
lld Merge commit 8df4e6094 from llvm git (by Fangrui Song): 2020-11-12 19:25:31 +00:00
lldb Merge commit 1ce07cd614be from llvm git (by me): 2020-08-22 10:55:55 +00:00
llvm Merge commit d989ffd10 from llvm git (by Dimitry Andric): 2020-12-03 19:29:18 +00:00
openmp Merge commit 47b0262d3 from llvm git (by me): 2020-09-07 20:10:03 +00:00
FREEBSD-Xlist Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-07-31 21:22:58 +00:00