clang  3.9.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
OMPNumTasksClause Class Reference

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

#include <OpenMPClause.h>

Inheritance diagram for OMPNumTasksClause:
[legend]
Collaboration diagram for OMPNumTasksClause:
[legend]

Public Member Functions

 OMPNumTasksClause (Expr *Size, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'num_tasks' clause. More...
 
 OMPNumTasksClause ()
 Build an empty clause. More...
 
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('. More...
 
SourceLocation getLParenLoc () const
 Returns the location of '('. More...
 
Expr * getNumTasks () const
 Return safe iteration space distance. More...
 
child_range children ()
 

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

Constructor & Destructor Documentation

OMPNumTasksClause::OMPNumTasksClause ( Expr *  Size,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc 
)
inline

Build 'num_tasks' clause.

Parameters
SizeExpression associated with this clause.
StartLocStarting location of the clause.
EndLocEnding location of the clause.

Definition at line 3724 of file OpenMPClause.h.

OMPNumTasksClause::OMPNumTasksClause ( )
inlineexplicit

Build an empty clause.

Definition at line 3731 of file OpenMPClause.h.

Member Function Documentation

child_range OMPNumTasksClause::children ( )
inline

Definition at line 3747 of file OpenMPClause.h.

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

Definition at line 3743 of file OpenMPClause.h.

SourceLocation OMPNumTasksClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 3738 of file OpenMPClause.h.

Expr* OMPNumTasksClause::getNumTasks ( ) const
inline

Return safe iteration space distance.

Definition at line 3741 of file OpenMPClause.h.

void OMPNumTasksClause::setLParenLoc ( SourceLocation  Loc)
inline

Sets the location of '('.

Definition at line 3736 of file OpenMPClause.h.

Friends And Related Function Documentation

friend class OMPClauseReader
friend

Definition at line 3708 of file OpenMPClause.h.


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