[llvm-commits] CVS: llvm/include/llvm/Analysis/IPModRef.h

Vikram Adve vadve at cs.uiuc.edu
Wed Nov 27 11:40:00 PST 2002


Changes in directory llvm/include/llvm/Analysis:

IPModRef.h updated: 1.6 -> 1.7

---
Log message:

No longer need local graph to find call sites.
Also some major fixes within IPModRef.cpp.


---
Diffs of the changes:

Index: llvm/include/llvm/Analysis/IPModRef.h
diff -u llvm/include/llvm/Analysis/IPModRef.h:1.6 llvm/include/llvm/Analysis/IPModRef.h:1.7
--- llvm/include/llvm/Analysis/IPModRef.h:1.6	Thu Nov  7 01:11:49 2002
+++ llvm/include/llvm/Analysis/IPModRef.h	Wed Nov 27 11:38:56 2002
@@ -96,7 +96,7 @@
         BitSetVector&  getRefSet()        { return refNodeSet; }
 
   // Debugging support methods
-  void print(std::ostream &O) const;
+  void print(std::ostream &O, const std::string& prefix=std::string("")) const;
   void dump() const;
 };
 
@@ -114,8 +114,7 @@
 class FunctionModRefInfo {
   const Function&       F;                  // The function
   IPModRef&             IPModRefObj;        // The IPModRef Object owning this
-  const DSGraph&        funcTDGraph;        // Top-down DS graph for function
-  const DSGraph&        funcLocalGraph;     // Local DS graph for function
+  DSGraph*              funcTDGraph;        // Top-down DS graph for function
   ModRefInfo            funcModRefInfo;     // ModRefInfo for the function body
   std::map<const CallInst*, ModRefInfo*>
                         callSiteModRefInfo; // ModRefInfo for each callsite
@@ -130,15 +129,14 @@
 
 public:
   /* ctor */    FunctionModRefInfo      (const Function& func,
-                                         IPModRef& IPModRefObj,
-                                         const DSGraph& tdg,
-                                         const DSGraph& ldg);
+                                         IPModRef&       IPModRefObj,
+                                         DSGraph*        tdgClone);
   /* dtor */    ~FunctionModRefInfo     ();
 
   // Identify the function and its relevant DS graph
   // 
   const Function& getFunction() const   { return F; }
-  const DSGraph&  getFuncGraph() const  { return funcTDGraph; }
+  const DSGraph&  getFuncGraph() const  { return *funcTDGraph; }
 
   // Retrieve Mod/Ref results for a single call site and for the function body
   // 





More information about the llvm-commits mailing list