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

Unified Diff: src/IceIntrinsics.h

Issue 1017453007: Subzero: Support non sequentially consistent memory orderings for atomic ops. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | src/IceIntrinsics.cpp » ('j') | src/IceIntrinsics.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceIntrinsics.h
diff --git a/src/IceIntrinsics.h b/src/IceIntrinsics.h
index fb066b982b66a92ac0f5b34f50c44851f81d5786..29361da82951bfcc9d86d2b07be78e3a75931d76 100644
--- a/src/IceIntrinsics.h
+++ b/src/IceIntrinsics.h
@@ -91,7 +91,11 @@ public:
MemoryOrderNum // Invalid, keep last.
};
- static bool VerifyMemoryOrder(uint64_t Order);
+ // Verify memory ordering rules for atomic intrinsics. For
+ // AtomicCmpxchg, Order is the "success" ordering and OrderOther is
+ // the "failure" ordering. Returns true if valid, false if invalid.
+ static bool VerifyMemoryOrder(IntrinsicID ID, uint64_t Order,
+ uint64_t OrderOther = MemoryOrderInvalid);
enum SideEffects { SideEffects_F = 0, SideEffects_T = 1 };
« no previous file with comments | « no previous file | src/IceIntrinsics.cpp » ('j') | src/IceIntrinsics.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698