diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-11 16:35:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-11 16:35:30 +0000 |
commit | e40bb915bae2aecdd1578ea356d5e4c8ac31061c (patch) | |
tree | cb06b2121bfd758e00fa9cd7b8ebe57891952ff8 | |
parent | fbede52af457f4278133c22c653c9f93ffcda975 (diff) |
New method to allow more efficient clients
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12829 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/AliasAnalysis.h | 9 |
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); |