clang: clang::OMPUpdateClause Class Reference (original) (raw)
This represents 'update' clause in the '#pragma omp atomic' directive. More...
#include "[clang/AST/OpenMPClause.h](OpenMPClause%5F8h%5Fsource.html)"
| 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.
#pragma omp atomic update
In this example directive '#pragma omp atomic' has 'update' clause. Also, this class represents 'update' clause in '#pragma omp depobj' directive.
#pragma omp depobj(a) update(in)
In this example directive '#pragma omp depobj' has 'update' clause with 'in' dependence kind.
Definition at line 2800 of file OpenMPClause.h.
◆ children() [1/2]
| child_range clang::OMPUpdateClause::children ( ) | inline |
|---|
◆ children() [2/2]
◆ classof()
| bool clang::OMPUpdateClause::classof ( const OMPClause * T) | inlinestatic |
|---|
◆ Create() [1/2]
◆ Create() [2/2]
Creates clause for 'depobj' directive.
Parameters
| 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 415 of file OpenMPClause.cpp.
References clang::C.
◆ CreateEmpty()
◆ getArgumentLoc()
| SourceLocation clang::OMPUpdateClause::getArgumentLoc ( ) const | inline |
|---|
Gets the location of argument in clause for 'depobj' directive.
Definition at line 2904 of file OpenMPClause.h.
◆ getDependencyKind()
Gets the dependence kind in clause for 'depobj' directive.
Definition at line 2910 of file OpenMPClause.h.
◆ getLParenLoc()
Gets the location of '(' in clause for 'depobj' directive.
Definition at line 2898 of file OpenMPClause.h.
◆ isExtended()
| bool clang::OMPUpdateClause::isExtended ( ) const | inline |
|---|
Checks if the clause is the extended clauses for 'depobj' directive.
Definition at line 2880 of file OpenMPClause.h.
◆ used_children() [1/2]
| child_range clang::OMPUpdateClause::used_children ( ) | inline |
|---|
◆ used_children() [2/2]
◆ OMPClauseReader
The documentation for this class was generated from the following files:
- include/clang/AST/OpenMPClause.h
- lib/AST/OpenMPClause.cpp