llvm-project/lld
Rafael Espindola c804bf9397 Use sched_getaffinity instead of std:🧵:hardware_concurrency.
The issue with std:🧵:hardware_concurrency is that it forwards
to libc and some implementations (like glibc) don't take thread
affinity into consideration.

With this change a llvm program that can execute in only 2 cores will
use 2 threads, even if the machine has 32 cores.

This makes benchmarking a lot easier, but should also help if someone
doesn't want to use all cores for compilation for example.

llvm-svn: 314810
2017-10-03 16:25:48 +00:00
..
COFF Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
Common lldCommon depends on intrinsics_gen, due to llvm/CodeGen/CommandFlags.h 2017-10-03 04:18:46 +00:00
ELF Use sched_getaffinity instead of std:🧵:hardware_concurrency. 2017-10-03 16:25:48 +00:00
MinGW Fix another build breakage. 2017-10-02 22:05:46 +00:00
cmake/modules [lld][cmake] Fix BUILD_SHARED_LIBS installation 2017-01-24 10:41:02 +00:00
docs Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
include/lld Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
lib Build fix: don't try to link in lldConfig 2017-10-02 23:09:37 +00:00
test [MIPS] Generate thunks for microMIPS code 2017-10-03 13:30:02 +00:00
tools/lld Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
unittests Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
.arcconfig Upgrade all the .arcconfigs to https. 2016-07-14 13:15:37 +00:00
.clang-format
.gitignore
CMakeLists.txt Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
CODE_OWNERS.TXT
LICENSE.TXT Update copyright year to 2016. 2016-03-30 22:40:59 +00:00
README.md Test commit 2017-06-24 21:16:41 +00:00

README.md

LLVM Linker (lld)

This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.

lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.