Synopsis Base Classes Member Functions Private Type Aliases Private Member Functions Private Data Members
This class collects all the defs and uses associated with each node in the traversed CFG. Note that this does not compute reachability information; it just records each instance of a variable used or defined.
Synopsis Declared in <src/midend/programAnalysis/variableRenaming/VariableRenaming.h >
class DefsAndUsesTraversal
: public AstBottomUpProcessing <ChildUses > Base Classes Member Functions Name Description DefsAndUsesTraversalDefsAndUsesTraversal(VariableRenaming* ssa); [constructor] Construct from VariableRenaming evaluateSynthesizedAttributevirtual ChildUses evaluateSynthesizedAttribute( SgNode* node, SynthesizedAttributesList attrs) override; [virtual] Called to evaluate the synthesized attribute on every node. setNodeSuccessorsvirtual void setNodeSuccessors( SgNode* node, SuccessorsContainer& succContainer) override; [virtual]
Private Type Aliases Private Member Functions Name Description addDefForVarAtNodevoid addDefForVarAtNode( SgVarRefExp* currentVar, SgNode* defNode); Mark the given variable as being defined at the node. addUsesToNodevoid addUsesToNode( SgNode* node, std::vector<SgNode*> uses); Mark all the uses as occurring at the specified node.
Private Data Members Created with MrDocs