Skip to content

OmpSupport::getDataSharingAttribute

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.

Synopsis

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

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

Parameters

Name

Description

var

This class represents the concept of a name within the compiler.

anchor_node

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

Created with MrDocs