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

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: Add TODO 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
Index: src/IceIntrinsics.h
diff --git a/src/IceIntrinsics.h b/src/IceIntrinsics.h
index fb066b982b66a92ac0f5b34f50c44851f81d5786..9fd42c92e0d66636c96ee42bfd37f6617a35778b 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 isMemoryOrderValid(IntrinsicID ID, uint64_t Order,
+ uint64_t OrderOther = MemoryOrderInvalid);
enum SideEffects { SideEffects_F = 0, SideEffects_T = 1 };
« no previous file with comments | « src/IceGlobalContext.cpp ('k') | src/IceIntrinsics.cpp » ('j') | src/IceIntrinsics.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698