llvm-project/llvm/lib
Dimitry Andric d989ffd109 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
2020-11-29 00:49:39 +01:00
..
Analysis [BasicAA] Remove unnecessary known size requirement 2020-11-28 10:17:12 +01:00
AsmParser Adding PoisonValue for representing poison value explicitly in IR 2020-11-25 17:33:51 -07:00
BinaryFormat [WebAssembly] Added R_WASM_FUNCTION_OFFSET_I64 for use with DWARF DW_AT_low_pc 2020-11-13 09:32:31 -08:00
Bitcode Adding PoisonValue for representing poison value explicitly in IR 2020-11-25 17:33:51 -07:00
Bitstream llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
CodeGen [RISCV][LegalizeTypes] Teach type legalizer that it can promote UMIN/UMAX using SExtPromotedInteger if that's better for the target. 2020-11-27 11:37:25 -08:00
DWARFLinker llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
DebugInfo Revert "[llvm-symbolizer] Switch to using native symbolizer by default on Windows" 2020-11-23 16:29:45 -08:00
Demangle llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
ExecutionEngine TargetProcessControl.cpp - Remove warning: extra ‘;’ 2020-11-27 18:19:58 +01:00
Extensions llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
FileCheck Revert "[build] normalize components dependencies" 2020-11-18 19:23:11 +01:00
Frontend [AMDGPU] Set the default globals address space to 1 2020-11-20 15:46:53 +00:00
FuzzMutate llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Fuzzer
IR [ConstantFold] Fold operations to poison if possible 2020-11-29 02:28:40 +09:00
IRReader llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
InterfaceStub [llvm-elfabi] Emit ELF .dynsym, .dynamic sections 2020-11-24 00:17:04 -08:00
LTO [llvm][clang][mlir] Add checks for the return values from Target::createXXX to prevent protential null deref 2020-11-21 21:04:12 -08:00
LineEditor llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Linker Linker: Fix linking of byref types 2020-11-17 11:02:04 -05:00
MC [MC] Set the unique id of .stack_sizes to the associated .text section's 2020-11-26 09:13:09 -08:00
MCA [llvm-mca] Fix processing thumb instruction set 2020-11-24 18:27:59 +03:00
Object [AIX][XCOFF][NFC] Change geNumberOfVRSaved function name to getNumberOfVRSaved. 2020-11-27 13:37:43 -05:00
ObjectYAML [obj2yaml] - Dump section offsets in some cases. 2020-11-25 12:41:01 +03:00
Option llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Passes Revert "[IRSim][IROutliner] Adding the extraction basics for the IROutliner." 2020-11-27 19:55:57 -06:00
ProfileData llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Remarks llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Support Implement computeHostNumHardwareThreads() for FreeBSD 2020-11-29 00:49:39 +01:00
TableGen [TableGen] Eliminte source location from CodeInit 2020-11-23 11:30:13 -05:00
Target [X86] Do not allow FixupSetCC to relax constraints 2020-11-28 17:46:56 +00:00
Testing [llvm][NFC] Remove unnecessary vector creation in Annotations 2020-11-14 15:55:09 +00:00
TextAPI llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
ToolDrivers llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Transforms Revert "[IRSim][IROutliner] Adding the extraction basics for the IROutliner." 2020-11-27 19:55:57 -06:00
WindowsManifest llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
XRay [lib/Object] - Generalize the RelocationResolver API. 2020-11-20 10:32:49 +03:00
CMakeLists.txt llvmbuildectomy - support disabled native target 2020-11-13 15:50:13 +01:00