[llvm-commits] CVS: llvm/include/llvm/Analysis/AliasAnalysis.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Apr 11 11:36:01 PDT 2004
Changes in directory llvm/include/llvm/Analysis:
AliasAnalysis.h updated: 1.14 -> 1.15
---
Log message:
New method to allow more efficient clients
---
Diffs of the changes: (+9 -0)
Index: llvm/include/llvm/Analysis/AliasAnalysis.h
diff -u llvm/include/llvm/Analysis/AliasAnalysis.h:1.14 llvm/include/llvm/Analysis/AliasAnalysis.h:1.15
--- llvm/include/llvm/Analysis/AliasAnalysis.h:1.14 Sat Apr 10 01:11:29 2004
+++ llvm/include/llvm/Analysis/AliasAnalysis.h Sun Apr 11 11:35:30 2004
@@ -152,6 +152,15 @@
///
virtual ModRefResult getModRefInfo(CallSite CS1, CallSite CS2);
+ /// hasNoModRefInfoForCalls - Return true if the analysis has no mod/ref
+ /// information for function calls other than "pure" and "const" functions.
+ /// This can be used by clients to avoid many pointless queries. Remember
+ /// that if you override this and chain to another analysis, you must make
+ /// sure that it doesn't have mod/ref info either.
+ ///
+ virtual bool hasNoModRefInfoForCalls() const { return false; }
+
+
/// Convenience functions...
ModRefResult getModRefInfo(LoadInst *L, Value *P, unsigned Size);
ModRefResult getModRefInfo(StoreInst *S, Value *P, unsigned Size);
More information about the llvm-commits
mailing list