clang 20.0.0git
|
This represents 'update' clause in the '#pragma omp atomic' directive. More...
#include "clang/AST/OpenMPClause.h"
Public Member Functions | |
bool | isExtended () const |
Checks if the clause is the extended clauses for 'depobj' directive. | |
child_range | children () |
const_child_range | children () const |
child_range | used_children () |
const_child_range | used_children () const |
SourceLocation | getLParenLoc () const |
Gets the location of '(' in clause for 'depobj' directive. | |
SourceLocation | getArgumentLoc () const |
Gets the location of argument in clause for 'depobj' directive. | |
OpenMPDependClauseKind | getDependencyKind () const |
Gets the dependence kind in clause for 'depobj' directive. | |
Public Member Functions inherited from clang::OMPClause | |
SourceLocation | getBeginLoc () const |
Returns the starting location of the clause. | |
SourceLocation | getEndLoc () const |
Returns the ending location of the clause. | |
void | setLocStart (SourceLocation Loc) |
Sets the starting location of the clause. | |
void | setLocEnd (SourceLocation Loc) |
Sets the ending location of the clause. | |
OpenMPClauseKind | getClauseKind () const |
Returns kind of OpenMP clause (private, shared, reduction, etc.). | |
bool | isImplicit () const |
child_range | children () |
const_child_range | children () const |
child_range | used_children () |
Get the iterator range for the expressions used in the clauses. | |
const_child_range | used_children () const |
Static Public Member Functions | |
static OMPUpdateClause * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc) |
Creates clause for 'atomic' directive. | |
static OMPUpdateClause * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ArgumentLoc, OpenMPDependClauseKind DK, SourceLocation EndLoc) |
Creates clause for 'depobj' directive. | |
static OMPUpdateClause * | CreateEmpty (const ASTContext &C, bool IsExtended) |
Creates an empty clause with the place for N variables. | |
static bool | classof (const OMPClause *T) |
Static Public Member Functions inherited from clang::OMPClause | |
static bool | classof (const OMPClause *) |
Friends | |
class | OMPClauseReader |
Additional Inherited Members | |
Public Types inherited from clang::OMPClause | |
using | child_iterator = StmtIterator |
using | const_child_iterator = ConstStmtIterator |
using | child_range = llvm::iterator_range< child_iterator > |
using | const_child_range = llvm::iterator_range< const_child_iterator > |
Protected Member Functions inherited from clang::OMPClause | |
OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc) | |
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.
Definition at line 2471 of file OpenMPClause.h.
|
inline |
Definition at line 2553 of file OpenMPClause.h.
|
inline |
Definition at line 2557 of file OpenMPClause.h.
Definition at line 2586 of file OpenMPClause.h.
References clang::T.
|
static |
Creates clause for 'atomic' directive.
C | AST context. |
StartLoc | Starting location of the clause. |
EndLoc | Ending location of the clause. |
Definition at line 393 of file OpenMPClause.cpp.
References clang::C.
Referenced by clang::SemaOpenMP::ActOnOpenMPUpdateClause().
|
static |
Creates clause for 'depobj' directive.
C | AST context. |
StartLoc | Starting location of the clause. |
LParenLoc | Location of '('. |
ArgumentLoc | Location of the argument. |
DK | Dependence kind. |
EndLoc | Ending location of the clause. |
Definition at line 400 of file OpenMPClause.cpp.
References clang::C.
|
static |
Creates an empty clause with the place for N variables.
C | AST context. |
IsExtended | true if extended clause for 'depobj' directive must be created. |
Definition at line 414 of file OpenMPClause.cpp.
References clang::C.
Referenced by clang::OMPClauseReader::readClause().
|
inline |
Gets the location of argument in clause for 'depobj' directive.
Definition at line 2575 of file OpenMPClause.h.
|
inline |
Gets the dependence kind in clause for 'depobj' directive.
Definition at line 2581 of file OpenMPClause.h.
|
inline |
Gets the location of '(' in clause for 'depobj' directive.
Definition at line 2569 of file OpenMPClause.h.
|
inline |
Checks if the clause is the extended clauses for 'depobj' directive.
Definition at line 2551 of file OpenMPClause.h.
|
inline |
Definition at line 2561 of file OpenMPClause.h.
|
inline |
Definition at line 2564 of file OpenMPClause.h.
|
friend |
Definition at line 2475 of file OpenMPClause.h.