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

Unified Diff: lib/Transforms/NaCl/ResolvePNaClIntrinsics.cpp

Issue 1692803002: Remove Emscripten support (Closed) Base URL: https://chromium.googlesource.com/a/native_client/pnacl-llvm.git@master
Patch Set: Created 4 years, 10 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 | « lib/Transforms/NaCl/PNaClABISimplify.cpp ('k') | test/CodeGen/JS/aliases.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Transforms/NaCl/ResolvePNaClIntrinsics.cpp
diff --git a/lib/Transforms/NaCl/ResolvePNaClIntrinsics.cpp b/lib/Transforms/NaCl/ResolvePNaClIntrinsics.cpp
index 948cbf13246837165bc7e582464726b65505d27a..30f62006222b4e71fa285fbe02a8305d00361cc1 100644
--- a/lib/Transforms/NaCl/ResolvePNaClIntrinsics.cpp
+++ b/lib/Transforms/NaCl/ResolvePNaClIntrinsics.cpp
@@ -166,13 +166,12 @@ private:
ConstantCallResolver &operator=(const ConstantCallResolver &) = delete;
};
-/// Resolve __nacl_atomic_is_lock_free to true/false at translation
-/// time. PNaCl's currently supported platforms all support lock-free atomics at
-/// byte sizes {1,2,4,8} except for MIPS and asmjs architectures that supports
-/// lock-free atomics at byte sizes {1,2,4}, and the alignment of the pointer is
-/// always expected to be natural (as guaranteed by C11 and C++11). PNaCl's
-/// Module-level ABI verification checks that the byte size is constant and in
-/// {1,2,4,8}.
+/// Resolve __nacl_atomic_is_lock_free to true/false at translation / time.
+//PNaCl's currently supported platforms all support lock-free atomics at / byte
+//sizes {1,2,4,8} except for MIPS architecture that supports / lock-free atomics
+//at byte sizes {1,2,4}, and the alignment of the pointer is / always expected
+//to be natural (as guaranteed by C11 and C++11). PNaCl's / Module-level ABI
+//verification checks that the byte size is constant and in / {1,2,4,8}.
struct IsLockFreeToConstant {
Constant *operator()(CallInst *Call) {
uint64_t MaxLockFreeByteSize = 8;
@@ -199,7 +198,6 @@ struct IsLockFreeToConstant {
case Triple::arm:
break;
case Triple::mipsel:
- case Triple::asmjs:
MaxLockFreeByteSize = 4;
break;
default:
« no previous file with comments | « lib/Transforms/NaCl/PNaClABISimplify.cpp ('k') | test/CodeGen/JS/aliases.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698