clang API Documentation

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

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

#include <OpenMPClause.h>

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

List of all members.

Public Member Functions

SourceLocation getColonLoc () const
 Gets location of ':' symbol in clause.
const DeclarationNameInfogetNameInfo () const
 Gets the name info for specified reduction identifier.
NestedNameSpecifierLoc getQualifierLoc () const
 Gets the nested name specifier.
StmtRange children ()

Static Public Member Functions

static OMPReductionClauseCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef< Expr * > VL, NestedNameSpecifierLoc QualifierLoc, const DeclarationNameInfo &NameInfo)
 Creates clause with a list of variables VL.
static OMPReductionClauseCreateEmpty (const ASTContext &C, unsigned N)
 Creates an empty clause with the place for N variables.
static bool classof (const OMPClause *T)

Friends

class OMPClauseReader

Detailed Description

This represents clause 'reduction' in the '#pragma omp ...' directives.

 #pragma omp parallel reduction(+:a,b)

In this example directive '#pragma omp parallel' has clause 'reduction' with operator '+' and the variables 'a' and 'b'.

Definition at line 1260 of file OpenMPClause.h.


Member Function Documentation

static bool clang::OMPReductionClause::classof ( const OMPClause T) [inline, static]

Reimplemented from clang::OMPClause.

Definition at line 1339 of file OpenMPClause.h.

References clang::OMPClause::getClauseKind().

OMPReductionClause * OMPReductionClause::Create ( const ASTContext C,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  ColonLoc,
SourceLocation  EndLoc,
ArrayRef< Expr * >  VL,
NestedNameSpecifierLoc  QualifierLoc,
const DeclarationNameInfo NameInfo 
) [static]

Creates clause with a list of variables VL.

Parameters:
StartLocStarting location of the clause.
LParenLocLocation of '('.
ColonLocLocation of ':'.
EndLocEnding location of the clause.
VLThe variables in the clause.
QualifierLocThe nested-name qualifier with location information
NameInfoThe full name info for reduction identifier.

Definition at line 1402 of file Stmt.cpp.

References clang::ASTContext::Allocate(), and clang::OMPVarListClause< T >::setVarRefs().

Referenced by clang::Sema::ActOnOpenMPReductionClause().

Creates an empty clause with the place for N variables.

Parameters:
CAST context.
NThe number of variables.

Definition at line 1415 of file Stmt.cpp.

References clang::ASTContext::Allocate().

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

Gets location of ':' symbol in clause.

Definition at line 1328 of file OpenMPClause.h.

Gets the name info for specified reduction identifier.

Definition at line 1330 of file OpenMPClause.h.

Gets the nested name specifier.

Definition at line 1332 of file OpenMPClause.h.


Friends And Related Function Documentation

friend class OMPClauseReader [friend]

Reimplemented from clang::OMPVarListClause< OMPReductionClause >.

Definition at line 1261 of file OpenMPClause.h.


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