diff options
author | Fangrui Song <maskray@google.com> | 2020-04-16 12:05:53 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-04-17 07:45:04 -0700 |
commit | d441188c15183c9496e44169966112304a1fc915 (patch) | |
tree | faa8da5e65484c9d6eac98a750a0fdbbea1581b2 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 55e3a7c6b21fb21d88896a9548b95384d2bd97dd (diff) | |
download | llvm-d441188c15183c9496e44169966112304a1fc915.zip llvm-d441188c15183c9496e44169966112304a1fc915.tar.gz llvm-d441188c15183c9496e44169966112304a1fc915.tar.bz2 |
[Support][X86] Change getHostNumPhsicalCores() to return number of physical cores enabled by affinity
Fixes https://bugs.llvm.org/show_bug.cgi?id=45556
While here, make the x86-64 code available for x86-32.
The output has been available and stable since
https://git.kernel.org/linus/3dd9d514846cdca1dcef2e4fce666d85e199e844 (2005)
```
processor:
...
physical id:
siblings:
core id:
```
Don't check HAVE_SCHED_GETAFFINITY/HAVE_CPU_COUNT. The interface is
simply available in every libc which can build LLVM.
Reviewed By: aganea
Differential Revision: https://reviews.llvm.org/D78324
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions