1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/include/llvm
Rafael Espindola 129f5a2768 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: 314809
2017-10-03 16:25:15 +00:00
..
ADT fix 80 column violation. 2017-09-29 22:46:22 +00:00
Analysis [SLP] Vectorize jumbled memory loads. 2017-10-03 15:28:48 +00:00
AsmParser Move the stripping of invalid debug info from the Verifier to AutoUpgrade. 2017-10-02 18:31:29 +00:00
BinaryFormat Add ELFOSABI_FIRST_ARCH, ELFOSABI_LAST_ARCH and start using those in llvm-readobj 2017-10-02 20:49:58 +00:00
Bitcode [Bitcode] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC). 2017-09-07 23:28:24 +00:00
CodeGen Re-enable "[MachineCopyPropagation] Extend pass to do COPY source forwarding" 2017-10-02 22:01:37 +00:00
Config Use sched_getaffinity instead of std:🧵:hardware_concurrency. 2017-10-03 16:25:15 +00:00
DebugInfo Fix two header comments. NFC. 2017-10-02 19:48:28 +00:00
Demangle
ExecutionEngine [ORC] Fix the type of RTDyldObjectLinkingLayer::NotifyLoadedFtor. 2017-09-28 17:43:07 +00:00
FuzzMutate
IR [Lint] Avoid failed assertion by fetching the proper pointer type 2017-10-03 06:03:49 +00:00
IRReader Move the stripping of invalid debug info from the Verifier to AutoUpgrade. 2017-10-02 18:31:29 +00:00
LineEditor
Linker
LTO [Support] Rename tool_output_file to ToolOutputFile, NFC 2017-09-23 01:03:17 +00:00
MC [Assembler] Report multiple near misses for invalid instructions 2017-10-03 09:33:12 +00:00
Object [WebAssembly] Use function/global index space in WasmSymbol 2017-09-26 18:21:12 +00:00
ObjectYAML [WebAssembly] Allow each data segment to specify its own alignment 2017-09-29 16:50:08 +00:00
Option
Passes
ProfileData Separate the logic when handling indirect calls in SamplePGO ThinLTO compile phase and other phases. 2017-10-01 05:24:51 +00:00
Support Use sched_getaffinity instead of std:🧵:hardware_concurrency. 2017-10-03 16:25:15 +00:00
TableGen Fixing incorrectly capitalised regexps. 2017-09-07 09:54:03 +00:00
Target [AsmParser] Add DiagnosticString to AsmOperands in tablegen 2017-10-03 14:34:57 +00:00
Testing/Support
ToolDrivers
Transforms Separate the logic when handling indirect calls in SamplePGO ThinLTO compile phase and other phases. 2017-10-01 05:24:51 +00:00
WindowsManifest Fix bug 34608 by moving private header out of public header. 2017-09-14 23:01:13 +00:00
WindowsResource [llvm-readobj] Teach readobj to dump .res files (WindowsResource). 2017-09-20 18:33:35 +00:00
XRay [XRay] convert FDR arg1 log entries 2017-09-27 04:48:03 +00:00
CMakeLists.txt
InitializePasses.h Re-enable "[MachineCopyPropagation] Extend pass to do COPY source forwarding" 2017-10-02 22:01:37 +00:00
LinkAllIR.h Sink some IntrinsicInst.h and Intrinsics.h out of llvm/include 2017-09-07 23:27:44 +00:00
LinkAllPasses.h
module.modulemap [ARC] Prepare the implementation of relocation for LLD 2017-09-13 01:49:49 +00:00
module.modulemap.build
Pass.h [Pass] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-09-06 23:05:38 +00:00
PassAnalysisSupport.h [Pass] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-09-06 23:05:38 +00:00
PassInfo.h [Pass] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-09-06 23:05:38 +00:00
PassRegistry.h [Pass] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-09-06 23:05:38 +00:00
PassSupport.h [Pass] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-09-06 23:05:38 +00:00