clang 23.0.0git
OMPUsesAllocatorsClause Class Referencefinal

This represents clause 'uses_allocators' in the '#pragma omp target'-based directives. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPUsesAllocatorsClause:
[legend]

Classes

struct  Data
 Data for list of allocators. More...

Public Member Functions

SourceLocation getLParenLoc () const
 Returns the location of '('.
unsigned getNumberOfAllocators () const
 Returns number of allocators associated with the clause.
OMPUsesAllocatorsClause::Data getAllocatorData (unsigned I) const
 Returns data for the specified allocator.
child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const

Static Public Member Functions

static OMPUsesAllocatorsClauseCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< OMPUsesAllocatorsClause::Data > Data)
 Creates clause with a list of allocators Data.
static OMPUsesAllocatorsClauseCreateEmpty (const ASTContext &C, unsigned N)
 Creates an empty clause with the place for N allocators.
static bool classof (const OMPClause *T)

Friends

class OMPClauseReader

Detailed Description

This represents clause 'uses_allocators' in the '#pragma omp target'-based directives.

#pragma omp target uses_allocators(default_allocator, my_allocator(traits))

In this example directive '#pragma omp target' has clause 'uses_allocators' with the allocators 'default_allocator' and user-defined 'my_allocator'.

Definition at line 9465 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPUsesAllocatorsClause::children ( )
inline

Definition at line 9558 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPUsesAllocatorsClause::children ( ) const
inline

Definition at line 9563 of file OpenMPClause.h.

◆ classof()

bool OMPUsesAllocatorsClause::classof ( const OMPClause * T)
inlinestatic

Definition at line 9577 of file OpenMPClause.h.

◆ Create()

OMPUsesAllocatorsClause * OMPUsesAllocatorsClause::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation EndLoc,
ArrayRef< OMPUsesAllocatorsClause::Data > Data )
static

Creates clause with a list of allocators Data.

Parameters
CAST context.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.
DataList of allocators.

Definition at line 1762 of file OpenMPClause.cpp.

References clang::C.

Referenced by clang::SemaOpenMP::ActOnOpenMPUsesAllocatorClause().

◆ CreateEmpty()

OMPUsesAllocatorsClause * OMPUsesAllocatorsClause::CreateEmpty ( const ASTContext & C,
unsigned N )
static

Creates an empty clause with the place for N allocators.

Parameters
CAST context.
NThe number of allocators.

Definition at line 1775 of file OpenMPClause.cpp.

References clang::C.

Referenced by clang::OMPClauseReader::readClause().

◆ getAllocatorData()

OMPUsesAllocatorsClause::Data OMPUsesAllocatorsClause::getAllocatorData ( unsigned I) const

◆ getLParenLoc()

SourceLocation OMPUsesAllocatorsClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 9549 of file OpenMPClause.h.

◆ getNumberOfAllocators()

unsigned OMPUsesAllocatorsClause::getNumberOfAllocators ( ) const
inline

Returns number of allocators associated with the clause.

Definition at line 9552 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range OMPUsesAllocatorsClause::used_children ( )
inline

Definition at line 9570 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPUsesAllocatorsClause::used_children ( ) const
inline

Definition at line 9573 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 9481 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


The documentation for this class was generated from the following files: