From 72c194a8be83d217360ebc6b1f3ad21c5ffa16a9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 6 Dec 2010 01:01:28 +0000 Subject: [PATCH] add a helper method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120973 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/AliasAnalysis.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/Analysis/AliasAnalysis.h b/include/llvm/Analysis/AliasAnalysis.h index 7531b19c5ba..7d5c5fc99b6 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 -- 2.34.1