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(
SgStatement const* s,
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 |
s |
This class represents the notion of a statement. |
syms |
Stores a collection of SgVariableSymbols (var syms). |
Created with MrDocs