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 7265 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 7301 of file OpenMPClause.h.

Referenced by used_children().

◆ OMPNumTasksClause() [2/2]

OMPNumTasksClause::OMPNumTasksClause ( )
inlineexplicit

Build an empty clause.

Definition at line 7312 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPNumTasksClause::children ( )
inline

Definition at line 7332 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPNumTasksClause::children ( ) const
inline

Definition at line 7334 of file OpenMPClause.h.

◆ classof()

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

Definition at line 7343 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPNumTasksClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 7321 of file OpenMPClause.h.

◆ getModifier()

OpenMPNumTasksClauseModifier OMPNumTasksClause::getModifier ( ) const
inline

Gets modifier.

Definition at line 7327 of file OpenMPClause.h.

◆ getModifierLoc()

SourceLocation OMPNumTasksClause::getModifierLoc ( ) const
inline

Gets modifier location.

Definition at line 7330 of file OpenMPClause.h.

◆ getNumTasks()

Expr * OMPNumTasksClause::getNumTasks ( ) const
inline

Return safe iteration space distance.

Definition at line 7324 of file OpenMPClause.h.

◆ setLParenLoc()

void OMPNumTasksClause::setLParenLoc ( SourceLocation Loc)
inline

Sets the location of '('.

Definition at line 7318 of file OpenMPClause.h.

◆ used_children() [1/2]

OMPClause::child_range OMPNumTasksClause::used_children ( )

Definition at line 329 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 7339 of file OpenMPClause.h.

References OMPNumTasksClause(), and used_children().

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 7266 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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