Index: include/llvm/IR/InlineAsm.h |
diff --git a/include/llvm/IR/InlineAsm.h b/include/llvm/IR/InlineAsm.h |
index b2d79d0f0bfca8d9ef16513653867221950a5677..bffeb22785e40fd69e1b81bee50d8b1e2e57eb98 100644 |
--- a/include/llvm/IR/InlineAsm.h |
+++ b/include/llvm/IR/InlineAsm.h |
@@ -88,6 +88,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' |