|
clang 24.0.0git
|
This is a basic class for representing single OpenMP clause. More...
#include "clang/AST/OpenMPClause.h"
Public Types | |
| 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> |
Public Member Functions | |
| 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 bool | classof (const OMPClause *) |
Protected Member Functions | |
| OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc) | |
This is a basic class for representing single OpenMP clause.
Definition at line 106 of file OpenMPClause.h.
Definition at line 138 of file OpenMPClause.h.
| using clang::OMPClause::child_range = llvm::iterator_range<child_iterator> |
Definition at line 140 of file OpenMPClause.h.
Definition at line 139 of file OpenMPClause.h.
| using clang::OMPClause::const_child_range = llvm::iterator_range<const_child_iterator> |
Definition at line 141 of file OpenMPClause.h.
|
inlineprotected |
Definition at line 117 of file OpenMPClause.h.
Referenced by children(), classof(), clang::OMPCountsClause::classof(), clang::OMPDefaultClause::classof(), clang::OMPDepthClause::classof(), clang::OMPIfClause::classof(), clang::OMPLoopRangeClause::classof(), clang::OMPNoChildClause< ClauseKind >::classof(), clang::OMPPartialClause::classof(), clang::OMPPermutationClause::classof(), clang::OMPSizesClause::classof(), clang::OMPThreadsetClause::classof(), clang::OMPCountsClause::llvm::TrailingObjects< OMPCountsClause, Expr * >, clang::OMPSizesClause::llvm::TrailingObjects< OMPSizesClause, Expr * >, clang::OMPDepthClause::OMPClauseReader, clang::OMPDefaultClause::OMPDefaultClause(), clang::OMPDefaultClause::OMPDefaultClause(), clang::OMPDepthClause::OMPDepthClause(), clang::OMPDirectiveListClause< T >::OMPDirectiveListClause(), clang::OMPIfClause::OMPIfClause(), clang::OMPIfClause::OMPIfClause(), clang::OMPLoopRangeClause::OMPLoopRangeClause(), clang::OMPLoopRangeClause::OMPLoopRangeClause(), clang::OMPNoChildClause< ClauseKind >::OMPNoChildClause(), clang::OMPNoChildClause< ClauseKind >::OMPNoChildClause(), clang::OMPPartialClause::OMPPartialClause(), clang::OMPPartialClause::OMPPartialClause(), clang::OMPThreadsetClause::OMPThreadsetClause(), clang::OMPThreadsetClause::OMPThreadsetClause(), clang::OMPVarListClause< T >::OMPVarListClause(), and used_children().
| OMPClause::child_range OMPClause::children | ( | ) |
Definition at line 45 of file OpenMPClause.cpp.
References getClauseKind().
Referenced by children(), and used_children().
|
inline |
Definition at line 144 of file OpenMPClause.h.
References children(), and OMPClause().
Definition at line 156 of file OpenMPClause.h.
References OMPClause().
|
inline |
Returns the starting location of the clause.
Definition at line 122 of file OpenMPClause.h.
Referenced by clang::SemaOpenMP::ActOnOpenMPFlushDirective(), clang::SemaOpenMP::ActOnOpenMPOrderedDirective(), clang::SemaOpenMP::ActOnOpenMPSingleDirective(), clang::SemaOpenMP::ActOnOpenMPUnrollDirective(), checkMutuallyExclusiveClauses(), and checkReductionClauseWithNogroup().
|
inline |
Returns kind of OpenMP clause (private, shared, reduction, etc.).
Definition at line 134 of file OpenMPClause.h.
Referenced by clang::SemaOpenMP::ActOnOpenMPFlushDirective(), checkMutuallyExclusiveClauses(), children(), clang::CIRGen::omp::convertClause(), clang::TreeTransform< Derived >::TransformOMPClause(), and used_children().
|
inline |
Returns the ending location of the clause.
Definition at line 125 of file OpenMPClause.h.
Referenced by checkReductionClauseWithNogroup().
|
inline |
Definition at line 136 of file OpenMPClause.h.
|
inline |
Sets the ending location of the clause.
Definition at line 131 of file OpenMPClause.h.
|
inline |
Sets the starting location of the clause.
Definition at line 128 of file OpenMPClause.h.
| OMPClause::child_range OMPClause::used_children | ( | ) |
Get the iterator range for the expressions used in the clauses.
Used expressions include only the children that must be evaluated at the runtime before entering the construct.
Definition at line 58 of file OpenMPClause.cpp.
References getClauseKind().
|
inline |
Definition at line 152 of file OpenMPClause.h.
References children(), and OMPClause().