No longer need local graph to find call sites.

Also some major fixes within IPModRef.cpp.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4834 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2002-11-27 17:38:56 +00:00
parent 9a96428297
commit f443e6698f

View File

@ -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
//