Skip to content

DefUseAnalysis

Synopsis

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

class [[visibility("default")]] DefUseAnalysis
    : public DFAnalysis

Base Classes

Name Description
DFAnalysis

Member Functions

Name Description
DefUseAnalysis
DefUseAnalysis(SgProject* proj); [constructor]
Construct from SgProject
~DefUseAnalysis
virtual ~DefUseAnalysis(); [destructor] [virtual]
Destructor
addDefElement
void addDefElement( SgNode* sgNode, SgInitializedName* initName, SgNode* defNode);
addID
bool addID(SgNode* sgNode);
addUseElement
void addUseElement( SgNode* sgNode, SgInitializedName* initName, SgNode* defNode);
clearUseOfElement
void clearUseOfElement( SgNode* sgNode, SgInitializedName* initName);
dfaToDOT
virtual void dfaToDOT(); [virtual]
flush
void flush();
flushDefuse
void flushDefuse();
flushHelp
void flushHelp();
getAnyFor
std::vector<SgNode*> getAnyFor( multitype const* mul, SgInitializedName* initName);
getDefFor
virtual std::vector<SgNode*> getDefFor( SgNode* node, SgInitializedName* initName); [virtual]
getDefMap
virtual std::map<SgNode*, multitype> getDefMap(); [virtual]
getDefMultiMapFor
virtual multitype getDefMultiMapFor(SgNode* node); [virtual]
getDefSize
virtual int getDefSize(); [virtual]
getGlobalVariables
std::vector<SgInitializedName*> getGlobalVariables();
getIntForSgNode
virtual int getIntForSgNode(SgNode* node); [virtual]
getUseFor
virtual std::vector<SgNode*> getUseFor( SgNode* node, SgInitializedName* initName); [virtual]
getUseMap
virtual std::map<SgNode*, multitype> getUseMap(); [virtual]
getUseMultiMapFor
virtual multitype getUseMultiMapFor(SgNode* node); [virtual]
getUseSize
virtual int getUseSize(); [virtual]
isNodeGlobalVariable
virtual bool isNodeGlobalVariable(SgInitializedName* node); [virtual]
mapDefUnion
void mapDefUnion( SgNode* before, SgNode* other, SgNode* current);
mapUseUnion
void mapUseUnion( SgNode* before, SgNode* other, SgNode* current);
printDefMap
virtual void printDefMap(); [virtual]
printMultiMap
void printMultiMap(multitype const& type);
printUseMap
virtual void printUseMap(); [virtual]
replaceElement
void replaceElement( SgNode* sgNode, SgInitializedName* initName);
run
virtual int run();
searchMap
bool searchMap(SgNode* node);
setMaps
virtual void setMaps( std::map<SgNode*, multitype> def, std::map<SgNode*, multitype> use); [virtual]
start_traversal_of_one_function
int start_traversal_of_one_function(SgFunctionDefinition* proc);

Private Type Aliases

Name
convtype
multitype
tabletype

Private Member Functions

Name
addAnyElement
void addAnyElement( tabletype* tabl, SgNode* sgNode, SgInitializedName* initName, SgNode* defNode);
find_all_global_variables
void find_all_global_variables();
getInitName
std::string getInitName(SgNode* sgNode);
mapAnyUnion
void mapAnyUnion( tabletype* tabl, SgNode* before, SgNode* other, SgNode* current);
printAnyMap
void printAnyMap(tabletype* tabl);
searchMap
bool searchMap( tabletype const* ltable, SgNode* node);
searchVizzMap
bool searchVizzMap(SgNode* node);
start_traversal_of_functions
bool start_traversal_of_functions();

Private Data Members

Name
DEBUG_MODE
dfaFunctions
globalVarList
nrOfNodesVisited
project
table
usetable
vizzhelp

Private Static Data Members

Name
sgNodeCounter

Created with MrDocs