aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2021-11-17 10:59:31 -0500
committerLouis Dionne <ldionne.2@gmail.com>2021-11-17 23:02:58 -0500
commit92832e4889ae6038cc8b3e6e449af2a9b9374ab4 (patch)
treea89eea92314bda108249cb24e9072dbcf9ff6f12 /clang/lib/Frontend/CompilerInvocation.cpp
parentd61840c168a34339aa8e602adf5aba98924a6f61 (diff)
downloadllvm-92832e4889ae6038cc8b3e6e449af2a9b9374ab4.zip
llvm-92832e4889ae6038cc8b3e6e449af2a9b9374ab4.tar.gz
llvm-92832e4889ae6038cc8b3e6e449af2a9b9374ab4.tar.bz2
[libc++] Enable <atomic> when threads are disabled
std::atomic is, for the most part, just a thin veneer on top of compiler builtins. Hence, it should be available even when threads are not available on the system, and in fact there has been requests for such support. This patch: - Moves __libcpp_thread_poll_with_backoff to its own header so it can be used in <atomic> when threads are disabled. - Adds a dummy backoff policy for atomic polling that doesn't know about threads. - Adjusts the <atomic> feature-test macros so they are provided even when threads are disabled. - Runs the <atomic> tests when threads are disabled. rdar://77873569 Differential Revision: https://reviews.llvm.org/D114109
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions