Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Unified Diff: include/llvm/IR/NaClAtomicIntrinsics.h

Issue 22240002: Rework PNaCl memory ordering (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« docs/PNaClLangRef.rst ('K') | « docs/PNaClLangRef.rst ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/llvm/IR/NaClAtomicIntrinsics.h
diff --git a/include/llvm/IR/NaClAtomicIntrinsics.h b/include/llvm/IR/NaClAtomicIntrinsics.h
index 680c6440249210d2d1d043b5bd6e5df31d077dd2..5a8352a57d8a304a1b7b92226ac641f31f1ec833 100644
--- a/include/llvm/IR/NaClAtomicIntrinsics.h
+++ b/include/llvm/IR/NaClAtomicIntrinsics.h
@@ -100,6 +100,14 @@ enum MemoryOrder {
MemoryOrderRelease,
MemoryOrderAcquireRelease,
MemoryOrderSequentiallyConsistent,
+ // The following memory order is specific to PNaCl and is used to
+ // support non-C11/C++11 legacy code which uses the __sync_synchronize
+ // GCC-style builtin and the asm("":::"memory") compiler fence
+ // idiom. It's equivalent to MemoryOrderSequentiallyConsistent
+ // surrounded by compiler barriers, which means that in practice is
+ // should prevent reordering of memory accesses to objects which may
+ // escape.
+ MemoryOrderSequentiallyConsistentAll,
MemoryOrderNum // Invalid, keep last.
};
« docs/PNaClLangRef.rst ('K') | « docs/PNaClLangRef.rst ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698