clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::OMPNumThreadsClause Class Reference

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

#include <OpenMPClause.h>

Inheritance diagram for clang::OMPNumThreadsClause:
Inheritance graph
[legend]
Collaboration diagram for clang::OMPNumThreadsClause:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 OMPNumThreadsClause (Expr *NumThreads, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'num_threads' clause with condition NumThreads.
 OMPNumThreadsClause ()
 Build an empty clause.
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('.
SourceLocation getLParenLoc () const
 Returns the location of '('.
ExprgetNumThreads () const
 Returns number of threads.
StmtRange children ()

Static Public Member Functions

static bool classof (const OMPClause *T)

Friends

class OMPClauseReader

Detailed Description

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

 #pragma omp parallel num_threads(6)

In this example directive '#pragma omp parallel' has simple 'num_threads' clause with number of threads '6'.

Definition at line 261 of file OpenMPClause.h.


Constructor & Destructor Documentation

clang::OMPNumThreadsClause::OMPNumThreadsClause ( Expr NumThreads,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc 
) [inline]

Build 'num_threads' clause with condition NumThreads.

Parameters:
NumThreadsNumber of threads for the construct.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.

Definition at line 280 of file OpenMPClause.h.

Build an empty clause.

Definition at line 287 of file OpenMPClause.h.


Member Function Documentation

Reimplemented from clang::OMPClause.

Definition at line 303 of file OpenMPClause.h.

static bool clang::OMPNumThreadsClause::classof ( const OMPClause T) [inline, static]

Reimplemented from clang::OMPClause.

Definition at line 299 of file OpenMPClause.h.

References clang::OMPClause::getClauseKind().

Returns the location of '('.

Definition at line 294 of file OpenMPClause.h.

Returns number of threads.

Definition at line 297 of file OpenMPClause.h.

Sets the location of '('.

Definition at line 292 of file OpenMPClause.h.


Friends And Related Function Documentation

friend class OMPClauseReader [friend]

Definition at line 262 of file OpenMPClause.h.


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