[llvm-commits] [llvm] r120973 - /llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
Chris Lattner
sabre at nondot.org
Sun Dec 5 17:01:28 PST 2010
Author: lattner
Date: Sun Dec 5 19:01:28 2010
New Revision: 120973
URL: http://llvm.org/viewvc/llvm-project?rev=120973&view=rev
Log:
add a helper method.
Modified:
llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
Modified: llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/AliasAnalysis.h?rev=120973&r1=120972&r2=120973&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/AliasAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/AliasAnalysis.h Sun Dec 5 19:01:28 2010
@@ -182,6 +182,11 @@
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
More information about the llvm-commits
mailing list