clang
10.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. More... | |
SourceLocation | getEndLoc () const |
Returns the ending location of the clause. More... | |
void | setLocStart (SourceLocation Loc) |
Sets the starting location of the clause. More... | |
void | setLocEnd (SourceLocation Loc) |
Sets the ending location of the clause. More... | |
OpenMPClauseKind | getClauseKind () const |
Returns kind of OpenMP clause (private, shared, reduction, etc.). More... | |
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. More... | |
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 51 of file OpenMPClause.h.
Definition at line 83 of file OpenMPClause.h.
using clang::OMPClause::child_range = llvm::iterator_range<child_iterator> |
Definition at line 85 of file OpenMPClause.h.
Definition at line 84 of file OpenMPClause.h.
using clang::OMPClause::const_child_range = llvm::iterator_range<const_child_iterator> |
Definition at line 86 of file OpenMPClause.h.
|
inlineprotected |
Definition at line 62 of file OpenMPClause.h.
OMPClause::child_range OMPClause::children | ( | ) |
Definition at line 27 of file OpenMPClause.cpp.
References getClauseKind().
Referenced by clang::Sema::ActOnOpenMPRegionEnd(), children(), clang::OMPAllocateClause::children(), clang::OMPScheduleClause::children(), clang::OMPPrivateClause::children(), clang::OMPFirstprivateClause::children(), clang::OMPLastprivateClause::children(), clang::OMPSharedClause::children(), clang::OMPReductionClause::children(), clang::OMPTaskReductionClause::children(), clang::OMPInReductionClause::children(), clang::children(), OMPAlignedClause::children(), OMPCopyinClause::children(), OMPCopyprivateClause::children(), OMPFlushClause::children(), OMPDependClause::children(), OMPMapClause::children(), OMPDistScheduleClause::children(), OMPToClause::children(), OMPFromClause::children(), OMPUseDevicePtrClause::children(), OMPIsDevicePtrClause::children(), and OMPNontemporalClause::children().
|
inline |
Definition at line 89 of file OpenMPClause.h.
References children().
Definition at line 103 of file OpenMPClause.h.
|
inline |
Returns the starting location of the clause.
Definition at line 67 of file OpenMPClause.h.
Referenced by clang::Sema::ActOnOpenMPOrderedDirective(), clang::Sema::ActOnOpenMPSingleDirective(), checkGrainsizeNumTasksClauses(), checkReductionClauseWithNogroup(), clang::TreeTransform< Derived >::TransformOMPExecutableDirective(), clang::TextNodeDumper::Visit(), and clang::ASTRecordWriter::writeOMPClause().
|
inline |
Returns kind of OpenMP clause (private, shared, reduction, etc.).
Definition at line 79 of file OpenMPClause.h.
Referenced by clang::Sema::ActOnOpenMPRegionEnd(), clang::Sema::ActOnOpenMPSingleDirective(), checkAllocateClauses(), checkGrainsizeNumTasksClauses(), checkSimdlenSafelenSpecified(), children(), clang::OMPAllocatorClause::classof(), clang::OMPAllocateClause::classof(), clang::OMPIfClause::classof(), clang::OMPFinalClause::classof(), clang::OMPNumThreadsClause::classof(), clang::OMPSafelenClause::classof(), clang::OMPSimdlenClause::classof(), clang::OMPCollapseClause::classof(), clang::OMPDefaultClause::classof(), clang::OMPProcBindClause::classof(), clang::OMPUnifiedAddressClause::classof(), clang::OMPUnifiedSharedMemoryClause::classof(), clang::OMPReverseOffloadClause::classof(), clang::OMPDynamicAllocatorsClause::classof(), clang::OMPAtomicDefaultMemOrderClause::classof(), clang::OMPScheduleClause::classof(), clang::OMPOrderedClause::classof(), clang::OMPNowaitClause::classof(), clang::OMPUntiedClause::classof(), clang::OMPMergeableClause::classof(), clang::OMPReadClause::classof(), clang::OMPWriteClause::classof(), clang::OMPUpdateClause::classof(), clang::OMPCaptureClause::classof(), clang::OMPSeqCstClause::classof(), clang::OMPPrivateClause::classof(), clang::OMPFirstprivateClause::classof(), clang::OMPLastprivateClause::classof(), clang::OMPSharedClause::classof(), clang::OMPReductionClause::classof(), clang::OMPTaskReductionClause::classof(), clang::OMPInReductionClause::classof(), clang::classof(), clang::OMPClauseWithPreInit::get(), clang::OMPClauseWithPostUpdate::get(), clang::ast_type_traits::ASTNodeKind::getFromNode(), hasClauses(), used_children(), clang::TextNodeDumper::Visit(), and clang::ASTRecordWriter::writeOMPClause().
|
inline |
Returns the ending location of the clause.
Definition at line 70 of file OpenMPClause.h.
Referenced by checkReductionClauseWithNogroup(), clang::TreeTransform< Derived >::TransformOMPExecutableDirective(), clang::TextNodeDumper::Visit(), and clang::ASTRecordWriter::writeOMPClause().
|
inline |
Definition at line 81 of file OpenMPClause.h.
References clang::SourceLocation::isInvalid().
Referenced by clang::TextNodeDumper::Visit().
|
inline |
Sets the ending location of the clause.
Definition at line 76 of file OpenMPClause.h.
|
inline |
Sets the starting location of the clause.
Definition at line 73 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 39 of file OpenMPClause.cpp.
References getClauseKind(), clang::OMPC_device_type, clang::OMPC_match, clang::OMPC_threadprivate, clang::OMPC_uniform, and clang::OMPC_unknown.
Referenced by clang::OMPIfClause::children(), clang::OMPFinalClause::children(), clang::children(), OMPPriorityClause::children(), OMPGrainsizeClause::children(), OMPNumTasksClause::children(), clang::OMPSharedClause::CreateEmpty(), clang::OMPIfClause::used_children(), clang::OMPFinalClause::used_children(), clang::OMPFirstprivateClause::used_children(), clang::OMPReductionClause::used_children(), clang::used_children(), OMPMapClause::used_children(), OMPPriorityClause::used_children(), OMPGrainsizeClause::used_children(), and OMPNumTasksClause::used_children().
|
inline |
Definition at line 98 of file OpenMPClause.h.