Skip to content

OmpSupport::replaceVariableReferences

Replace references to oldVar within root with references to newVar, return the number of references replaced.

Synopsis

Declared in <src/midend/programTransformation/ompLowering/omp_lowering.h>

[[visibility]]
int
replaceVariableReferences(
    SgNode* root,
    SgVariableSymbol* oldVar,
    SgVariableSymbol* newVar);

Parameters

Name

Description

root

This class represents the base class for all IR nodes within Sage III.

oldVar

This class represents the concept of a variable name within the compiler (a

newVar

This class represents the concept of a variable name within the compiler (a

Created with MrDocs