Forward method request to chained aa implementation
authorChris Lattner <sabre@nondot.org>
Fri, 30 Jan 2004 22:20:55 +0000 (22:20 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 30 Jan 2004 22:20:55 +0000 (22:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11024 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/DataStructureAA.cpp
lib/Analysis/DataStructure/Steensgaard.cpp

index 8a2e0caa425c274850c19294d9369c5180651a8d..1f244708bd350c193fd8bb724b5fbba51c8776f6 100644 (file)
@@ -53,6 +53,10 @@ namespace {
 
     void getMustAliases(Value *P, std::vector<Value*> &RetVals);
 
+    bool pointsToConstantMemory(const Value *P) {
+      return getAnalysis<AliasAnalysis>().pointsToConstantMemory(P);
+    }
+
   private:
     DSGraph *getGraphForValue(const Value *V);
   };
index 426795e8bdeee96d694ca9748476fa2e083be09f..cc50571019bb21c6f5d713873e1800c7368e350e 100644 (file)
@@ -63,6 +63,10 @@ namespace {
     // alias - This is the only method here that does anything interesting...
     AliasResult alias(const Value *V1, unsigned V1Size,
                       const Value *V2, unsigned V2Size);
+
+    bool pointsToConstantMemory(const Value *P) {
+      return getAnalysis<AliasAnalysis>().pointsToConstantMemory(P);
+    }
     
   private:
     void ResolveFunctionCall(Function *F, const DSCallSite &Call,