aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-29 00:23:11 +0000
committerChris Lattner <sabre@nondot.org>2003-06-29 00:23:11 +0000
commit62b5c167de0ca5883a7ad5eb0900eb0c15ad3707 (patch)
treeaff37485c4de020bfd644b0960757c5b46ac049c
parent1842a90e0bf7b9137fb595828c6e07c5b629b2ad (diff)
Add support for gathering sets of must aliases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6971 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/AliasAnalysis.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Analysis/AliasAnalysis.h b/include/llvm/Analysis/AliasAnalysis.h
index 90713aeaf9..f115894bc5 100644
--- a/include/llvm/Analysis/AliasAnalysis.h
+++ b/include/llvm/Analysis/AliasAnalysis.h
@@ -76,6 +76,15 @@ public:
return MayAlias;
}
+ /// getMustAliases - If there are any pointers known that must alias this
+ /// pointer, return them now. This allows alias-set based alias analyses to
+ /// perform a form a value numbering (which is exposed by load-vn). If an
+ /// alias analysis supports this, it should ADD any must aliased pointers to
+ /// the specified vector.
+ ///
+ virtual void getMustAliases(Value *P, std::vector<Value*> &RetVals) {}
+
+
//===--------------------------------------------------------------------===//
/// Simple mod/ref information...
///