summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-05-08 17:16:51 +0000
committerChris Lattner <sabre@nondot.org>2008-05-08 17:16:51 +0000
commitd96288a2ff188bb1fb1b86fb89b1ac82f6310a5c (patch)
treeb09a3091614b804eeaecd5ba70e1ae9953e91b37 /include
parentd7266d484a861c3fcc6763df27fc81a8e3c46fc5 (diff)
downloadllvm-d96288a2ff188bb1fb1b86fb89b1ac82f6310a5c.tar.gz
llvm-d96288a2ff188bb1fb1b86fb89b1ac82f6310a5c.tar.bz2
llvm-d96288a2ff188bb1fb1b86fb89b1ac82f6310a5c.tar.xz
add a new Instruction::mayReadFromMemory predicate, make
Instruction::mayWriteToMemory stronger for invokes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Instruction.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index 7933a4d3c2..29ae5c3cfb 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -50,6 +50,10 @@ public:
///
bool mayWriteToMemory() const;
+ /// mayReadFromMemory - Return true if this instruction may read memory.
+ ///
+ bool mayReadFromMemory() const;
+
/// clone() - Create a copy of 'this' instruction that is identical in all
/// ways except the following:
/// * The instruction has no parent