clang 20.0.0git
|
This represents clause 'map' in the '#pragma omp ...' directives. More...
#include "clang/AST/OpenMPClause.h"
Public Member Functions | |
Expr * | getIteratorModifier () |
Fetches Expr * of iterator modifier. | |
OpenMPMapClauseKind | getMapType () const LLVM_READONLY |
Fetches mapping kind for the clause. | |
bool | isImplicitMapType () const LLVM_READONLY |
Is this an implicit map type? We have to capture 'IsMapTypeImplicit' from the parser for more informative error messages. | |
OpenMPMapModifierKind | getMapTypeModifier (unsigned Cnt) const LLVM_READONLY |
Fetches the map-type-modifier at 'Cnt' index of array of modifiers. | |
SourceLocation | getMapTypeModifierLoc (unsigned Cnt) const LLVM_READONLY |
Fetches the map-type-modifier location at 'Cnt' index of array of modifiers' locations. | |
ArrayRef< OpenMPMapModifierKind > | getMapTypeModifiers () const LLVM_READONLY |
Fetches ArrayRef of map-type-modifiers. | |
ArrayRef< SourceLocation > | getMapTypeModifiersLoc () const LLVM_READONLY |
Fetches ArrayRef of location of map-type-modifiers. | |
SourceLocation | getMapLoc () const LLVM_READONLY |
Fetches location of clause mapping kind. | |
SourceLocation | getColonLoc () const |
Get colon location. | |
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. | |
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_const_iterator | mapperlist_begin () const |
mapperlist_iterator | mapperlist_end () |
mapperlist_const_iterator | mapperlist_end () const |
mapperlist_range | mapperlists () |
mapperlist_const_range | mapperlists () const |
![]() | |
unsigned | varlist_size () const |
bool | varlist_empty () const |
varlist_range | varlist () |
varlist_const_range | varlist () const |
varlist_iterator | varlist_begin () |
varlist_iterator | varlist_end () |
varlist_const_iterator | varlist_begin () const |
varlist_const_iterator | varlist_end () const |
void | setLParenLoc (SourceLocation Loc) |
Sets the location of '('. | |
SourceLocation | getLParenLoc () const |
Returns the location of '('. | |
ArrayRef< const Expr * > | getVarRefs () const |
Fetches list of all variables in the clause. | |
![]() | |
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 OMPMapClause * | Create (const ASTContext &C, const OMPVarListLocTy &Locs, ArrayRef< Expr * > Vars, ArrayRef< ValueDecl * > Declarations, MappableExprComponentListsRef ComponentLists, ArrayRef< Expr * > UDMapperRefs, Expr *IteratorModifier, ArrayRef< OpenMPMapModifierKind > MapModifiers, ArrayRef< SourceLocation > MapModifiersLoc, NestedNameSpecifierLoc UDMQualifierLoc, DeclarationNameInfo MapperId, OpenMPMapClauseKind Type, bool TypeIsImplicit, SourceLocation TypeLoc) |
Creates clause with a list of variables VL. | |
static OMPMapClause * | CreateEmpty (const ASTContext &C, const OMPMappableExprListSizeTy &Sizes) |
Creates an empty clause with the place for NumVars original expressions, NumUniqueDeclarations declarations, \NumComponentLists lists, and NumComponents expression components. | |
static bool | classof (const OMPClause *T) |
![]() | |
static bool | classof (const OMPClause *) |
Friends | |
class | OMPClauseReader |
Additional Inherited Members | |
![]() | |
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. | |
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 | varlist_iterator = MutableArrayRef< Expr * >::iterator |
using | varlist_const_iterator = ArrayRef< const Expr * >::iterator |
using | varlist_range = llvm::iterator_range< varlist_iterator > |
using | varlist_const_range = llvm::iterator_range< varlist_const_iterator > |
![]() | |
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 > |
![]() | |
using | MappableExprComponentList = SmallVector< MappableComponent, 8 > |
using | MappableExprComponentListRef = ArrayRef< MappableComponent > |
using | MappableExprComponentLists = SmallVector< MappableExprComponentList, 8 > |
using | MappableExprComponentListsRef = ArrayRef< MappableExprComponentList > |
![]() | |
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 > |