[PATCH] D32265: Add __CLANG_ATOMIC_<TYPE>_LOCK_FREE macros for use in MSVC compatibility mode.

Billy Robert O'Neal III via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 20 14:47:01 PDT 2017


BillyONeal added a comment.

In https://reviews.llvm.org/D32265#732657, @jfb wrote:

> It looks like Billy is going to do something somewhat similar when he rewrites it: https://twitter.com/jfbastien/status/855168230918307840
>  For now it's kinda `#define IS_LOCK_FREE ¯\_(ツ)_/¯`


Note that my rewrite of our <atomic> didn't touch the XXX_IS_LOCK_FREE macros. All of those for both implementations are hardcoded to 2 since any piece of hardware we ever plan to support has lock free ops for all those. I did add conditional DCAS support for amd64 though in v.Next.

Billy3


https://reviews.llvm.org/D32265





More information about the cfe-commits mailing list