|
clang 24.0.0git
|
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. More...
#include "clang/AST/OpenMPClause.h"
Classes | |
| class | const_component_lists_iterator |
| Iterator that browse the components by lists. It also allows browsing components of a single declaration. 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. | |
| MutableArrayRef< ValueDecl * > | getUniqueDeclsRef () |
| Get the unique declarations that are in the trailing objects of the class. | |
| ArrayRef< ValueDecl * > | getUniqueDeclsRef () const |
| Get the unique declarations that are in the trailing objects of the class. | |
| void | setUniqueDecls (ArrayRef< ValueDecl * > UDs) |
| Set the unique declarations that are in the trailing objects of the class. | |
| MutableArrayRef< unsigned > | getDeclNumListsRef () |
| Get the number of lists per declaration that are in the trailing objects of the class. | |
| ArrayRef< unsigned > | getDeclNumListsRef () const |
| Get the number of lists per declaration that are in the trailing objects of the class. | |
| void | setDeclNumLists (ArrayRef< unsigned > DNLs) |
| Set the number of lists per declaration that are in the trailing objects of the class. | |
| MutableArrayRef< unsigned > | getComponentListSizesRef () |
| Get the cumulative component lists sizes that are in the trailing objects of the class. They are appended after the number of lists. | |
| ArrayRef< unsigned > | getComponentListSizesRef () const |
| Get the cumulative component lists sizes that are in the trailing objects of the class. They are appended after the number of lists. | |
| void | setComponentListSizes (ArrayRef< unsigned > CLSs) |
| Set the cumulative component lists sizes that are in the trailing objects of the class. | |
| MutableArrayRef< MappableComponent > | getComponentsRef () |
| Get the components that are in the trailing objects of the class. | |
| ArrayRef< MappableComponent > | getComponentsRef () const |
| Get the components that are in the trailing objects of the class. | |
| void | setComponents (ArrayRef< MappableComponent > Components, ArrayRef< unsigned > CLSs) |
| 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. | |
| void | setClauseInfo (ArrayRef< ValueDecl * > Declarations, MappableExprComponentListsRef ComponentLists) |
| Fill the clause information from the list of declarations and associated component lists. | |
| void | setMapperQualifierLoc (NestedNameSpecifierLoc NNSL) |
| Set the nested name specifier of associated user-defined mapper. | |
| void | setMapperIdInfo (DeclarationNameInfo MapperId) |
| Set the name of associated user-defined mapper. | |
| MutableArrayRef< Expr * > | getUDMapperRefs () |
| Get the user-defined mapper references that are in the trailing objects of the class. | |
| ArrayRef< Expr * > | getUDMapperRefs () const |
| Get the user-defined mappers references that are in the trailing objects of the class. | |
| void | setUDMapperRefs (ArrayRef< Expr * > DMDs) |
| Set the user-defined mappers that are in the trailing objects of the class. | |
Friends | |
| class | OMPClauseReader |
Additional Inherited Members | |
| Static Public Member Functions inherited from OMPClauseMappableExprCommon | |
| static QualType | getComponentExprElementType (const Expr *Exp) |
Get the type of an element of a ComponentList Expr Exp. | |
| static std::pair< const Expr *, std::optional< size_t > > | findAttachPtrExpr (MappableExprComponentListRef Components, OpenMPDirectiveKind CurDirKind) |
| Find the attach pointer expression from a list of mappable expression components. | |
| Static Protected Member Functions inherited from OMPClauseMappableExprCommon | |
| 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 6281 of file OpenMPClause.h.
| using OMPMappableExprListClause< T >::const_all_components_iterator = ArrayRef<MappableComponent>::iterator |
Definition at line 6793 of file OpenMPClause.h.
| using OMPMappableExprListClause< T >::const_all_components_range |
Definition at line 6794 of file OpenMPClause.h.
| using 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 6772 of file OpenMPClause.h.
| using OMPMappableExprListClause< T >::const_all_decls_range = llvm::iterator_range<const_all_decls_iterator> |
Definition at line 6773 of file OpenMPClause.h.
| using OMPMappableExprListClause< T >::const_all_lists_sizes_iterator = ArrayRef<unsigned>::iterator |
Definition at line 6785 of file OpenMPClause.h.
| using OMPMappableExprListClause< T >::const_all_lists_sizes_range |
Definition at line 6786 of file OpenMPClause.h.
| using OMPMappableExprListClause< T >::const_all_num_lists_iterator = ArrayRef<unsigned>::iterator |
Definition at line 6777 of file OpenMPClause.h.
| using OMPMappableExprListClause< T >::const_all_num_lists_range |
Definition at line 6778 of file OpenMPClause.h.
| using OMPMappableExprListClause< T >::const_component_lists_range |
Definition at line 6733 of file OpenMPClause.h.
| using OMPMappableExprListClause< T >::mapperlist_const_iterator = ArrayRef<const Expr *>::iterator |
Definition at line 6802 of file OpenMPClause.h.
| using OMPMappableExprListClause< T >::mapperlist_const_range |
Definition at line 6804 of file OpenMPClause.h.
| using OMPMappableExprListClause< T >::mapperlist_iterator = MutableArrayRef<Expr *>::iterator |
Definition at line 6801 of file OpenMPClause.h.
| using OMPMappableExprListClause< T >::mapperlist_range = llvm::iterator_range<mapperlist_iterator> |
Definition at line 6803 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 6324 of file OpenMPClause.h.
|
inline |
Definition at line 6797 of file OpenMPClause.h.
References getComponentsRef().
|
inline |
Definition at line 6775 of file OpenMPClause.h.
References getUniqueDeclsRef().
|
inline |
Definition at line 6789 of file OpenMPClause.h.
References getComponentListSizesRef().
|
inline |
Definition at line 6781 of file OpenMPClause.h.
References getDeclNumListsRef().
|
inline |
Definition at line 6750 of file OpenMPClause.h.
References component_lists_begin(), and component_lists_end().
|
inline |
Iterators for all component lists.
Definition at line 6737 of file OpenMPClause.h.
References getComponentListSizesRef(), getComponentsRef(), getDeclNumListsRef(), getUDMapperRefs(), and getUniqueDeclsRef().
Referenced by component_lists().
|
inline |
Definition at line 6743 of file OpenMPClause.h.
References getComponentsRef().
Referenced by component_lists(), and decl_component_lists_end().
|
inline |
Definition at line 6766 of file OpenMPClause.h.
References decl_component_lists_begin(), and decl_component_lists_end().
|
inline |
Iterators for component lists associated with the provided declaration.
Definition at line 6757 of file OpenMPClause.h.
References getComponentListSizesRef(), getComponentsRef(), getDeclNumListsRef(), getUDMapperRefs(), and getUniqueDeclsRef().
Referenced by decl_component_lists().
|
inline |
Definition at line 6763 of file OpenMPClause.h.
References component_lists_end().
Referenced by 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 6388 of file OpenMPClause.h.
Referenced by all_lists_sizes(), component_lists_begin(), decl_component_lists_begin(), setClauseInfo(), and 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 6398 of file OpenMPClause.h.
|
inlineprotected |
Get the components that are in the trailing objects of the class.
Definition at line 6415 of file OpenMPClause.h.
Referenced by all_components(), component_lists_begin(), component_lists_end(), decl_component_lists_begin(), setClauseInfo(), and setComponents().
|
inlineprotected |
Get the components that are in the trailing objects of the class.
Definition at line 6422 of file OpenMPClause.h.
|
inlineprotected |
Get the number of lists per declaration that are in the trailing objects of the class.
Definition at line 6366 of file OpenMPClause.h.
Referenced by all_num_lists(), component_lists_begin(), decl_component_lists_begin(), setClauseInfo(), and setDeclNumLists().
|
inlineprotected |
Get the number of lists per declaration that are in the trailing objects of the class.
Definition at line 6373 of file OpenMPClause.h.
|
inline |
Gets the name info for associated user-defined mapper.
Definition at line 6575 of file OpenMPClause.h.
|
inline |
Gets the nested name specifier for associated user-defined mapper.
Definition at line 6570 of file OpenMPClause.h.
|
inline |
Return the number of lists derived from the clause expressions.
Definition at line 6563 of file OpenMPClause.h.
|
inline |
Return the total number of components in all lists derived from the clause.
Definition at line 6567 of file OpenMPClause.h.
|
inlineprotected |
Get the user-defined mapper references that are in the trailing objects of the class.
Definition at line 6528 of file OpenMPClause.h.
Referenced by component_lists_begin(), decl_component_lists_begin(), mapperlist_begin(), mapperlist_begin(), mapperlist_end(), mapperlist_end(), and setUDMapperRefs().
|
inlineprotected |
Get the user-defined mappers references that are in the trailing objects of the class.
Definition at line 6539 of file OpenMPClause.h.
|
inline |
Return the number of unique base declarations in this clause.
Definition at line 6560 of file OpenMPClause.h.
|
inlineprotected |
Get the unique declarations that are in the trailing objects of the class.
Definition at line 6342 of file OpenMPClause.h.
Referenced by all_decls(), component_lists_begin(), decl_component_lists_begin(), setClauseInfo(), and setUniqueDecls().
|
inlineprotected |
Get the unique declarations that are in the trailing objects of the class.
Definition at line 6350 of file OpenMPClause.h.
|
inline |
Definition at line 6807 of file OpenMPClause.h.
References getUDMapperRefs().
Referenced by mapperlists(), and mapperlists().
|
inline |
Definition at line 6809 of file OpenMPClause.h.
References getUDMapperRefs().
|
inline |
Definition at line 6808 of file OpenMPClause.h.
References getUDMapperRefs().
Referenced by mapperlists(), and mapperlists().
|
inline |
Definition at line 6812 of file OpenMPClause.h.
References getUDMapperRefs().
|
inline |
Definition at line 6815 of file OpenMPClause.h.
References mapperlist_begin(), and mapperlist_end().
|
inline |
Definition at line 6818 of file OpenMPClause.h.
References mapperlist_begin(), and mapperlist_end().
|
inlineprotected |
Fill the clause information from the list of declarations and associated component lists.
Definition at line 6442 of file OpenMPClause.h.
References getComponentListSizesRef(), getComponentsRef(), OMPClauseMappableExprCommon::getComponentsTotalNumber(), getDeclNumListsRef(), OMPClauseMappableExprCommon::getUniqueDeclarationsTotalNumber(), and getUniqueDeclsRef().
|
inlineprotected |
Set the cumulative component lists sizes that are in the trailing objects of the class.
Definition at line 6408 of file OpenMPClause.h.
References getComponentListSizesRef().
|
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 6431 of file OpenMPClause.h.
References getComponentsRef().
|
inlineprotected |
Set the number of lists per declaration that are in the trailing objects of the class.
Definition at line 6380 of file OpenMPClause.h.
References getDeclNumListsRef().
|
inlineprotected |
Set the name of associated user-defined mapper.
Definition at line 6522 of file OpenMPClause.h.
|
inlineprotected |
Set the nested name specifier of associated user-defined mapper.
Definition at line 6517 of file OpenMPClause.h.
|
inlineprotected |
Set the user-defined mappers that are in the trailing objects of the class.
Definition at line 6550 of file OpenMPClause.h.
References getUDMapperRefs().
|
inlineprotected |
Set the unique declarations that are in the trailing objects of the class.
Definition at line 6358 of file OpenMPClause.h.
References getUniqueDeclsRef().
|
friend |
Definition at line 6283 of file OpenMPClause.h.
References OMPClauseReader.
Referenced by OMPClauseReader.