clang 23.0.0git
OMPGrainsizeClause Class Reference

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPGrainsizeClause:
[legend]

Public Member Functions

 OMPGrainsizeClause (OpenMPGrainsizeClauseModifier Modifier, Expr *Size, Stmt *HelperSize, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ModifierLoc, SourceLocation EndLoc)
 Build 'grainsize' clause.
 OMPGrainsizeClause ()
 Build an empty clause.
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('.
SourceLocation getLParenLoc () const
 Returns the location of '('.
Expr * getGrainsize () const
 Return safe iteration space distance.
OpenMPGrainsizeClauseModifier getModifier () const
 Gets modifier.
SourceLocation getModifierLoc () const
 Gets modifier location.
child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const

Static Public Member Functions

static bool classof (const OMPClause *T)

Friends

class OMPClauseReader

Detailed Description

This represents 'grainsize' clause in the '#pragma omp ...' directive.

#pragma omp taskloop grainsize(4)

In this example directive '#pragma omp taskloop' has clause 'grainsize' with single expression '4'.

Definition at line 7129 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPGrainsizeClause() [1/2]

OMPGrainsizeClause::OMPGrainsizeClause ( OpenMPGrainsizeClauseModifier Modifier,
Expr * Size,
Stmt * HelperSize,
OpenMPDirectiveKind CaptureRegion,
SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation ModifierLoc,
SourceLocation EndLoc )
inline

Build 'grainsize' clause.

Parameters
ModifierClause modifier.
SizeExpression associated with this clause.
HelperSizeHelper grainsize for the construct.
CaptureRegionInnermost OpenMP region where expressions in this clause must be captured.
StartLocStarting location of the clause.
ModifierLocModifier location.
LParenLocLocation of '('.
EndLocEnding location of the clause.

Definition at line 7165 of file OpenMPClause.h.

Referenced by used_children().

◆ OMPGrainsizeClause() [2/2]

OMPGrainsizeClause::OMPGrainsizeClause ( )
inlineexplicit

Build an empty clause.

Definition at line 7176 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPGrainsizeClause::children ( )
inline

Definition at line 7196 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPGrainsizeClause::children ( ) const
inline

Definition at line 7198 of file OpenMPClause.h.

◆ classof()

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

Definition at line 7207 of file OpenMPClause.h.

◆ getGrainsize()

Expr * OMPGrainsizeClause::getGrainsize ( ) const
inline

Return safe iteration space distance.

Definition at line 7188 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPGrainsizeClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 7185 of file OpenMPClause.h.

◆ getModifier()

OpenMPGrainsizeClauseModifier OMPGrainsizeClause::getModifier ( ) const
inline

Gets modifier.

Definition at line 7191 of file OpenMPClause.h.

◆ getModifierLoc()

SourceLocation OMPGrainsizeClause::getModifierLoc ( ) const
inline

Gets modifier location.

Definition at line 7194 of file OpenMPClause.h.

◆ setLParenLoc()

void OMPGrainsizeClause::setLParenLoc ( SourceLocation Loc)
inline

Sets the location of '('.

Definition at line 7182 of file OpenMPClause.h.

◆ used_children() [1/2]

OMPClause::child_range OMPGrainsizeClause::used_children ( )

Definition at line 322 of file OpenMPClause.cpp.

References clang::C, and getAddrOfExprAsWritten().

Referenced by used_children().

◆ used_children() [2/2]

const_child_range OMPGrainsizeClause::used_children ( ) const
inline

Definition at line 7203 of file OpenMPClause.h.

References OMPGrainsizeClause(), and used_children().

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 7130 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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