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

Unified Diff: src/IceIntrinsics.cpp

Issue 342763004: Add atomic load/store, fetch_add, fence, and is-lock-free lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: change comment Created 6 years, 6 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 | « src/IceIntrinsics.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceIntrinsics.cpp
diff --git a/src/IceIntrinsics.cpp b/src/IceIntrinsics.cpp
index dbf79cf11ee19d9e4a8821e4c53e60d4b6e26968..02562b53f8a2c0a4ea17b50943a9395d102146d6 100644
--- a/src/IceIntrinsics.cpp
+++ b/src/IceIntrinsics.cpp
@@ -82,7 +82,7 @@ const struct IceIntrinsicsEntry_ {
{ \
{ \
{ Intrinsics::AtomicStore, true } \
- , { IceType_void, Overload, IceType_i32, IceType_i32 }, 5 \
+ , { IceType_void, Overload, IceType_i32, IceType_i32 }, 4 \
} \
, "nacl.atomic.store." NameSuffix \
}
@@ -199,4 +199,9 @@ Intrinsics::find(const IceString &Name) const {
return &it->second;
}
+bool Intrinsics::VerifyMemoryOrder(uint64_t Order) {
+ // There is only one memory ordering for atomics allowed right now.
+ return Order == Intrinsics::MemoryOrderSequentiallyConsistent;
+}
+
} // end of namespace Ice
« no previous file with comments | « src/IceIntrinsics.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698