[llvm-commits] CVS: llvm/lib/Analysis/AliasSetTracker.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 26 13:36:37 PST 2004
Changes in directory llvm/lib/Analysis:
AliasSetTracker.cpp updated: 1.29 -> 1.30
---
Log message:
Add a new interface
---
Diffs of the changes: (+12 -0)
Index: llvm/lib/Analysis/AliasSetTracker.cpp
diff -u llvm/lib/Analysis/AliasSetTracker.cpp:1.29 llvm/lib/Analysis/AliasSetTracker.cpp:1.30
--- llvm/lib/Analysis/AliasSetTracker.cpp:1.29 Thu Nov 4 22:52:08 2004
+++ llvm/lib/Analysis/AliasSetTracker.cpp Fri Nov 26 15:36:25 2004
@@ -189,6 +189,18 @@
return FoundSet;
}
+/// containsPointer - Return true if the specified location is represented by
+/// this alias set, false otherwise. This does not modify the AST object or
+/// alias sets.
+bool AliasSetTracker::containsPointer(Value *Ptr, unsigned Size) const {
+ for (const_iterator I = begin(), E = end(); I != E; ++I)
+ if (!I->Forward && I->aliasesPointer(Ptr, Size, AA))
+ return true;
+ return false;
+}
+
+
+
AliasSet *AliasSetTracker::findAliasSetForCallSite(CallSite CS) {
AliasSet *FoundSet = 0;
for (iterator I = begin(), E = end(); I != E; ++I)
More information about the llvm-commits
mailing list