From b79d79297d7115e89776155c92eeb5e7ba518a01 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 15 Mar 2004 04:06:46 +0000 Subject: [PATCH] Pass through the boolean queries git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12409 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/AliasAnalysisCounter.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/Analysis/AliasAnalysisCounter.cpp b/lib/Analysis/AliasAnalysisCounter.cpp index 6bad8cdfc52..09fd6b9e0e4 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().pointsToConstantMemory(P); + } + bool doesNotAccessMemory(Function *F) { + return getAnalysis().doesNotAccessMemory(F); + } + bool onlyReadsMemory(Function *F) { + return getAnalysis().onlyReadsMemory(F); + } + // Forwarding functions: just delegate to a real AA implementation, counting // the number of responses...