]> granicus.if.org Git - clang/commit
Add implementations of the MSVC barrier intrinsics
authorReid Kleckner <reid@kleckner.net>
Thu, 17 Oct 2013 01:29:48 +0000 (01:29 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 17 Oct 2013 01:29:48 +0000 (01:29 +0000)
commit0b327d323db4bbd93a4b91ed98ee9ab243290f4e
treea1ef5c95ba39e90a52317ce5984e223543086a26
parentb5b3f816d3c2543e11fb4f0b235041beafd81a1e
Add implementations of the MSVC barrier intrinsics

Summary:
These are deprecated in VS 2012 according to MSDN.  They don't actually
compile down to any code.  They prevent the compiler from reordering
memory accesses across the barrier, which is what a memory-clobbering
volatile asm does.

Reviewers: echristo

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1954

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192860 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/Intrin.h
test/Headers/ms-intrin.cpp