Skip to content

VariableRenaming::UniqueNameTraversal

Class to traverse the AST and assign unique names to every varRef.

Synopsis

Declared in <src/midend/programAnalysis/variableRenaming/VariableRenaming.h>

class UniqueNameTraversal
    : public AstBottomUpProcessing<VariableRenaming::VarRefSynthAttr>

Base Classes

Name Description
AstBottomUpProcessing<VariableRenaming::VarRefSynthAttr> Attribute evaluator for synthesized attributes.

Member Functions

Name Description
UniqueNameTraversal
UniqueNameTraversal( VariableRenaming* varRenaming, std::vector<SgInitializedName*> const& allNames); [constructor]
Constructor
evaluateSynthesizedAttribute
virtual VariableRenaming::VarRefSynthAttr evaluateSynthesizedAttribute( SgNode* node, SynthesizedAttributesList attrs) override; [virtual]
Called to evaluate the synthesized attribute on every node.
setNodeSuccessors
virtual void setNodeSuccessors( SgNode* node, SuccessorsContainer& succContainer) override; [virtual]

Private Type Aliases

Name
SuccessorsContainer

Private Member Functions

Name Description
resolveTemporaryInitNames
SgInitializedName* resolveTemporaryInitNames(SgInitializedName* name);
Finds initialized names that are "fake" (refer to p_prev_decl_item in the SgInitializedName docs) and replaces them with the true declaration.

Private Data Members

Name Description
allInitNames All the initialized names in the project.
varRename

Created with MrDocs