aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Analysis/AliasAnalysis.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Analysis/AliasAnalysis.h b/include/llvm/Analysis/AliasAnalysis.h
index 1ac4355f95..c27594171f 100644
--- a/include/llvm/Analysis/AliasAnalysis.h
+++ b/include/llvm/Analysis/AliasAnalysis.h
@@ -152,6 +152,15 @@ public:
///
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);