HomePhabricator

[libc++] Refactoring __sync_* builtins; NFC (Reland)

Description

[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

Details