diff options
author | Chris Lattner <sabre@nondot.org> | 2010-12-06 01:01:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-12-06 01:01:28 +0000 |
commit | 72c194a8be83d217360ebc6b1f3ad21c5ffa16a9 (patch) | |
tree | b9f145b1dd212792bc7d79467860e987dd687c29 | |
parent | 04e2b639c13a73ac91686d484628325ee536e9cc (diff) | |
download | external_llvm-72c194a8be83d217360ebc6b1f3ad21c5ffa16a9.zip external_llvm-72c194a8be83d217360ebc6b1f3ad21c5ffa16a9.tar.gz external_llvm-72c194a8be83d217360ebc6b1f3ad21c5ffa16a9.tar.bz2 |
add a helper method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120973 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/AliasAnalysis.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/AliasAnalysis.h b/include/llvm/Analysis/AliasAnalysis.h index 7531b19..7d5c5fc 100644 --- a/include/llvm/Analysis/AliasAnalysis.h +++ b/include/llvm/Analysis/AliasAnalysis.h @@ -182,6 +182,11 @@ public: const Value *V2, uint64_t V2Size) { return isNoAlias(Location(V1, V1Size), Location(V2, V2Size)); } + + /// isMustAlias - A convenience wrapper. + bool isMustAlias(const Location &LocA, const Location &LocB) { + return alias(LocA, LocB) == MustAlias; + } /// pointsToConstantMemory - If the specified memory location is /// known to be constant, return true. If OrLocal is true and the |