1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/include/llvm/Config
Rafael Espindola e01aed9846 Bring r314809 back.
But now include a check for CPU_COUNT so we still build on 10 year old
versions of glibc.

Original message:

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: 314931
2017-10-04 20:27:01 +00:00
..
abi-breaking.h.cmake [cmake] Enable reverse iteration by default through build macro 2017-06-06 00:36:09 +00:00
AsmParsers.def.in
AsmPrinters.def.in
config.h.cmake Bring r314809 back. 2017-10-04 20:27:01 +00:00
Disassemblers.def.in
llvm-config.h.cmake
Targets.def.in