clang 22.0.0git
clang::OMPXDynCGroupMemClause Class Reference

This represents 'ompx_dyn_cgroup_mem' clause in the '#pragma omp target ...' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPXDynCGroupMemClause:
[legend]

Public Member Functions

 OMPXDynCGroupMemClause (Expr *Size, Stmt *HelperSize, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'ompx_dyn_cgroup_mem' clause.
 OMPXDynCGroupMemClause ()
 Build an empty clause.
ExprgetSize ()
 Return the size expression.
ExprgetSize () const
 Return the size expression.
Public Member Functions inherited from clang::OMPOneStmtClause< llvm::omp::OMPC_ompx_dyn_cgroup_mem, OMPClause >
 OMPOneStmtClause (Stmt *S, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
TgetStmtAs () const
 Return the associated statement, potentially casted to T.
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('.
SourceLocation getLParenLoc () const
 Returns the location of '('.
child_range children ()
child_range used_children ()
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.

Friends

class OMPClauseReader

Additional Inherited Members

Public Types inherited from clang::OMPOneStmtClause< llvm::omp::OMPC_ompx_dyn_cgroup_mem, OMPClause >
using child_iterator
using const_child_iterator
using child_range
using const_child_range
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>
Static Public Member Functions inherited from clang::OMPOneStmtClause< llvm::omp::OMPC_ompx_dyn_cgroup_mem, OMPClause >
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)
Protected Member Functions inherited from clang::OMPOneStmtClause< llvm::omp::OMPC_ompx_dyn_cgroup_mem, OMPClause >
void setStmt (Stmt *S)
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 'ompx_dyn_cgroup_mem' clause in the '#pragma omp target ...' directive.

#pragma omp target [...] ompx_dyn_cgroup_mem(N)

Definition at line 9736 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPXDynCGroupMemClause() [1/2]

clang::OMPXDynCGroupMemClause::OMPXDynCGroupMemClause ( Expr * Size,
Stmt * HelperSize,
OpenMPDirectiveKind CaptureRegion,
SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation EndLoc )
inline

Build 'ompx_dyn_cgroup_mem' clause.

Parameters
SizeSize expression.
HelperSizeHelper Size expression
CaptureRegionInnermost OpenMP region where expressions in this
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.

Definition at line 9753 of file OpenMPClause.h.

References clang::OMPClauseWithPreInit::OMPClauseWithPreInit(), clang::OMPOneStmtClause< llvm::omp::OMPC_ompx_dyn_cgroup_mem, OMPClause >::OMPOneStmtClause(), and clang::OMPClauseWithPreInit::setPreInitStmt().

◆ OMPXDynCGroupMemClause() [2/2]

clang::OMPXDynCGroupMemClause::OMPXDynCGroupMemClause ( )
inline

Member Function Documentation

◆ getSize() [1/2]

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

Return the size expression.

Definition at line 9766 of file OpenMPClause.h.

References clang::OMPOneStmtClause< llvm::omp::OMPC_ompx_dyn_cgroup_mem, OMPClause >::getStmtAs().

◆ getSize() [2/2]

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

Return the size expression.

Definition at line 9769 of file OpenMPClause.h.

References clang::OMPOneStmtClause< llvm::omp::OMPC_ompx_dyn_cgroup_mem, OMPClause >::getStmtAs().

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 9739 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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