New method to allow more efficient clients
authorChris Lattner <sabre@nondot.org>
Sun, 11 Apr 2004 16:35:30 +0000 (16:35 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 11 Apr 2004 16:35:30 +0000 (16:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12829 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/AliasAnalysis.h

index 1ac4355f952a25c622a45f1b2451c1a297866d75..c27594171f073af48743661ebab89a5685630386 100644 (file)
@@ -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);