clang
10.0.0git
|
This represents clause 'use_device_ptr' in the '#pragma omp ...' directives. More...
#include "clang/AST/OpenMPClause.h"
Public Types | |
using | private_copies_iterator = MutableArrayRef< Expr * >::iterator |
using | private_copies_const_iterator = ArrayRef< const Expr * >::iterator |
using | private_copies_range = llvm::iterator_range< private_copies_iterator > |
using | private_copies_const_range = llvm::iterator_range< private_copies_const_iterator > |
using | inits_iterator = MutableArrayRef< Expr * >::iterator |
using | inits_const_iterator = ArrayRef< const Expr * >::iterator |
using | inits_range = llvm::iterator_range< inits_iterator > |
using | inits_const_range = llvm::iterator_range< inits_const_iterator > |
![]() | |
using | const_component_lists_range = llvm::iterator_range< const_component_lists_iterator > |
using | const_all_decls_iterator = ArrayRef< ValueDecl *>::iterator |
Iterators to access all the declarations, number of lists, list sizes, and components. More... | |
using | const_all_decls_range = llvm::iterator_range< const_all_decls_iterator > |
using | const_all_num_lists_iterator = ArrayRef< unsigned >::iterator |
using | const_all_num_lists_range = llvm::iterator_range< const_all_num_lists_iterator > |
using | const_all_lists_sizes_iterator = ArrayRef< unsigned >::iterator |
using | const_all_lists_sizes_range = llvm::iterator_range< const_all_lists_sizes_iterator > |
using | const_all_components_iterator = ArrayRef< MappableComponent >::iterator |
using | const_all_components_range = llvm::iterator_range< const_all_components_iterator > |
using | mapperlist_iterator = MutableArrayRef< Expr *>::iterator |
using | mapperlist_const_iterator = ArrayRef< const Expr *>::iterator |
using | mapperlist_range = llvm::iterator_range< mapperlist_iterator > |
using | mapperlist_const_range = llvm::iterator_range< mapperlist_const_iterator > |
![]() | |
using | MappableExprComponentList = SmallVector< MappableComponent, 8 > |
using | MappableExprComponentListRef = ArrayRef< MappableComponent > |
using | MappableExprComponentLists = SmallVector< MappableExprComponentList, 8 > |
using | MappableExprComponentListsRef = ArrayRef< MappableExprComponentList > |
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 |
![]() | |
unsigned | getUniqueDeclarationsNum () const |
Return the number of unique base declarations in this clause. More... | |
unsigned | getTotalComponentListNum () const |
Return the number of lists derived from the clause expressions. More... | |
unsigned | getTotalComponentsNum () const |
Return the total number of components in all lists derived from the clause. More... | |
NestedNameSpecifierLoc | getMapperQualifierLoc () const |
Gets the nested name specifier for associated user-defined mapper. More... | |
const DeclarationNameInfo & | getMapperIdInfo () const |
Gets the name info for associated user-defined mapper. More... | |
const_component_lists_iterator | component_lists_begin () const |
Iterators for all component lists. More... | |
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. More... | |
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_const_iterator | mapperlist_begin () const |
mapperlist_iterator | mapperlist_end () |
mapperlist_const_iterator | mapperlist_end () const |
mapperlist_range | mapperlists () |
mapperlist_const_range | mapperlists () 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. More... | |
static OMPUseDevicePtrClause * | CreateEmpty (const ASTContext &C, const OMPMappableExprListSizeTy &Sizes) |
Creates an empty clause with the place for NumVars variables. More... | |
static bool | classof (const OMPClause *T) |
Friends | |
class | OMPClauseReader |
Additional Inherited Members | |
![]() | |
OMPMappableExprListClause (OpenMPClauseKind K, const OMPVarListLocTy &Locs, const OMPMappableExprListSizeTy &Sizes, 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... | |
![]() | |
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 6016 of file OpenMPClause.h.
using OMPUseDevicePtrClause::inits_const_iterator = ArrayRef<const Expr *>::iterator |
Definition at line 6137 of file OpenMPClause.h.
using OMPUseDevicePtrClause::inits_const_range = llvm::iterator_range<inits_const_iterator> |
Definition at line 6139 of file OpenMPClause.h.
using OMPUseDevicePtrClause::inits_iterator = MutableArrayRef<Expr *>::iterator |
Definition at line 6136 of file OpenMPClause.h.
using OMPUseDevicePtrClause::inits_range = llvm::iterator_range<inits_iterator> |
Definition at line 6138 of file OpenMPClause.h.
using OMPUseDevicePtrClause::private_copies_const_iterator = ArrayRef<const Expr *>::iterator |
Definition at line 6121 of file OpenMPClause.h.
using OMPUseDevicePtrClause::private_copies_const_range = llvm::iterator_range<private_copies_const_iterator> |
Definition at line 6124 of file OpenMPClause.h.
using OMPUseDevicePtrClause::private_copies_iterator = MutableArrayRef<Expr *>::iterator |
Definition at line 6120 of file OpenMPClause.h.
using OMPUseDevicePtrClause::private_copies_range = llvm::iterator_range<private_copies_iterator> |
Definition at line 6122 of file OpenMPClause.h.
|
inline |
Definition at line 6149 of file OpenMPClause.h.
|
inline |
Definition at line 6154 of file OpenMPClause.h.
References clang::OMPClause::children().
Definition at line 6166 of file OpenMPClause.h.
|
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 1066 of file OpenMPClause.cpp.
References clang::ASTContext::Allocate(), OMPMappableExprListSizeTy::NumComponentLists, OMPMappableExprListSizeTy::NumComponents, OMPMappableExprListSizeTy::NumUniqueDeclarations, OMPMappableExprListSizeTy::NumVars, and OMPMappableExprListClause< T >::setClauseInfo().
Referenced by clang::Sema::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 1104 of file OpenMPClause.cpp.
References clang::ASTContext::Allocate(), OMPMappableExprListSizeTy::NumComponentLists, OMPMappableExprListSizeTy::NumComponents, OMPMappableExprListSizeTy::NumUniqueDeclarations, and OMPMappableExprListSizeTy::NumVars.
|
inline |
Definition at line 6141 of file OpenMPClause.h.
References clang::getInits().
Referenced by clang::ASTRecordWriter::writeOMPClause().
|
inline |
Definition at line 6145 of file OpenMPClause.h.
References clang::getInits().
|
inline |
Definition at line 6126 of file OpenMPClause.h.
Referenced by clang::ASTRecordWriter::writeOMPClause().
|
inline |
Definition at line 6131 of file OpenMPClause.h.
|
inline |
Definition at line 6159 of file OpenMPClause.h.
|
inline |
Definition at line 6162 of file OpenMPClause.h.
|
friend |
Definition at line 6021 of file OpenMPClause.h.