clang API Documentation

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

This represents clause 'linear' in the '#pragma omp ...' directives. More...

#include <OpenMPClause.h>

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

List of all members.

Public Member Functions

void setColonLoc (SourceLocation Loc)
 Sets the location of ':'.
SourceLocation getColonLoc () const
 Returns the location of '('.
ExprgetStep ()
 Returns linear step.
const ExprgetStep () const
 Returns linear step.
StmtRange children ()

Static Public Member Functions

static OMPLinearClauseCreate (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 OMPLinearClauseCreateEmpty (const ASTContext &C, unsigned NumVars)
 Creates an empty clause with the place for NumVars variables.
static bool classof (const OMPClause *T)

Friends

class OMPClauseReader

Detailed Description

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.


Member Function Documentation

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.

Parameters:
CAST Context.
StartLocStarting location of the clause.
LParenLocLocation of '('.
ColonLocLocation of ':'.
EndLocEnding location of the clause.
VLList of references to the variables.
StepLinear 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.

Parameters:
CAST context.
NumVarsNumber of variables.

Definition at line 1304 of file Stmt.cpp.

References clang::ASTContext::Allocate().

Referenced by clang::OMPClauseReader::readClause().

Returns the location of '('.

Definition at line 1412 of file OpenMPClause.h.

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

Sets the location of ':'.

Definition at line 1410 of file OpenMPClause.h.


Friends And Related Function Documentation

friend class OMPClauseReader [friend]

Reimplemented from clang::OMPVarListClause< OMPLinearClause >.

Definition at line 1354 of file OpenMPClause.h.


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