aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2020-06-04 14:54:38 -0400
committerLouis Dionne <ldionne@apple.com>2020-06-05 09:28:44 -0400
commite0184357fc781e939f4e4368fc8aff692ce227ed (patch)
tree575f6b375e0f6bb9bc48d09b1d9f479c4b6f8a1c /llvm/lib/Transforms/Utils/LoopSimplify.cpp
parenta6fcf5ca033a83b815f760664e0cff91c2c13dcd (diff)
downloadllvm-e0184357fc781e939f4e4368fc8aff692ce227ed.zip
llvm-e0184357fc781e939f4e4368fc8aff692ce227ed.tar.gz
llvm-e0184357fc781e939f4e4368fc8aff692ce227ed.tar.bz2
[libc++] Link against libatomic when it is found
Before this patch, we tried detecting whether small atomics were available without linking against libatomic. However, that's not really what we want to know -- instead, we want to know what's required in order to support atomics fully, which is to link against libatomic when it's provided. That is both much simpler, and it doesn't suffer the problem that we would not link against libatomic when small atomics didn't require it, which lead to non-lockfree atomics never working. Furthermore, because we understand that some platforms might not want to (or be able to) ship non-lockfree atomics, we add that notion to the test suite, independently of a potential extern library. After this patch, we therefore: (1) Link against libatomic when it is provided (2) Independently detect whether non-lockfree atomics are supported in the test suite, regardless of whether that means we're linking against an external library or not (which is an implementation detail). Differential Revision: https://reviews.llvm.org/D81190
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
0 files changed, 0 insertions, 0 deletions