Pass through the boolean queries
authorChris Lattner <sabre@nondot.org>
Mon, 15 Mar 2004 04:06:46 +0000 (04:06 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Mar 2004 04:06:46 +0000 (04:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12409 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/AliasAnalysisCounter.cpp

index 6bad8cdfc52eb9897118d917877ed8ca5aaaf002..09fd6b9e0e46e288e61d2ae129844d1fbe09a551 100644 (file)
@@ -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...