Skip to content

OmpSupport::getDataSharingAttribute

getDataSharingAttribute overloads

Synopses

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

Return the OpenMP data sharing attribute type of a variable reference

Return the data sharing attribute type of a variable, specified as a symbol and an anchor node (Must be the inner most node associated with the variable reference, e.g. a SgVarRefExp, SgVariableDeclaration, etc) Possible returned values include: e_shared, e_private, e_firstprivate, e_lastprivate, e_reduction, e_threadprivate, e_copyin, and e_copyprivate.

[[visibility]]
omp_construct_enum
getDataSharingAttribute(
    SgSymbol* var,
    SgNode* anchor_node);

Created with MrDocs