Introduce a new PartialAlias response for AliasAnalysis. For most

AliasAnalysis consumers, PartialAlias will be treated as MayAlias.

For AliasAnalysis chaining, MayAlias says "procede to the next analysis".
PartialAlias will be used to indicate that the query should terminate,
even though it didn't reach MustAlias or NoAlias.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121507 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2010-12-10 19:38:58 +00:00
parent a92bac64cb
commit 4a34cbd2b9
2 changed files with 9 additions and 5 deletions

View File

@@ -150,8 +150,9 @@ public:
///
enum AliasResult {
NoAlias = 0, ///< No dependencies.
MayAlias = 1, ///< Anything goes.
MustAlias = 2 ///< Pointers are equal.
MayAlias, ///< Anything goes.
PartialAlias, ///< Pointers differ, but pointees overlap.
MustAlias ///< Pointers are equal.
};
/// alias - The main low level interface to the alias analysis implementation.