[PATCH] D35235: [libc++] Replace __sync_* functions with __libcpp_atomic_* functions

Weiming Zhao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 10 18:32:29 PDT 2017


weimingz created this revision.

include/atomic_support.h already handles case for _LIBCPP_HAS_NO_THREADS.
This patch reverts r307595, changes __sync_* to __libcpp_atomic_*,  and adds a wrapper function for __atomic_exchange.


Repository:
  rL LLVM

https://reviews.llvm.org/D35235

Files:
  include/__atomic_support
  include/__refstring
  src/exception.cpp
  src/include/atomic_support.h
  src/locale.cpp
  src/new.cpp
  src/stdexcept.cpp
  src/support/runtime/exception_fallback.ipp
  src/support/runtime/new_handler_fallback.ipp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35235.105955.patch
Type: text/x-patch
Size: 8183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170711/e3dbe068/attachment.bin>


More information about the llvm-commits mailing list