summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/builtins.c
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2015-07-07 00:27:16 +0000
committerEric Fiselier <eric@efcs.ca>2015-07-07 00:27:16 +0000
commit1faf289e27bcb54e54b2e3e0f492d6f54d59cd9e (patch)
treee3663203fe77563429ca010009a19d2d2c926dcd /clang/test/CodeGen/builtins.c
parentd529d04fd73c55f35d3f6425314a6780e9146f23 (diff)
downloadbcm5719-llvm-1faf289e27bcb54e54b2e3e0f492d6f54d59cd9e.tar.gz
bcm5719-llvm-1faf289e27bcb54e54b2e3e0f492d6f54d59cd9e.zip
[libcxx] Add atomic_support.h header to src that handles needed atomic operations.
Summary: In some places in libc++ we need to use the `__atomic_*` builtins. This patch adds a header that provides access to those builtins in a uniform way from within the dylib source. If the compiler building the dylib does not support these builtins then a warning is issued. Only relaxed loads are needed within the headers. A singe function to do these relaxed loads has been added to `<memory>`. This patch applies the new atomic builtins to `__shared_count` and `call_once`. Reviewers: mclow.lists Subscribers: majnemer, jroelofs, cfe-commits Differential Revision: http://reviews.llvm.org/D10406 llvm-svn: 241532
Diffstat (limited to 'clang/test/CodeGen/builtins.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud