clang 20.0.0git
|
This is a basic class for representing single OpenMP clause. More...
#include "clang/AST/OpenMPClause.h"
Inherited by clang::OMPDirectiveListClause< OMPAbsentClause >, clang::OMPDirectiveListClause< OMPContainsClause >, clang::OMPNoChildClause< llvm::omp::OMPC_bind >, clang::OMPNoChildClause< llvm::omp::OMPC_full >, clang::OMPNoChildClause< llvm::omp::OMPC_no_openmp >, clang::OMPNoChildClause< llvm::omp::OMPC_no_openmp_routines >, clang::OMPNoChildClause< llvm::omp::OMPC_no_parallelism >, clang::OMPNoChildClause< llvm::omp::OMPC_nowait >, clang::OMPNoChildClause< llvm::omp::OMPC_threads >, clang::OMPNoChildClause< llvm::omp::OMPC_unified_address >, clang::OMPNoChildClause< llvm::omp::OMPC_ompx_attribute >, clang::OMPNoChildClause< llvm::omp::OMPC_ompx_bare >, clang::OMPOneStmtClause< llvm::omp::OMPC_align, OMPClause >, clang::OMPOneStmtClause< llvm::omp::OMPC_allocator, OMPClause >, clang::OMPOneStmtClause< llvm::omp::OMPC_collapse, OMPClause >, clang::OMPOneStmtClause< llvm::omp::OMPC_detach, OMPClause >, clang::OMPOneStmtClause< llvm::omp::OMPC_filter, OMPClause >, clang::OMPOneStmtClause< llvm::omp::OMPC_final, OMPClause >, clang::OMPOneStmtClause< llvm::omp::OMPC_holds, OMPClause >, clang::OMPOneStmtClause< llvm::omp::OMPC_nocontext, OMPClause >, clang::OMPOneStmtClause< llvm::omp::OMPC_novariants, OMPClause >, clang::OMPOneStmtClause< llvm::omp::OMPC_num_threads, OMPClause >, clang::OMPOneStmtClause< llvm::omp::OMPC_safelen, OMPClause >, clang::OMPOneStmtClause< llvm::omp::OMPC_simdlen, OMPClause >, clang::OMPOneStmtClause< llvm::omp::OMPC_ompx_dyn_cgroup_mem, OMPClause >, clang::OMPVarListClause< OMPAffinityClause >, clang::OMPVarListClause< OMPAlignedClause >, clang::OMPVarListClause< OMPAllocateClause >, clang::OMPVarListClause< OMPCopyinClause >, clang::OMPVarListClause< OMPCopyprivateClause >, clang::OMPVarListClause< OMPDependClause >, clang::OMPVarListClause< OMPDoacrossClause >, clang::OMPVarListClause< OMPExclusiveClause >, clang::OMPVarListClause< OMPFirstprivateClause >, clang::OMPVarListClause< OMPFlushClause >, clang::OMPVarListClause< OMPFromClause >, clang::OMPVarListClause< OMPHasDeviceAddrClause >, clang::OMPVarListClause< OMPInReductionClause >, clang::OMPVarListClause< OMPInclusiveClause >, clang::OMPVarListClause< OMPInitClause >, clang::OMPVarListClause< OMPIsDevicePtrClause >, clang::OMPVarListClause< OMPLastprivateClause >, clang::OMPVarListClause< OMPLinearClause >, clang::OMPVarListClause< OMPMapClause >, clang::OMPVarListClause< OMPNontemporalClause >, clang::OMPVarListClause< OMPNumTeamsClause >, clang::OMPVarListClause< OMPPrivateClause >, clang::OMPVarListClause< OMPReductionClause >, clang::OMPVarListClause< OMPSharedClause >, clang::OMPVarListClause< OMPTaskReductionClause >, clang::OMPVarListClause< OMPThreadLimitClause >, clang::OMPVarListClause< OMPToClause >, clang::OMPVarListClause< OMPUseDeviceAddrClause >, clang::OMPVarListClause< OMPUseDevicePtrClause >, clang::OMPAcqRelClause, clang::OMPAcquireClause, clang::OMPAtClause, clang::OMPAtomicDefaultMemOrderClause, clang::OMPCaptureClause, clang::OMPCompareClause, clang::OMPDefaultClause, clang::OMPDefaultmapClause, clang::OMPDepobjClause, clang::OMPDestroyClause, clang::OMPDeviceClause, clang::OMPDirectiveListClause< T >, clang::OMPDistScheduleClause, clang::OMPDynamicAllocatorsClause, clang::OMPFailClause, clang::OMPGrainsizeClause, clang::OMPHintClause, clang::OMPIfClause, clang::OMPMergeableClause, clang::OMPMessageClause, clang::OMPNoChildClause< ClauseKind >, clang::OMPNogroupClause, clang::OMPNumTasksClause, clang::OMPOrderClause, clang::OMPOrderedClause, clang::OMPPartialClause, clang::OMPPermutationClause, clang::OMPPriorityClause, clang::OMPProcBindClause, clang::OMPReadClause, clang::OMPRelaxedClause, clang::OMPReleaseClause, clang::OMPReverseOffloadClause, clang::OMPSIMDClause, clang::OMPScheduleClause, clang::OMPSeqCstClause, clang::OMPSeverityClause, clang::OMPSizesClause, clang::OMPUnifiedSharedMemoryClause, clang::OMPUntiedClause, clang::OMPUpdateClause, clang::OMPUseClause, clang::OMPUsesAllocatorsClause, clang::OMPVarListClause< T >, clang::OMPWeakClause, and clang::OMPWriteClause.
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 55 of file OpenMPClause.h.
Definition at line 87 of file OpenMPClause.h.
using clang::OMPClause::child_range = llvm::iterator_range<child_iterator> |
Definition at line 89 of file OpenMPClause.h.
Definition at line 88 of file OpenMPClause.h.
using clang::OMPClause::const_child_range = llvm::iterator_range<const_child_iterator> |
Definition at line 90 of file OpenMPClause.h.
|
inlineprotected |
Definition at line 66 of file OpenMPClause.h.
OMPClause::child_range OMPClause::children | ( | ) |
Definition at line 31 of file OpenMPClause.cpp.
References getClauseKind().
Referenced by children(), and used_children().
|
inline |
Definition at line 93 of file OpenMPClause.h.
References children().
Definition at line 107 of file OpenMPClause.h.
|
inline |
Returns the starting location of the clause.
Definition at line 71 of file OpenMPClause.h.
Referenced by clang::SemaOpenMP::ActOnOpenMPFlushDirective(), clang::SemaOpenMP::ActOnOpenMPInteropDirective(), clang::SemaOpenMP::ActOnOpenMPOrderedDirective(), clang::SemaOpenMP::ActOnOpenMPRegionEnd(), clang::SemaOpenMP::ActOnOpenMPSingleDirective(), clang::SemaOpenMP::ActOnOpenMPTargetTeamsDirective(), clang::SemaOpenMP::ActOnOpenMPUnrollDirective(), checkMutuallyExclusiveClauses(), checkOrderedOrderSpecified(), and checkReductionClauseWithNogroup().
|
inline |
Returns kind of OpenMP clause (private, shared, reduction, etc.).
Definition at line 83 of file OpenMPClause.h.
Referenced by clang::SemaOpenMP::ActOnOpenMPFlushDirective(), clang::SemaOpenMP::ActOnOpenMPOrderedDirective(), clang::SemaOpenMP::ActOnOpenMPRegionEnd(), clang::SemaOpenMP::ActOnOpenMPSingleDirective(), checkMutuallyExclusiveClauses(), checkOrderedOrderSpecified(), checkSimdlenSafelenSpecified(), children(), and used_children().
|
inline |
Returns the ending location of the clause.
Definition at line 74 of file OpenMPClause.h.
Referenced by clang::SemaOpenMP::ActOnOpenMPRegionEnd(), checkOrderedOrderSpecified(), and checkReductionClauseWithNogroup().
|
inline |
Definition at line 85 of file OpenMPClause.h.
References clang::SourceLocation::isInvalid().
|
inline |
Sets the ending location of the clause.
Definition at line 80 of file OpenMPClause.h.
References Loc.
Referenced by clang::OMPFullClause::Create(), clang::OMPPermutationClause::Create(), clang::OMPSizesClause::Create(), and clang::OMPPartialClause::Create().
|
inline |
Sets the starting location of the clause.
Definition at line 77 of file OpenMPClause.h.
References Loc.
Referenced by clang::OMPFullClause::Create(), clang::OMPPermutationClause::Create(), clang::OMPSizesClause::Create(), and clang::OMPPartialClause::Create().
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 44 of file OpenMPClause.cpp.
References getClauseKind().
|
inline |
Definition at line 102 of file OpenMPClause.h.
References children().