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

Unified Diff: include/llvm/IR/InlineAsm.h

Issue 22474008: Add the new @llvm.nacl.atomic.fence.all intrinsic (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Add note suggested by jvoung. 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 | « no previous file | include/llvm/IR/NaClAtomicIntrinsics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/llvm/IR/InlineAsm.h
diff --git a/include/llvm/IR/InlineAsm.h b/include/llvm/IR/InlineAsm.h
index 33e4ab8522d1bf2fa2b2d7953798e28e2ae191d3..2c4a55820075b9b473fdbd5ffe38d65225b348dc 100644
--- a/include/llvm/IR/InlineAsm.h
+++ b/include/llvm/IR/InlineAsm.h
@@ -92,6 +92,13 @@ public:
///
static bool Verify(FunctionType *Ty, StringRef Constraints);
+ // @LOCALMOD-START
+ /// isAsmMemory - Returns true if the Instruction corresponds to
+ /// ``asm("":::"memory")``, which is often used as a compiler barrier.
+ ///
+ bool isAsmMemory() const;
+ // @LOCALMOD-END
+
// Constraint String Parsing
enum ConstraintPrefix {
isInput, // 'x'
« no previous file with comments | « no previous file | include/llvm/IR/NaClAtomicIntrinsics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698