Skip to content

VariableRenaming::getAllUsesForDef

getAllUsesForDef overloads

Synopses

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

Retrieve a list of nodes that use the var:num specified.

NodeVec
getAllUsesForDef(
    VarName const& var,
    int num);

Retrieve a list of nodes of type T that use the var:num specified.

template<typename T>
std::vector<T*>
getAllUsesForDef(
    VarName const& var,
    int num);

Return Value

A vector containing the usage nodes of the variable. Empty vector otherwise.

Parameters

Name

Description

var

The variable name to find.

num

The revision of the variable to find.

Created with MrDocs