class OMPUpdateClause
Declaration
class OMPUpdateClause : public OMPClause, private TrailingObjects { /* full declaration omitted */ };
Description
This represents 'update' clause in the '#pragma omp atomic' directive. In this example directive '#pragma omp atomic' has 'update' clause. Also, this class represents 'update' clause in '#pragma omp depobj' directive. In this example directive '#pragma omp depobj' has 'update' clause with 'in' dependence kind.
Declared at: clang/include/clang/AST/OpenMPClause.h:2067
Inherits from: OMPClause, TrailingObjects
Member Variables
- private bool IsExtended = false
- true if extended version of the clause for 'depobj' directive.
Method Overview
- public static clang::OMPUpdateClause * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation EndLoc)
- public static clang::OMPUpdateClause * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation ArgumentLoc, clang::OpenMPDependClauseKind DK, clang::SourceLocation EndLoc)
- public static clang::OMPUpdateClause * CreateEmpty(const clang::ASTContext & C, bool IsExtended)
- private OMPUpdateClause(clang::SourceLocation StartLoc, clang::SourceLocation EndLoc, bool IsExtended)
- private OMPUpdateClause(bool IsExtended)
- public clang::OMPClause::child_range children()
- public clang::OMPClause::const_child_range children() const
- public static bool classof(const clang::OMPClause * T)
- public clang::SourceLocation getArgumentLoc() const
- public clang::OpenMPDependClauseKind getDependencyKind() const
- public clang::SourceLocation getLParenLoc() const
- public bool isExtended() const
- private size_t numTrailingObjects(OverloadToken<clang::SourceLocation>) const
- private void setArgumentLoc(clang::SourceLocation Loc)
- private void setDependencyKind(clang::OpenMPDependClauseKind DK)
- private void setLParenLoc(clang::SourceLocation Loc)
- public clang::OMPClause::child_range used_children()
- public clang::OMPClause::const_child_range used_children() const
Inherited from OMPClause:
- public children
- public children
- public classof
- public getBeginLoc
- public getClauseKind
- public getEndLoc
- public isImplicit
- public setLocEnd
- public setLocStart
- public used_children
- public used_children
Methods
¶static clang::OMPUpdateClause* Create(
const clang::ASTContext& C,
clang::SourceLocation StartLoc,
clang::SourceLocation EndLoc)
static clang::OMPUpdateClause* Create(
const clang::ASTContext& C,
clang::SourceLocation StartLoc,
clang::SourceLocation EndLoc)
Description
Creates clause for 'atomic' directive.
Declared at: clang/include/clang/AST/OpenMPClause.h:2122
Parameters
- const clang::ASTContext& C
- AST context.
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation EndLoc
- Ending location of the clause.
¶static clang::OMPUpdateClause* Create(
const clang::ASTContext& C,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation ArgumentLoc,
clang::OpenMPDependClauseKind DK,
clang::SourceLocation EndLoc)
static clang::OMPUpdateClause* Create(
const clang::ASTContext& C,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation ArgumentLoc,
clang::OpenMPDependClauseKind DK,
clang::SourceLocation EndLoc)
Description
Creates clause for 'depobj' directive.
Declared at: clang/include/clang/AST/OpenMPClause.h:2133
Parameters
- const clang::ASTContext& C
- AST context.
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::SourceLocation ArgumentLoc
- Location of the argument.
- clang::OpenMPDependClauseKind DK
- Dependence kind.
- clang::SourceLocation EndLoc
- Ending location of the clause.
¶static clang::OMPUpdateClause* CreateEmpty(
const clang::ASTContext& C,
bool IsExtended)
static clang::OMPUpdateClause* CreateEmpty(
const clang::ASTContext& C,
bool IsExtended)
Description
Creates an empty clause with the place for \a N variables.
Declared at: clang/include/clang/AST/OpenMPClause.h:2144
Parameters
- const clang::ASTContext& C
- AST context.
- bool IsExtended
- true if extended clause for 'depobj' directive must be created.
¶OMPUpdateClause(clang::SourceLocation StartLoc,
clang::SourceLocation EndLoc,
bool IsExtended)
OMPUpdateClause(clang::SourceLocation StartLoc,
clang::SourceLocation EndLoc,
bool IsExtended)
Description
Build 'update' clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:2106
Parameters
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation EndLoc
- Ending location of the clause.
- bool IsExtended
¶OMPUpdateClause(bool IsExtended)
OMPUpdateClause(bool IsExtended)
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:2112
Parameters
- bool IsExtended
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:2149
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:2153
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:2182
Parameters
- const clang::OMPClause* T
¶clang::SourceLocation getArgumentLoc() const
clang::SourceLocation getArgumentLoc() const
Description
Gets the location of argument in clause for 'depobj' directive.
Declared at: clang/include/clang/AST/OpenMPClause.h:2171
¶clang::OpenMPDependClauseKind getDependencyKind()
const
clang::OpenMPDependClauseKind getDependencyKind()
const
Description
Gets the dependence kind in clause for 'depobj' directive.
Declared at: clang/include/clang/AST/OpenMPClause.h:2177
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Description
Gets the location of '(' in clause for 'depobj' directive.
Declared at: clang/include/clang/AST/OpenMPClause.h:2165
¶bool isExtended() const
bool isExtended() const
Description
Checks if the clause is the extended clauses for 'depobj' directive.
Declared at: clang/include/clang/AST/OpenMPClause.h:2147
¶size_t numTrailingObjects(
OverloadToken<clang::SourceLocation>) const
size_t numTrailingObjects(
OverloadToken<clang::SourceLocation>) const
Description
Define the sizes of each trailing object array except the last one. This is required for TrailingObjects to work properly.
Declared at: clang/include/clang/AST/OpenMPClause.h:2079
Parameters
- OverloadToken<clang::SourceLocation>
¶void setArgumentLoc(clang::SourceLocation Loc)
void setArgumentLoc(clang::SourceLocation Loc)
Description
Sets the location of '(' in clause for 'depobj' directive.
Declared at: clang/include/clang/AST/OpenMPClause.h:2091
Parameters
¶void setDependencyKind(
clang::OpenMPDependClauseKind DK)
void setDependencyKind(
clang::OpenMPDependClauseKind DK)
Description
Sets the dependence kind for the clause for 'depobj' directive.
Declared at: clang/include/clang/AST/OpenMPClause.h:2097
Parameters
- clang::OpenMPDependClauseKind DK
¶void setLParenLoc(clang::SourceLocation Loc)
void setLParenLoc(clang::SourceLocation Loc)
Description
Sets the location of '(' in clause for 'depobj' directive.
Declared at: clang/include/clang/AST/OpenMPClause.h:2085
Parameters
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:2157
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:2160