Skip to content

VariableRenaming::mergeDefs

Called to merge the defs from previous nodes in the CFG to this one.

Synopsis

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

bool
mergeDefs(
    cfgNode curNode,
    bool* memberRefInserted,
    NodeVec& changedNodes);

Description

This will merge the def tables from all previous CFG nodes, merge in the defs at this node, and update this node's table if needed. If it locates a def that is not in the table, it will attempt to find the location where that member was first defined and insert a definition there. It will then set the outParameter to indicate that it back‐inserted a def.

Return Value

Whether the defs were different from those already on the node.

Parameters

Name

Description

curNode

The node to merge defs onto.

memberRefInserted

Reference that indicates whether the function back‐inserted a definition.

changedNodes

Vector of SgNode*

Created with MrDocs