clang API Documentation

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

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

#include <OpenMPClause.h>

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

List of all members.

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 '('.
ExprgetNumForLoops () const
 Return the number of associated for-loops.
StmtRange children ()

Static Public Member Functions

static bool classof (const OMPClause *T)

Friends

class OMPClauseReader

Detailed Description

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.


Constructor & Destructor Documentation

clang::OMPCollapseClause::OMPCollapseClause ( Expr Num,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc 
) [inline]

Build 'collapse' clause.

Parameters:
NumExpression associated with this clause.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.

Definition at line 392 of file OpenMPClause.h.

Build an empty clause.

Definition at line 399 of file OpenMPClause.h.


Member Function Documentation

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().

Returns the location of '('.

Definition at line 406 of file OpenMPClause.h.

Return the number of associated for-loops.

Definition at line 409 of file OpenMPClause.h.

Sets the location of '('.

Definition at line 404 of file OpenMPClause.h.


Friends And Related Function Documentation

friend class OMPClauseReader [friend]

Definition at line 375 of file OpenMPClause.h.


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