clang 23.0.0git
OMPNumTasksClause Class Reference

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPNumTasksClause:
[legend]

Public Member Functions

 OMPNumTasksClause (OpenMPNumTasksClauseModifier Modifier, Expr *Size, Stmt *HelperSize, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ModifierLoc, SourceLocation EndLoc)
 Build 'num_tasks' clause.
 OMPNumTasksClause ()
 Build an empty clause.
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('.
SourceLocation getLParenLoc () const
 Returns the location of '('.
Expr * getNumTasks () const
 Return safe iteration space distance.
OpenMPNumTasksClauseModifier 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 'num_tasks' clause in the '#pragma omp ...' directive.

#pragma omp taskloop num_tasks(4)

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

Definition at line 7260 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPNumTasksClause() [1/2]

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

Build 'num_tasks' 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.
EndLocEnding location of the clause.
ModifierLocModifier location.
LParenLocLocation of '('.

Definition at line 7296 of file OpenMPClause.h.

Referenced by used_children().

◆ OMPNumTasksClause() [2/2]

OMPNumTasksClause::OMPNumTasksClause ( )
inlineexplicit

Build an empty clause.

Definition at line 7307 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPNumTasksClause::children ( )
inline

Definition at line 7327 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPNumTasksClause::children ( ) const
inline

Definition at line 7329 of file OpenMPClause.h.

◆ classof()

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

Definition at line 7338 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPNumTasksClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 7316 of file OpenMPClause.h.

◆ getModifier()

OpenMPNumTasksClauseModifier OMPNumTasksClause::getModifier ( ) const
inline

Gets modifier.

Definition at line 7322 of file OpenMPClause.h.

◆ getModifierLoc()

SourceLocation OMPNumTasksClause::getModifierLoc ( ) const
inline

Gets modifier location.

Definition at line 7325 of file OpenMPClause.h.

◆ getNumTasks()

Expr * OMPNumTasksClause::getNumTasks ( ) const
inline

Return safe iteration space distance.

Definition at line 7319 of file OpenMPClause.h.

◆ setLParenLoc()

void OMPNumTasksClause::setLParenLoc ( SourceLocation Loc)
inline

Sets the location of '('.

Definition at line 7313 of file OpenMPClause.h.

◆ used_children() [1/2]

OMPClause::child_range OMPNumTasksClause::used_children ( )

Definition at line 328 of file OpenMPClause.cpp.

References clang::C, and getAddrOfExprAsWritten().

Referenced by used_children().

◆ used_children() [2/2]

const_child_range OMPNumTasksClause::used_children ( ) const
inline

Definition at line 7334 of file OpenMPClause.h.

References OMPNumTasksClause(), and used_children().

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 7261 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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