This is an archive of the discontinued LLVM Phabricator instance.

[libc++abi] Replace __sync_* functions with __libcpp_atomic_* functions.
ClosedPublic

Authored by efriedma on Apr 2 2018, 7:19 PM.

Details

Reviewers
EricWF
compnerd
Summary

This is basically part 2 of r313694.

It's a little unfortunate that I had to copy-paste atomic_support.h, but I don't really see any alternative.

The refstring.h changes are the same as the libcxx changes in r313694.

Diff Detail

Repository
rCXXA libc++abi

Event Timeline

efriedma created this revision.Apr 2 2018, 7:19 PM
compnerd accepted this revision.Apr 14 2018, 3:32 PM

I definitely like the clean up. Not sure I understand the motivation for the __libcpp_relaxed_store, but I suppose thats because its a copy from libc++ where it may be more useful.

This revision is now accepted and ready to land.Apr 14 2018, 3:32 PM