Skip to content

VariableRenaming::getAllUsesForDef

All overloads of VariableRenaming::getAllUsesForDef

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

Synopsis

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

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

Description

This will retrieve a list of nodes of type T that use the specified var:num combo. ex. int i = s2.y1; //Search for s:y1,AssignOp will yield the AssignOp

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