AstUtilInterface::CollectSideEffectVariables¶
Collect non-local variables that are read and written within the given ast. This is a wrapper of the ComputeAstSideEffects function to provide a more convenient user interface. Returns true if the returned variables are guaranteed to be complete; returns false otherwise.
Synopsis¶
Declared in <src/midend/astUtil/AstUtilInterface.h>
void
CollectSideEffectVariables(
SgNode* ast,
std::vector<AstNodePtr>* writeVars = 0,
std::vector<AstNodePtr>* readVars = 0,
std::vector<AstNodePtr>* callVars = 0); Parameters¶
| Name | Description |
|---|---|
| ast | This class represents the base class for all IR nodes within Sage III. |
| writeVars | A standard container which offers fixed time access to individual elements in any order. |
| readVars | A standard container which offers fixed time access to individual elements in any order. |
| callVars | A standard container which offers fixed time access to individual elements in any order. |
Created with MrDocs