clang API Documentation
This represents 'collapse' clause in the '#pragma omp ...' directive. More...
#include <OpenMPClause.h>
Public Member Functions | |
OMPCollapseClause (Expr *Num, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) | |
Build 'collapse' clause. | |
OMPCollapseClause () | |
Build an empty clause. | |
void | setLParenLoc (SourceLocation Loc) |
Sets the location of '('. | |
SourceLocation | getLParenLoc () const |
Returns the location of '('. | |
Expr * | getNumForLoops () const |
Return the number of associated for-loops. | |
StmtRange | children () |
Static Public Member Functions | |
static bool | classof (const OMPClause *T) |
Friends | |
class | OMPClauseReader |
This represents 'collapse' clause in the '#pragma omp ...' directive.
#pragma omp simd collapse(3)
In this example directive '#pragma omp simd' has clause 'collapse' with single expression '3'. The parameter must be a constant positive integer expression, it specifies the number of nested loops that should be collapsed into a single iteration space.
Definition at line 374 of file OpenMPClause.h.
clang::OMPCollapseClause::OMPCollapseClause | ( | Expr * | Num, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) | [inline] |
Build 'collapse' clause.
Num | Expression associated with this clause. |
StartLoc | Starting location of the clause. |
LParenLoc | Location of '('. |
EndLoc | Ending location of the clause. |
Definition at line 392 of file OpenMPClause.h.
clang::OMPCollapseClause::OMPCollapseClause | ( | ) | [inline, explicit] |
Build an empty clause.
Definition at line 399 of file OpenMPClause.h.
StmtRange clang::OMPCollapseClause::children | ( | ) | [inline] |
Reimplemented from clang::OMPClause.
Definition at line 415 of file OpenMPClause.h.
static bool clang::OMPCollapseClause::classof | ( | const OMPClause * | T | ) | [inline, static] |
Reimplemented from clang::OMPClause.
Definition at line 411 of file OpenMPClause.h.
References clang::OMPClause::getClauseKind().
SourceLocation clang::OMPCollapseClause::getLParenLoc | ( | ) | const [inline] |
Returns the location of '('.
Definition at line 406 of file OpenMPClause.h.
Expr* clang::OMPCollapseClause::getNumForLoops | ( | ) | const [inline] |
Return the number of associated for-loops.
Definition at line 409 of file OpenMPClause.h.
void clang::OMPCollapseClause::setLParenLoc | ( | SourceLocation | Loc | ) | [inline] |
Sets the location of '('.
Definition at line 404 of file OpenMPClause.h.
friend class OMPClauseReader [friend] |
Definition at line 375 of file OpenMPClause.h.