Skip to content

VariableRenaming::getDefsAtNodeForName

Get name:num mapping for def of the specified variable at the given node.

Synopsis

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

NumNodeRenameEntry
getDefsAtNodeForName(
    SgNode* node,
    VarName const& var);

Description

This will return the combination of original and expanded defs of the given variable on this node.

ex. s.x = 5; //(s is expanded & s.x is original) Looking for s will return this node, even though s is an expanded definition.

Return Value

A table mapping VarName‐>(num, defNode) for every varName defined at node. Empty table otherwise.

Parameters

Name

Description

node

The node to get defs for.

var

The variable to get defs for.

Created with MrDocs