aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-03 00:56:30 +0000
committerDan Gohman <gohman@apple.com>2010-08-03 00:56:30 +0000
commit847a84efd23a2c7d90429b82f6e0f19d1f913d9a (patch)
treeb062e4005b095d924e9a6f2426fc9d24047e9dff /include/llvm/Analysis
parentab37f50838350e1104579fbd1f7c8820473485a5 (diff)
downloadexternal_llvm-847a84efd23a2c7d90429b82f6e0f19d1f913d9a.zip
external_llvm-847a84efd23a2c7d90429b82f6e0f19d1f913d9a.tar.gz
external_llvm-847a84efd23a2c7d90429b82f6e0f19d1f913d9a.tar.bz2
Add a convenient form of AliasAnalysis::alias for the case where the sizes
are unknown. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110090 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r--include/llvm/Analysis/AliasAnalysis.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/AliasAnalysis.h b/include/llvm/Analysis/AliasAnalysis.h
index e611a35..e0068dc 100644
--- a/include/llvm/Analysis/AliasAnalysis.h
+++ b/include/llvm/Analysis/AliasAnalysis.h
@@ -94,6 +94,11 @@ public:
virtual AliasResult alias(const Value *V1, unsigned V1Size,
const Value *V2, unsigned V2Size);
+ /// alias - A convenience wrapper for the case where the sizes are unknown.
+ AliasResult alias(const Value *V1, const Value *V2) {
+ return alias(V1, ~0u, V2, ~0u);
+ }
+
/// isNoAlias - A trivial helper function to check to see if the specified
/// pointers are no-alias.
bool isNoAlias(const Value *V1, unsigned V1Size,