clang API Documentation
This represents clause 'reduction' in the '#pragma omp ...' directives. More...
#include <OpenMPClause.h>


Public Member Functions | |
| SourceLocation | getColonLoc () const |
| Gets location of ':' symbol in clause. | |
| const DeclarationNameInfo & | getNameInfo () const |
| Gets the name info for specified reduction identifier. | |
| NestedNameSpecifierLoc | getQualifierLoc () const |
| Gets the nested name specifier. | |
| StmtRange | children () |
Static Public Member Functions | |
| static OMPReductionClause * | Create (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 OMPReductionClause * | CreateEmpty (const ASTContext &C, unsigned N) |
| Creates an empty clause with the place for N variables. | |
| static bool | classof (const OMPClause *T) |
Friends | |
| class | OMPClauseReader |
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.
| StmtRange clang::OMPReductionClause::children | ( | ) | [inline] |
Reimplemented from clang::OMPClause.
Definition at line 1334 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPReductionClause >::varlist_begin(), and clang::OMPVarListClause< OMPReductionClause >::varlist_end().
| 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.
| StartLoc | Starting location of the clause. |
| LParenLoc | Location of '('. |
| ColonLoc | Location of ':'. |
| EndLoc | Ending location of the clause. |
| VL | The variables in the clause. |
| QualifierLoc | The nested-name qualifier with location information |
| NameInfo | The 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().
| OMPReductionClause * OMPReductionClause::CreateEmpty | ( | const ASTContext & | C, |
| unsigned | N | ||
| ) | [static] |
Creates an empty clause with the place for N variables.
| C | AST context. |
| N | The number of variables. |
Definition at line 1415 of file Stmt.cpp.
References clang::ASTContext::Allocate().
Referenced by clang::OMPClauseReader::readClause().
| SourceLocation clang::OMPReductionClause::getColonLoc | ( | ) | const [inline] |
Gets location of ':' symbol in clause.
Definition at line 1328 of file OpenMPClause.h.
| const DeclarationNameInfo& clang::OMPReductionClause::getNameInfo | ( | ) | const [inline] |
Gets the name info for specified reduction identifier.
Definition at line 1330 of file OpenMPClause.h.
| NestedNameSpecifierLoc clang::OMPReductionClause::getQualifierLoc | ( | ) | const [inline] |
Gets the nested name specifier.
Definition at line 1332 of file OpenMPClause.h.
friend class OMPClauseReader [friend] |
Reimplemented from clang::OMPVarListClause< OMPReductionClause >.
Definition at line 1261 of file OpenMPClause.h.