clang 20.0.0git
|
This represents clause 'uses_allocators' in the '#pragma omp target'-based directives. More...
#include "clang/AST/OpenMPClause.h"
Classes | |
struct | Data |
Data for list of allocators. More... | |
Public Member Functions | |
SourceLocation | getLParenLoc () const |
Returns the location of '('. | |
unsigned | getNumberOfAllocators () const |
Returns number of allocators associated with the clause. | |
OMPUsesAllocatorsClause::Data | getAllocatorData (unsigned I) const |
Returns data for the specified allocator. | |
child_range | children () |
const_child_range | children () const |
child_range | used_children () |
const_child_range | used_children () const |
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 OMPUsesAllocatorsClause * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< OMPUsesAllocatorsClause::Data > Data) |
Creates clause with a list of allocators Data . | |
static OMPUsesAllocatorsClause * | CreateEmpty (const ASTContext &C, unsigned N) |
Creates an empty clause with the place for N allocators. | |
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 clause 'uses_allocators' in the '#pragma omp target'-based directives.
In this example directive '#pragma omp target' has clause 'uses_allocators' with the allocators 'default_allocator' and user-defined 'my_allocator'.
Definition at line 8784 of file OpenMPClause.h.
|
inline |
Definition at line 8877 of file OpenMPClause.h.
References Begin.
|
inline |
Definition at line 8882 of file OpenMPClause.h.
References Begin.
Definition at line 8896 of file OpenMPClause.h.
References clang::T.
|
static |
Creates clause with a list of allocators Data
.
C | AST context. |
StartLoc | Starting location of the clause. |
LParenLoc | Location of '('. |
EndLoc | Ending location of the clause. |
Data | List of allocators. |
Definition at line 1606 of file OpenMPClause.cpp.
References clang::C.
Referenced by clang::SemaOpenMP::ActOnOpenMPUsesAllocatorClause().
|
static |
Creates an empty clause with the place for N
allocators.
C | AST context. |
N | The number of allocators. |
Definition at line 1619 of file OpenMPClause.cpp.
References clang::C.
Referenced by clang::OMPClauseReader::readClause().
OMPUsesAllocatorsClause::Data OMPUsesAllocatorsClause::getAllocatorData | ( | unsigned | I | ) | const |
Returns data for the specified allocator.
Definition at line 1587 of file OpenMPClause.cpp.
References clang::OMPUsesAllocatorsClause::Data::Allocator, clang::OMPUsesAllocatorsClause::Data::AllocatorTraits, clang::OMPUsesAllocatorsClause::Data::LParenLoc, and clang::OMPUsesAllocatorsClause::Data::RParenLoc.
|
inline |
Returns the location of '('.
Definition at line 8868 of file OpenMPClause.h.
|
inline |
Returns number of allocators associated with the clause.
Definition at line 8871 of file OpenMPClause.h.
|
inline |
Definition at line 8889 of file OpenMPClause.h.
|
inline |
Definition at line 8892 of file OpenMPClause.h.
|
friend |
Definition at line 8800 of file OpenMPClause.h.