[llvm-commits] CVS: llvm/lib/Analysis/AliasAnalysisCounter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Mar 14 22:07:00 PST 2004
Changes in directory llvm/lib/Analysis:
AliasAnalysisCounter.cpp updated: 1.7 -> 1.8
---
Log message:
Pass through the boolean queries
---
Diffs of the changes: (+12 -0)
Index: llvm/lib/Analysis/AliasAnalysisCounter.cpp
diff -u llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.7 llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.8
--- llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.7 Wed Dec 10 09:34:03 2003
+++ llvm/lib/Analysis/AliasAnalysisCounter.cpp Sun Mar 14 22:06:46 2004
@@ -93,6 +93,18 @@
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...
More information about the llvm-commits
mailing list