diff options
| author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-11-27 17:38:56 +0000 |
|---|---|---|
| committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-11-27 17:38:56 +0000 |
| commit | 9409087108be3313648ca92512ebd22bb729a3d1 (patch) | |
| tree | f6c046ab910654c068ab973306f086e9ae3cd875 /llvm | |
| parent | 19b3303f3d274218fff6c4cf8b42495d1c45f75b (diff) | |
| download | bcm5719-llvm-9409087108be3313648ca92512ebd22bb729a3d1.tar.gz bcm5719-llvm-9409087108be3313648ca92512ebd22bb729a3d1.zip | |
No longer need local graph to find call sites.
Also some major fixes within IPModRef.cpp.
llvm-svn: 4834
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Analysis/IPModRef.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/include/llvm/Analysis/IPModRef.h b/llvm/include/llvm/Analysis/IPModRef.h index 52d5c7edc45..78da986268c 100644 --- a/llvm/include/llvm/Analysis/IPModRef.h +++ b/llvm/include/llvm/Analysis/IPModRef.h @@ -96,7 +96,7 @@ public: 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 @@ public: 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 @@ class FunctionModRefInfo { 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 // |

