HomePhabricator

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

Authored by weimingz on Jul 10 2017, 2:37 PM.

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

llvm-svn: 307595