[libc++] Refactoring __sync_* builtins; NFC (Reland)
authorWeiming Zhao <weimingz@codeaurora.org>
Mon, 10 Jul 2017 21:37:35 +0000 (21:37 +0000)
committerWeiming Zhao <weimingz@codeaurora.org>
Mon, 10 Jul 2017 21:37:35 +0000 (21:37 +0000)
commitf7850fa8b64d56e688543414d02bca3b1f1c9364
treea79a2fca79998e29c71739af0126dfad64431bac
parent50daf5fbbb9d6ef03fdf6af44c71e2c7ee4a2edf
[libc++] Refactoring __sync_* builtins; NFC (Reland)

Summary: Wrap __sync_* builtins with __libcpp_ functions to facility future customizations as atomic operations are unavailable on some targets.

Reviewers: danalbert, EricWF, jroelofs

Subscribers: joerg, llvm-commits

Differential Revision: https://reviews.llvm.org/D34918

llvm-svn: 307595
libcxx/include/__atomic_support [new file with mode: 0644]
libcxx/include/__refstring
libcxx/src/locale.cpp
libcxx/src/support/runtime/exception_fallback.ipp
libcxx/src/support/runtime/new_handler_fallback.ipp