clang
15.0.0git
|
This represents clauses with a list of expressions that are mappable. More...
#include "clang/AST/OpenMPClause.h"
Classes | |
class | const_component_lists_iterator |
Iterator that browse the components by lists. More... | |
Protected Member Functions | |
OMPMappableExprListClause (OpenMPClauseKind K, const OMPVarListLocTy &Locs, const OMPMappableExprListSizeTy &Sizes, bool SupportsMapper=false, NestedNameSpecifierLoc *MapperQualifierLocPtr=nullptr, DeclarationNameInfo *MapperIdInfoPtr=nullptr) | |
Build a clause for NumUniqueDeclarations declarations, NumComponentLists total component lists, and NumComponents total components. More... | |
MutableArrayRef< ValueDecl * > | getUniqueDeclsRef () |
Get the unique declarations that are in the trailing objects of the class. More... | |
ArrayRef< ValueDecl * > | getUniqueDeclsRef () const |
Get the unique declarations that are in the trailing objects of the class. More... | |
void | setUniqueDecls (ArrayRef< ValueDecl * > UDs) |
Set the unique declarations that are in the trailing objects of the class. More... | |
MutableArrayRef< unsigned > | getDeclNumListsRef () |
Get the number of lists per declaration that are in the trailing objects of the class. More... | |
ArrayRef< unsigned > | getDeclNumListsRef () const |
Get the number of lists per declaration that are in the trailing objects of the class. More... | |
void | setDeclNumLists (ArrayRef< unsigned > DNLs) |
Set the number of lists per declaration that are in the trailing objects of the class. More... | |
MutableArrayRef< unsigned > | getComponentListSizesRef () |
Get the cumulative component lists sizes that are in the trailing objects of the class. More... | |
ArrayRef< unsigned > | getComponentListSizesRef () const |
Get the cumulative component lists sizes that are in the trailing objects of the class. More... | |
void | setComponentListSizes (ArrayRef< unsigned > CLSs) |
Set the cumulative component lists sizes that are in the trailing objects of the class. More... | |
MutableArrayRef< MappableComponent > | getComponentsRef () |
Get the components that are in the trailing objects of the class. More... | |
ArrayRef< MappableComponent > | getComponentsRef () const |
Get the components that are in the trailing objects of the class. More... | |
void | setComponents (ArrayRef< MappableComponent > Components, ArrayRef< unsigned > CLSs) |
Set the components that are in the trailing objects of the class. More... | |
void | setClauseInfo (ArrayRef< ValueDecl * > Declarations, MappableExprComponentListsRef ComponentLists) |
Fill the clause information from the list of declarations and associated component lists. More... | |
void | setMapperQualifierLoc (NestedNameSpecifierLoc NNSL) |
Set the nested name specifier of associated user-defined mapper. More... | |
void | setMapperIdInfo (DeclarationNameInfo MapperId) |
Set the name of associated user-defined mapper. More... | |
MutableArrayRef< Expr * > | getUDMapperRefs () |
Get the user-defined mapper references that are in the trailing objects of the class. More... | |
ArrayRef< Expr * > | getUDMapperRefs () const |
Get the user-defined mappers references that are in the trailing objects of the class. More... | |
void | setUDMapperRefs (ArrayRef< Expr * > DMDs) |
Set the user-defined mappers that are in the trailing objects of the class. More... | |
![]() | |
OMPVarListClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, unsigned N) | |
Build a clause with N variables. More... | |
MutableArrayRef< Expr * > | getVarRefs () |
Fetches list of variables associated with this clause. More... | |
void | setVarRefs (ArrayRef< Expr * > VL) |
Sets the list of variables for this clause. More... | |
![]() | |
OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc) | |
Friends | |
class | OMPClauseReader |
Additional Inherited Members | |
![]() | |
static bool | classof (const OMPClause *) |
![]() | |
static unsigned | getComponentsTotalNumber (MappableExprComponentListsRef ComponentLists) |
static unsigned | getUniqueDeclarationsTotalNumber (ArrayRef< const ValueDecl * > Declarations) |
This represents clauses with a list of expressions that are mappable.
Examples of these clauses are 'map' in '#pragma omp target [enter|exit] [data]...' directives, and 'to' and 'from in '#pragma omp target update...' directives.
Definition at line 5140 of file OpenMPClause.h.
using clang::OMPMappableExprListClause< T >::const_all_components_iterator = ArrayRef<MappableComponent>::iterator |
Definition at line 5660 of file OpenMPClause.h.
using clang::OMPMappableExprListClause< T >::const_all_components_range = llvm::iterator_range<const_all_components_iterator> |
Definition at line 5662 of file OpenMPClause.h.
using clang::OMPMappableExprListClause< T >::const_all_decls_iterator = ArrayRef<ValueDecl *>::iterator |
Iterators to access all the declarations, number of lists, list sizes, and components.
Definition at line 5634 of file OpenMPClause.h.
using clang::OMPMappableExprListClause< T >::const_all_decls_range = llvm::iterator_range<const_all_decls_iterator> |
Definition at line 5635 of file OpenMPClause.h.
using clang::OMPMappableExprListClause< T >::const_all_lists_sizes_iterator = ArrayRef<unsigned>::iterator |
Definition at line 5651 of file OpenMPClause.h.
using clang::OMPMappableExprListClause< T >::const_all_lists_sizes_range = llvm::iterator_range<const_all_lists_sizes_iterator> |
Definition at line 5653 of file OpenMPClause.h.
using clang::OMPMappableExprListClause< T >::const_all_num_lists_iterator = ArrayRef<unsigned>::iterator |
Definition at line 5642 of file OpenMPClause.h.
using clang::OMPMappableExprListClause< T >::const_all_num_lists_range = llvm::iterator_range<const_all_num_lists_iterator> |
Definition at line 5644 of file OpenMPClause.h.
using clang::OMPMappableExprListClause< T >::const_component_lists_range = llvm::iterator_range<const_component_lists_iterator> |
Definition at line 5596 of file OpenMPClause.h.
using clang::OMPMappableExprListClause< T >::mapperlist_const_iterator = ArrayRef<const Expr *>::iterator |
Definition at line 5670 of file OpenMPClause.h.
using clang::OMPMappableExprListClause< T >::mapperlist_const_range = llvm::iterator_range<mapperlist_const_iterator> |
Definition at line 5673 of file OpenMPClause.h.
using clang::OMPMappableExprListClause< T >::mapperlist_iterator = MutableArrayRef<Expr *>::iterator |
Definition at line 5669 of file OpenMPClause.h.
using clang::OMPMappableExprListClause< T >::mapperlist_range = llvm::iterator_range<mapperlist_iterator> |
Definition at line 5671 of file OpenMPClause.h.
|
inlineprotected |
Build a clause for NumUniqueDeclarations declarations, NumComponentLists total component lists, and NumComponents total components.
K | Kind of the clause. |
Locs | Locations needed to build a mappable clause. It includes 1) StartLoc: starting location of the clause (the clause keyword); 2) LParenLoc: location of '('; 3) EndLoc: ending location of the clause. |
Sizes | All required sizes to build a mappable clause. It includes 1) NumVars: number of expressions listed in this clause; 2) NumUniqueDeclarations: number of unique base declarations in this clause; 3) NumComponentLists: number of component lists in this clause; and 4) NumComponents: total number of expression components in the clause. |
SupportsMapper | Indicates whether this clause is possible to have user-defined mappers associated. |
MapperQualifierLocPtr | C++ nested name specifier for the associated user-defined mapper. |
MapperIdInfoPtr | The identifier of associated user-defined mapper. |
Definition at line 5183 of file OpenMPClause.h.
|
inline |
Definition at line 5664 of file OpenMPClause.h.
|
inline |
Definition at line 5637 of file OpenMPClause.h.
|
inline |
Definition at line 5655 of file OpenMPClause.h.
|
inline |
Definition at line 5646 of file OpenMPClause.h.
|
inline |
Definition at line 5612 of file OpenMPClause.h.
|
inline |
Iterators for all component lists.
Definition at line 5599 of file OpenMPClause.h.
Referenced by clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::component_lists().
|
inline |
Definition at line 5605 of file OpenMPClause.h.
Referenced by clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::component_lists(), and clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::decl_component_lists_end().
|
inline |
Definition at line 5628 of file OpenMPClause.h.
|
inline |
Iterators for component lists associated with the provided declaration.
Definition at line 5619 of file OpenMPClause.h.
Referenced by clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::decl_component_lists().
|
inline |
Definition at line 5625 of file OpenMPClause.h.
Referenced by clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::decl_component_lists().
|
inlineprotected |
Get the cumulative component lists sizes that are in the trailing objects of the class.
They are appended after the number of lists.
Definition at line 5250 of file OpenMPClause.h.
Referenced by clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::all_lists_sizes(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::component_lists_begin(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::decl_component_lists_begin(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::setClauseInfo(), and clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::setComponentListSizes().
|
inlineprotected |
Get the cumulative component lists sizes that are in the trailing objects of the class.
They are appended after the number of lists.
Definition at line 5259 of file OpenMPClause.h.
|
inlineprotected |
Get the components that are in the trailing objects of the class.
Definition at line 5275 of file OpenMPClause.h.
Referenced by clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::all_components(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::component_lists_begin(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::component_lists_end(), and clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::decl_component_lists_begin().
|
inlineprotected |
Get the components that are in the trailing objects of the class.
Definition at line 5283 of file OpenMPClause.h.
|
inlineprotected |
Get the number of lists per declaration that are in the trailing objects of the class.
Definition at line 5226 of file OpenMPClause.h.
Referenced by clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::all_num_lists(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::component_lists_begin(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::decl_component_lists_begin(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::setClauseInfo(), and clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::setDeclNumLists().
|
inlineprotected |
Get the number of lists per declaration that are in the trailing objects of the class.
Definition at line 5234 of file OpenMPClause.h.
|
inline |
Gets the name info for associated user-defined mapper.
Definition at line 5437 of file OpenMPClause.h.
|
inline |
Gets the nested name specifier for associated user-defined mapper.
Definition at line 5432 of file OpenMPClause.h.
|
inline |
Return the number of lists derived from the clause expressions.
Definition at line 5425 of file OpenMPClause.h.
|
inline |
Return the total number of components in all lists derived from the clause.
Definition at line 5429 of file OpenMPClause.h.
|
inlineprotected |
Get the user-defined mapper references that are in the trailing objects of the class.
Definition at line 5390 of file OpenMPClause.h.
Referenced by clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::component_lists_begin(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::decl_component_lists_begin(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::mapperlist_begin(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::mapperlist_end(), and clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::setUDMapperRefs().
|
inlineprotected |
Get the user-defined mappers references that are in the trailing objects of the class.
Definition at line 5401 of file OpenMPClause.h.
|
inline |
Return the number of unique base declarations in this clause.
Definition at line 5422 of file OpenMPClause.h.
|
inlineprotected |
Get the unique declarations that are in the trailing objects of the class.
Definition at line 5201 of file OpenMPClause.h.
Referenced by clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::all_decls(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::component_lists_begin(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::decl_component_lists_begin(), clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::setClauseInfo(), and clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::setUniqueDecls().
|
inlineprotected |
Get the unique declarations that are in the trailing objects of the class.
Definition at line 5209 of file OpenMPClause.h.
|
inline |
Definition at line 5675 of file OpenMPClause.h.
Referenced by clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::mapperlists().
|
inline |
Definition at line 5677 of file OpenMPClause.h.
|
inline |
Definition at line 5676 of file OpenMPClause.h.
Referenced by clang::OMPMappableExprListClause< OMPIsDevicePtrClause >::mapperlists().
|
inline |
Definition at line 5680 of file OpenMPClause.h.
|
inline |
Definition at line 5683 of file OpenMPClause.h.
|
inline |
Definition at line 5686 of file OpenMPClause.h.
|
inlineprotected |
Fill the clause information from the list of declarations and associated component lists.
Definition at line 5304 of file OpenMPClause.h.
Referenced by clang::OMPMapClause::Create(), clang::OMPUseDevicePtrClause::Create(), and clang::OMPIsDevicePtrClause::Create().
|
inlineprotected |
Set the cumulative component lists sizes that are in the trailing objects of the class.
Definition at line 5268 of file OpenMPClause.h.
|
inlineprotected |
Set the components that are in the trailing objects of the class.
This requires the list sizes so that it can also fill the original expressions, which are the first component of each list.
Definition at line 5293 of file OpenMPClause.h.
|
inlineprotected |
Set the number of lists per declaration that are in the trailing objects of the class.
Definition at line 5242 of file OpenMPClause.h.
|
inlineprotected |
Set the name of associated user-defined mapper.
Definition at line 5384 of file OpenMPClause.h.
|
inlineprotected |
Set the nested name specifier of associated user-defined mapper.
Definition at line 5379 of file OpenMPClause.h.
|
inlineprotected |
Set the user-defined mappers that are in the trailing objects of the class.
Definition at line 5412 of file OpenMPClause.h.
Referenced by clang::OMPMapClause::Create().
|
inlineprotected |
Set the unique declarations that are in the trailing objects of the class.
Definition at line 5218 of file OpenMPClause.h.
|
friend |
Definition at line 5142 of file OpenMPClause.h.