Skip to content

DFAnalysis

Synopsis

Declared in <src/midend/programAnalysis/defUseAnalysis/DFAnalysis.h>

class DFAnalysis;

Member Functions

Name Description
DFAnalysis
DFAnalysis(); [constructor]
Default constructor
~DFAnalysis
virtual ~DFAnalysis(); [destructor] [virtual]
Destructor
dfaToDOT
virtual void dfaToDOT() = 0; [virtual]
getDefFor
virtual std::vector<SgNode*> getDefFor( SgNode* node, SgInitializedName* initName) = 0; [virtual]
get the vector of defining nodes for a specific node and a initializedName.
getDefMap
virtual std::map<SgNode*, std::vector<std::pair<SgInitializedName*, SgNode*>>> getDefMap() = 0; [virtual]
getDefMultiMapFor
virtual std::vector<std::pair<SgInitializedName*, SgNode*>> getDefMultiMapFor(SgNode* node) = 0; [virtual]
get the Definition multimap of a specific SgNode.
getDefSize
virtual int getDefSize() = 0; [virtual]
getIntForSgNode
virtual int getIntForSgNode(SgNode* node) = 0; [virtual]
getUseFor
virtual std::vector<SgNode*> getUseFor( SgNode* node, SgInitializedName* initName) = 0; [virtual]
get the vector of usage nodes for a specific node and a initializedName.
getUseMap
virtual std::map<SgNode*, std::vector<std::pair<SgInitializedName*, SgNode*>>> getUseMap() = 0; [virtual]
getUseMultiMapFor
virtual std::vector<std::pair<SgInitializedName*, SgNode*>> getUseMultiMapFor(SgNode* node) = 0; [virtual]
get the Usage multimap of a specific SgNode.
getUseSize
virtual int getUseSize() = 0; [virtual]
isNodeGlobalVariable
virtual bool isNodeGlobalVariable(SgInitializedName* node) = 0; [virtual]
return whether a node is a global node
printDefMap
virtual void printDefMap() = 0; [virtual]
printUseMap
virtual void printUseMap() = 0; [virtual]
run
virtual int run() = 0;
Run the DFA analysis without debugging.
setMaps
virtual void setMaps( std::map<SgNode*, std::vector<std::pair<SgInitializedName*, SgNode*>>> def, std::map<SgNode*, std::vector<std::pair<SgInitializedName*, SgNode*>>> use) = 0; [virtual]

Derived Classes

Name Description
DefUseAnalysis

Created with MrDocs