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

Unified Diff: lib/CodeGen/TargetInfo.cpp

Issue 22294002: Treat __sync_synchronize and asm("":::"memory") as stronger fences. (Closed) Base URL: http://git.chromium.org/native_client/pnacl-clang.git@master
Patch Set: Make isAsmMemory a member of InlineAsm as suggested by eliben. 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
« no previous file with comments | « lib/CodeGen/TargetInfo.h ('k') | test/CodeGen/NaCl/atomics.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/CodeGen/TargetInfo.cpp
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp
index f9689affa0f2de7f387d0c8df61c6f140c240795..4fb888a767ba5b7ef977a5d75625d75fced38f03 100644
--- a/lib/CodeGen/TargetInfo.cpp
+++ b/lib/CodeGen/TargetInfo.cpp
@@ -437,6 +437,8 @@ class PNaClTargetCodeGenInfo : public TargetCodeGenInfo {
/// For PNaCl we don't want llvm.pow.* intrinsics to be emitted instead
/// of library function calls.
bool emitIntrinsicForPow() const { return false; }
+ bool addAsmMemoryAroundSyncSynchronize() const { return true; } // @LOCALMOD
+ bool asmMemoryIsFence() const { return true; } // @LOCALMOD
};
void PNaClABIInfo::computeInfo(CGFunctionInfo &FI) const {
« no previous file with comments | « lib/CodeGen/TargetInfo.h ('k') | test/CodeGen/NaCl/atomics.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698