clang API Documentation
This represents 'num_threads' clause in the '#pragma omp ...' directive. More...
#include <OpenMPClause.h>


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 '('. | |
| Expr * | getNumThreads () const |
| Returns number of threads. | |
| StmtRange | children () |
Static Public Member Functions | |
| static bool | classof (const OMPClause *T) |
Friends | |
| class | OMPClauseReader |
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.
| clang::OMPNumThreadsClause::OMPNumThreadsClause | ( | Expr * | NumThreads, |
| SourceLocation | StartLoc, | ||
| SourceLocation | LParenLoc, | ||
| SourceLocation | EndLoc | ||
| ) | [inline] |
Build 'num_threads' clause with condition NumThreads.
| NumThreads | Number of threads for the construct. |
| StartLoc | Starting location of the clause. |
| LParenLoc | Location of '('. |
| EndLoc | Ending location of the clause. |
Definition at line 280 of file OpenMPClause.h.
| clang::OMPNumThreadsClause::OMPNumThreadsClause | ( | ) | [inline] |
Build an empty clause.
Definition at line 287 of file OpenMPClause.h.
| StmtRange clang::OMPNumThreadsClause::children | ( | ) | [inline] |
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().
| SourceLocation clang::OMPNumThreadsClause::getLParenLoc | ( | ) | const [inline] |
Returns the location of '('.
Definition at line 294 of file OpenMPClause.h.
| Expr* clang::OMPNumThreadsClause::getNumThreads | ( | ) | const [inline] |
Returns number of threads.
Definition at line 297 of file OpenMPClause.h.
| void clang::OMPNumThreadsClause::setLParenLoc | ( | SourceLocation | Loc | ) | [inline] |
Sets the location of '('.
Definition at line 292 of file OpenMPClause.h.
friend class OMPClauseReader [friend] |
Definition at line 262 of file OpenMPClause.h.