clang API Documentation
This represents clause 'linear' in the '#pragma omp ...' directives. More...
#include <OpenMPClause.h>
Public Member Functions | |
void | setColonLoc (SourceLocation Loc) |
Sets the location of ':'. | |
SourceLocation | getColonLoc () const |
Returns the location of '('. | |
Expr * | getStep () |
Returns linear step. | |
const Expr * | getStep () const |
Returns linear step. | |
StmtRange | children () |
Static Public Member Functions | |
static OMPLinearClause * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef< Expr * > VL, Expr *Step) |
Creates clause with a list of variables VL and a linear step Step. | |
static OMPLinearClause * | CreateEmpty (const ASTContext &C, unsigned NumVars) |
Creates an empty clause with the place for NumVars variables. | |
static bool | classof (const OMPClause *T) |
Friends | |
class | OMPClauseReader |
This represents clause 'linear' in the '#pragma omp ...' directives.
#pragma omp simd linear(a,b : 2)
In this example directive '#pragma omp simd' has clause 'linear' with variables 'a', 'b' and linear step '2'.
Definition at line 1353 of file OpenMPClause.h.
StmtRange clang::OMPLinearClause::children | ( | ) | [inline] |
Reimplemented from clang::OMPClause.
Definition at line 1419 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPLinearClause >::varlist_begin(), and clang::OMPVarListClause< OMPLinearClause >::varlist_end().
static bool clang::OMPLinearClause::classof | ( | const OMPClause * | T | ) | [inline, static] |
Reimplemented from clang::OMPClause.
Definition at line 1424 of file OpenMPClause.h.
References clang::OMPClause::getClauseKind().
OMPLinearClause * OMPLinearClause::Create | ( | const ASTContext & | C, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | ColonLoc, | ||
SourceLocation | EndLoc, | ||
ArrayRef< Expr * > | VL, | ||
Expr * | Step | ||
) | [static] |
Creates clause with a list of variables VL and a linear step Step.
C | AST Context. |
StartLoc | Starting location of the clause. |
LParenLoc | Location of '('. |
ColonLoc | Location of ':'. |
EndLoc | Ending location of the clause. |
VL | List of references to the variables. |
Step | Linear step. |
Definition at line 1288 of file Stmt.cpp.
References clang::ASTContext::Allocate(), and clang::OMPVarListClause< T >::setVarRefs().
Referenced by clang::Sema::ActOnOpenMPLinearClause().
OMPLinearClause * OMPLinearClause::CreateEmpty | ( | const ASTContext & | C, |
unsigned | NumVars | ||
) | [static] |
Creates an empty clause with the place for NumVars variables.
C | AST context. |
NumVars | Number of variables. |
Definition at line 1304 of file Stmt.cpp.
References clang::ASTContext::Allocate().
Referenced by clang::OMPClauseReader::readClause().
SourceLocation clang::OMPLinearClause::getColonLoc | ( | ) | const [inline] |
Returns the location of '('.
Definition at line 1412 of file OpenMPClause.h.
Expr* clang::OMPLinearClause::getStep | ( | ) | [inline] |
Returns linear step.
Definition at line 1415 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPLinearClause >::varlist_end().
const Expr* clang::OMPLinearClause::getStep | ( | ) | const [inline] |
Returns linear step.
Definition at line 1417 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPLinearClause >::varlist_end().
void clang::OMPLinearClause::setColonLoc | ( | SourceLocation | Loc | ) | [inline] |
Sets the location of ':'.
Definition at line 1410 of file OpenMPClause.h.
friend class OMPClauseReader [friend] |
Reimplemented from clang::OMPVarListClause< OMPLinearClause >.
Definition at line 1354 of file OpenMPClause.h.