clang  9.0.0svn
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 "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPNumTasksClause:
Inheritance graph
Collaboration diagram for OMPNumTasksClause:
Collaboration graph

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 ()
const_child_range children () const

Static Public Member Functions

static bool classof (const OMPClause *T)


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

Constructor & Destructor Documentation

◆ OMPNumTasksClause() [1/2]

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

Build 'num_tasks' clause.

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

Definition at line 5018 of file OpenMPClause.h.

◆ OMPNumTasksClause() [2/2]

OMPNumTasksClause::OMPNumTasksClause ( )

Build an empty clause.

Definition at line 5024 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPNumTasksClause::children ( )

Definition at line 5036 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPNumTasksClause::children ( ) const

Definition at line 5038 of file OpenMPClause.h.

◆ classof()

static bool OMPNumTasksClause::classof ( const OMPClause T)

Definition at line 5042 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPNumTasksClause::getLParenLoc ( ) const

Returns the location of '('.

Definition at line 5031 of file OpenMPClause.h.

Referenced by clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().

◆ getNumTasks()

Expr* OMPNumTasksClause::getNumTasks ( ) const

Return safe iteration space distance.

Definition at line 5034 of file OpenMPClause.h.

Referenced by OMPIsDevicePtrClause::CreateEmpty(), and clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().

◆ setLParenLoc()

void OMPNumTasksClause::setLParenLoc ( SourceLocation  Loc)

Sets the location of '('.

Definition at line 5028 of file OpenMPClause.h.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader

Definition at line 5001 of file OpenMPClause.h.

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