|
clang 22.0.0git
|
This represents clause 'use_device_ptr' in the '#pragma omp ...' directives. More...
#include "clang/AST/OpenMPClause.h"
Public Member Functions | |
| private_copies_range | private_copies () |
| private_copies_const_range | private_copies () const |
| inits_range | inits () |
| inits_const_range | inits () const |
| child_range | children () |
| const_child_range | children () const |
| child_range | used_children () |
| const_child_range | used_children () const |
| Public Member Functions inherited from clang::OMPMappableExprListClause< OMPUseDevicePtrClause > | |
| unsigned | getUniqueDeclarationsNum () const |
| Return the number of unique base declarations in this clause. | |
| unsigned | getTotalComponentListNum () const |
| Return the number of lists derived from the clause expressions. | |
| unsigned | getTotalComponentsNum () const |
| Return the total number of components in all lists derived from the clause. | |
| NestedNameSpecifierLoc | getMapperQualifierLoc () const |
| Gets the nested name specifier for associated user-defined mapper. | |
| const DeclarationNameInfo & | getMapperIdInfo () const |
| Gets the name info for associated user-defined mapper. | |
| const_component_lists_iterator | component_lists_begin () const |
| Iterators for all component lists. | |
| const_component_lists_iterator | component_lists_end () const |
| const_component_lists_range | component_lists () const |
| const_component_lists_iterator | decl_component_lists_begin (const ValueDecl *VD) const |
| Iterators for component lists associated with the provided declaration. | |
| const_component_lists_iterator | decl_component_lists_end () const |
| const_component_lists_range | decl_component_lists (const ValueDecl *VD) const |
| const_all_decls_range | all_decls () const |
| const_all_num_lists_range | all_num_lists () const |
| const_all_lists_sizes_range | all_lists_sizes () const |
| const_all_components_range | all_components () const |
| mapperlist_iterator | mapperlist_begin () |
| mapperlist_iterator | mapperlist_end () |
| mapperlist_range | mapperlists () |
| Public Member Functions inherited from clang::OMPVarListClause< OMPUseDevicePtrClause > | |
| unsigned | varlist_size () const |
| bool | varlist_empty () const |
| varlist_range | varlist () |
| varlist_iterator | varlist_begin () |
| varlist_iterator | varlist_end () |
| void | setLParenLoc (SourceLocation Loc) |
| Sets the location of '('. | |
| SourceLocation | getLParenLoc () const |
| Returns the location of '('. | |
| 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 OMPUseDevicePtrClause * | Create (const ASTContext &C, const OMPVarListLocTy &Locs, ArrayRef< Expr * > Vars, ArrayRef< Expr * > PrivateVars, ArrayRef< Expr * > Inits, ArrayRef< ValueDecl * > Declarations, MappableExprComponentListsRef ComponentLists) |
| Creates clause with a list of variables Vars. | |
| static OMPUseDevicePtrClause * | CreateEmpty (const ASTContext &C, const OMPMappableExprListSizeTy &Sizes) |
| Creates an empty clause with the place for NumVars variables. | |
| static bool | classof (const OMPClause *T) |
| Static Public Member Functions inherited from clang::OMPClause | |
| static bool | classof (const OMPClause *) |
| Static Public Member Functions inherited from clang::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. | |
Friends | |
| class | OMPClauseReader |
Additional Inherited Members | |
| Protected Member Functions inherited from clang::OMPMappableExprListClause< OMPUseDevicePtrClause > | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| void | setComponents (ArrayRef< MappableComponent > Components, ArrayRef< unsigned > CLSs) |
| Set the components that are in the trailing objects of the class. | |
| 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. | |
| void | setUDMapperRefs (ArrayRef< Expr * > DMDs) |
| Set the user-defined mappers that are in the trailing objects of the class. | |
| Protected Member Functions inherited from clang::OMPVarListClause< OMPUseDevicePtrClause > | |
| OMPVarListClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, unsigned N) | |
| Build a clause with N variables. | |
| MutableArrayRef< Expr * > | getVarRefs () |
| Fetches list of variables associated with this clause. | |
| void | setVarRefs (ArrayRef< Expr * > VL) |
| Sets the list of variables for this clause. | |
| Protected Member Functions inherited from clang::OMPClause | |
| OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc) | |
| Static Protected Member Functions inherited from clang::OMPClauseMappableExprCommon | |
| static unsigned | getComponentsTotalNumber (MappableExprComponentListsRef ComponentLists) |
| static unsigned | getUniqueDeclarationsTotalNumber (ArrayRef< const ValueDecl * > Declarations) |
This represents clause 'use_device_ptr' in the '#pragma omp ...' directives.
In this example directive '#pragma omp target data' has clause 'use_device_ptr' with the variables 'a' and 'b'.
Definition at line 8087 of file OpenMPClause.h.
| using clang::OMPUseDevicePtrClause::inits_const_iterator = ArrayRef<const Expr *>::iterator |
Definition at line 8209 of file OpenMPClause.h.
| using clang::OMPUseDevicePtrClause::inits_const_range = llvm::iterator_range<inits_const_iterator> |
Definition at line 8211 of file OpenMPClause.h.
| using clang::OMPUseDevicePtrClause::inits_iterator = MutableArrayRef<Expr *>::iterator |
Definition at line 8208 of file OpenMPClause.h.
| using clang::OMPUseDevicePtrClause::inits_range = llvm::iterator_range<inits_iterator> |
Definition at line 8210 of file OpenMPClause.h.
| using clang::OMPUseDevicePtrClause::private_copies_const_iterator = ArrayRef<const Expr *>::iterator |
Definition at line 8193 of file OpenMPClause.h.
Definition at line 8195 of file OpenMPClause.h.
| using clang::OMPUseDevicePtrClause::private_copies_iterator = MutableArrayRef<Expr *>::iterator |
Definition at line 8192 of file OpenMPClause.h.
| using clang::OMPUseDevicePtrClause::private_copies_range = llvm::iterator_range<private_copies_iterator> |
Definition at line 8194 of file OpenMPClause.h.
|
inline |
Definition at line 8221 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPUseDevicePtrClause >::varlist_begin(), and clang::OMPVarListClause< OMPUseDevicePtrClause >::varlist_end().
Referenced by children().
|
inline |
Definition at line 8226 of file OpenMPClause.h.
References Children, and children().
Definition at line 8238 of file OpenMPClause.h.
References clang::T.
|
static |
Creates clause with a list of variables Vars.
| C | AST context. |
| 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. |
| Vars | The original expression used in the clause. |
| PrivateVars | Expressions referring to private copies. |
| Inits | Expressions referring to private copy initializers. |
| Declarations | Declarations used in the clause. |
| ComponentLists | Component lists used in the clause. |
Definition at line 1431 of file OpenMPClause.cpp.
References clang::C, clang::OMPClauseMappableExprCommon::getComponentsTotalNumber(), clang::OMPClauseMappableExprCommon::getUniqueDeclarationsTotalNumber(), clang::OMPMappableExprListSizeTy::NumComponentLists, clang::OMPMappableExprListSizeTy::NumComponents, clang::OMPMappableExprListSizeTy::NumUniqueDeclarations, and clang::OMPMappableExprListSizeTy::NumVars.
Referenced by clang::SemaOpenMP::ActOnOpenMPUseDevicePtrClause().
|
static |
Creates an empty clause with the place for NumVars variables.
| C | AST context. |
| 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. |
Definition at line 1469 of file OpenMPClause.cpp.
References clang::C, clang::OMPMappableExprListSizeTy::NumComponentLists, clang::OMPMappableExprListSizeTy::NumComponents, clang::OMPMappableExprListSizeTy::NumUniqueDeclarations, and clang::OMPMappableExprListSizeTy::NumVars.
Referenced by clang::OMPClauseReader::readClause().
|
inline |
Definition at line 8213 of file OpenMPClause.h.
|
inline |
Definition at line 8217 of file OpenMPClause.h.
|
inline |
Definition at line 8198 of file OpenMPClause.h.
|
inline |
Definition at line 8203 of file OpenMPClause.h.
|
inline |
Definition at line 8231 of file OpenMPClause.h.
|
inline |
Definition at line 8234 of file OpenMPClause.h.
|
friend |
Definition at line 8092 of file OpenMPClause.h.
References OMPClauseReader.
Referenced by OMPClauseReader.