aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/AliasAnalysisCounter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-15 04:06:46 +0000
committerChris Lattner <sabre@nondot.org>2004-03-15 04:06:46 +0000
commitb79d79297d7115e89776155c92eeb5e7ba518a01 (patch)
tree7eb786034e29c08a0c63431831b32c642b958e1d /lib/Analysis/AliasAnalysisCounter.cpp
parent4244bb5bbd6fd815f86fc121ca507c6bd04459b3 (diff)
Pass through the boolean queries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/AliasAnalysisCounter.cpp')
-rw-r--r--lib/Analysis/AliasAnalysisCounter.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Analysis/AliasAnalysisCounter.cpp b/lib/Analysis/AliasAnalysisCounter.cpp
index 6bad8cdfc5..09fd6b9e0e 100644
--- a/lib/Analysis/AliasAnalysisCounter.cpp
+++ b/lib/Analysis/AliasAnalysisCounter.cpp
@@ -93,6 +93,18 @@ namespace {
case ModRef: MR++; return ModRef;
}
}
+
+ // FIXME: We could count these too...
+ bool pointsToConstantMemory(const Value *P) {
+ return getAnalysis<AliasAnalysis>().pointsToConstantMemory(P);
+ }
+ bool doesNotAccessMemory(Function *F) {
+ return getAnalysis<AliasAnalysis>().doesNotAccessMemory(F);
+ }
+ bool onlyReadsMemory(Function *F) {
+ return getAnalysis<AliasAnalysis>().onlyReadsMemory(F);
+ }
+
// Forwarding functions: just delegate to a real AA implementation, counting
// the number of responses...