Outliner::collectVars¶
Computes the set of variables in 's' that need to be passed to the outlined routine (semantically equivalent to shared variables in OpenMP)
Synopsis¶
Declared in <src/midend/programTransformation/astOutlining/Outliner.hh>
void
collectVars(
SgNode const* root,
SgStatement const* outline_site,
ASTtools::VarSymSet_t& syms); Description¶
Note: user codes should handle non-generic variable handling on their own. Outliner only handles generic operations. For example, in OpenMP translation calling outliner: OpenMP specific variables such as private, firstprivate, reduction variables are handled by OmpSupport::transOmpVariables() before it calls outliner. So the outliner can focus on generic operations while the caller should handle their special variables in advance.
Parameters¶
| Name | Description |
|---|---|
| root | This class represents the base class for all IR nodes within Sage III. |
| outline_site | This class represents the notion of a statement. |
| syms | Stores a collection of SgVariableSymbols (var syms). |
Created with MrDocs