[PATCH] Add implementations of the MSVC barrier intrinsics

Reid Kleckner rnk at google.com
Wed Oct 16 12:58:37 PDT 2013


That actually generates a locked memory or with zero or an mfence
instruction.  This intrinsic... actually does nothing, except to prevent
the compiler from reordering loads and stores.  If you want to do something
with the CPU, you need to use a different intrinsic.


On Wed, Oct 16, 2013 at 12:44 PM, Eric Christopher <echristo at gmail.com>wrote:

>
>   Can't use something like __sync_synchronize or is the behavior different?
>
> http://llvm-reviews.chandlerc.com/D1954
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131016/b448ebe3/attachment.html>


More information about the cfe-commits mailing list