clang 22.0.0git
clang::OMPDynGroupprivateClause Class Reference

This represents 'dyn_groupprivate' clause in '#pragma omp target ...' and '#pragma omp teams ...' directives. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPDynGroupprivateClause:
[legend]

Public Member Functions

 OMPDynGroupprivateClause (SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, Expr *Size, Stmt *HelperSize, OpenMPDirectiveKind CaptureRegion, OpenMPDynGroupprivateClauseModifier M1, SourceLocation M1Loc, OpenMPDynGroupprivateClauseFallbackModifier M2, SourceLocation M2Loc)
 Build 'dyn_groupprivate' clause with a size expression Size.
 OMPDynGroupprivateClause ()
 Build an empty clause.
OpenMPDynGroupprivateClauseModifier getDynGroupprivateModifier () const
 Get the first modifier of the clause.
OpenMPDynGroupprivateClauseFallbackModifier getDynGroupprivateFallbackModifier () const
 Get the second modifier of the clause.
SourceLocation getLParenLoc ()
 Get location of '('.
SourceLocation getDynGroupprivateModifierLoc () const
 Get the first modifier location.
SourceLocation getDynGroupprivateFallbackModifierLoc () const
 Get the second modifier location.
ExprgetSize ()
 Get size.
const ExprgetSize () const
 Get size.
child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const
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
Public Member Functions inherited from clang::OMPClauseWithPreInit
const StmtgetPreInitStmt () const
 Get pre-initialization statement for the clause.
StmtgetPreInitStmt ()
 Get pre-initialization statement for the clause.
OpenMPDirectiveKind getCaptureRegion () const
 Get capture region for the stmt in the clause.

Static Public Member Functions

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::OMPClauseWithPreInit
static OMPClauseWithPreInitget (OMPClause *C)
static const OMPClauseWithPreInitget (const OMPClause *C)

Friends

class OMPClauseReader

Additional Inherited Members

Public Types inherited from clang::OMPClause
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>
Protected Member Functions inherited from clang::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
Protected Member Functions inherited from clang::OMPClauseWithPreInit
 OMPClauseWithPreInit (const OMPClause *This)
void setPreInitStmt (Stmt *S, OpenMPDirectiveKind ThisRegion=llvm::omp::OMPD_unknown)
 Set pre-initialization statement for the clause.

Detailed Description

This represents 'dyn_groupprivate' clause in '#pragma omp target ...' and '#pragma omp teams ...' directives.

#pragma omp target [...] dyn_groupprivate(a,b: N)

Definition at line 10077 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPDynGroupprivateClause() [1/2]

clang::OMPDynGroupprivateClause::OMPDynGroupprivateClause ( SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation EndLoc,
Expr * Size,
Stmt * HelperSize,
OpenMPDirectiveKind CaptureRegion,
OpenMPDynGroupprivateClauseModifier M1,
SourceLocation M1Loc,
OpenMPDynGroupprivateClauseFallbackModifier M2,
SourceLocation M2Loc )
inline

Build 'dyn_groupprivate' clause with a size expression Size.

Parameters
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.
SizeSize.
M1The first modifier applied to 'dyn_groupprivate' clause.
M1LocLocation of the first modifier.
M2The second modifier applied to 'dyn_groupprivate' clause.
M2LocLocation of the second modifier.

Definition at line 10139 of file OpenMPClause.h.

References clang::OMPClause::OMPClause(), clang::OMPClauseWithPreInit::OMPClauseWithPreInit(), and clang::OMPClauseWithPreInit::setPreInitStmt().

Referenced by children().

◆ OMPDynGroupprivateClause() [2/2]

clang::OMPDynGroupprivateClause::OMPDynGroupprivateClause ( )
inlineexplicit

Member Function Documentation

◆ children() [1/2]

child_range clang::OMPDynGroupprivateClause::children ( )
inline

Definition at line 10195 of file OpenMPClause.h.

Referenced by children().

◆ children() [2/2]

const_child_range clang::OMPDynGroupprivateClause::children ( ) const
inline

Definition at line 10200 of file OpenMPClause.h.

References Children, children(), and OMPDynGroupprivateClause().

◆ classof()

bool clang::OMPDynGroupprivateClause::classof ( const OMPClause * T)
inlinestatic

Definition at line 10212 of file OpenMPClause.h.

References clang::OMPClause::OMPClause(), and clang::T.

◆ getDynGroupprivateFallbackModifier()

OpenMPDynGroupprivateClauseFallbackModifier clang::OMPDynGroupprivateClause::getDynGroupprivateFallbackModifier ( ) const
inline

Get the second modifier of the clause.

Definition at line 10171 of file OpenMPClause.h.

◆ getDynGroupprivateFallbackModifierLoc()

SourceLocation clang::OMPDynGroupprivateClause::getDynGroupprivateFallbackModifierLoc ( ) const
inline

Get the second modifier location.

Definition at line 10185 of file OpenMPClause.h.

◆ getDynGroupprivateModifier()

OpenMPDynGroupprivateClauseModifier clang::OMPDynGroupprivateClause::getDynGroupprivateModifier ( ) const
inline

Get the first modifier of the clause.

Definition at line 10165 of file OpenMPClause.h.

◆ getDynGroupprivateModifierLoc()

SourceLocation clang::OMPDynGroupprivateClause::getDynGroupprivateModifierLoc ( ) const
inline

Get the first modifier location.

Definition at line 10180 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation clang::OMPDynGroupprivateClause::getLParenLoc ( )
inline

Get location of '('.

Definition at line 10177 of file OpenMPClause.h.

◆ getSize() [1/2]

Expr * clang::OMPDynGroupprivateClause::getSize ( )
inline

Get size.

Definition at line 10190 of file OpenMPClause.h.

◆ getSize() [2/2]

const Expr * clang::OMPDynGroupprivateClause::getSize ( ) const
inline

Get size.

Definition at line 10193 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range clang::OMPDynGroupprivateClause::used_children ( )
inline

Definition at line 10205 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range clang::OMPDynGroupprivateClause::used_children ( ) const
inline

Definition at line 10208 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 10078 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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