|
clang
3.8.0
|
This represents clause 'reduction' in the '#pragma omp ...' directives. More...
#include <OpenMPClause.h>
Public Types | |
| typedef MutableArrayRef< Expr * > ::iterator | helper_expr_iterator |
| typedef ArrayRef< const Expr * > ::iterator | helper_expr_const_iterator |
| typedef llvm::iterator_range < helper_expr_iterator > | helper_expr_range |
| typedef llvm::iterator_range < helper_expr_const_iterator > | helper_expr_const_range |
Public Types inherited from clang::OMPVarListClause< OMPReductionClause > | |
| typedef MutableArrayRef< Expr * > ::iterator | varlist_iterator |
| typedef ArrayRef< const Expr * > ::iterator | varlist_const_iterator |
| typedef llvm::iterator_range < varlist_iterator > | varlist_range |
| typedef llvm::iterator_range < varlist_const_iterator > | varlist_const_range |
Public Types inherited from clang::OMPClause | |
| typedef StmtIterator | child_iterator |
| typedef ConstStmtIterator | const_child_iterator |
| typedef llvm::iterator_range < child_iterator > | child_range |
| typedef llvm::iterator_range < const_child_iterator > | const_child_range |
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, ArrayRef< Expr * > Privates, ArrayRef< Expr * > LHSExprs, ArrayRef< Expr * > RHSExprs, ArrayRef< Expr * > ReductionOps) |
| Creates clause with a list of variables VL. More... | |
| static OMPReductionClause * | CreateEmpty (const ASTContext &C, unsigned N) |
| Creates an empty clause with the place for N variables. More... | |
| static bool | classof (const OMPClause *T) |
Static Public Member Functions inherited from clang::OMPClause | |
| static bool | classof (const OMPClause *) |
Friends | |
| class | OMPClauseReader |
Additional Inherited Members | |
Protected Member Functions inherited from clang::OMPVarListClause< OMPReductionClause > | |
| MutableArrayRef< Expr * > | getVarRefs () |
| Fetches list of variables associated with this clause. More... | |
| void | setVarRefs (ArrayRef< Expr * > VL) |
| Sets the list of variables for this clause. More... | |
| OMPVarListClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, unsigned N) | |
| Build a clause with N variables. More... | |
Protected Member Functions inherited from clang::OMPClause | |
| OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc) | |
This represents clause 'reduction' in the '#pragma omp ...' directives.
In this example directive '#pragma omp parallel' has clause 'reduction' with operator '+' and the variables 'a' and 'b'.
Definition at line 1628 of file OpenMPClause.h.
| typedef ArrayRef<const Expr *>::iterator clang::OMPReductionClause::helper_expr_const_iterator |
Definition at line 1783 of file OpenMPClause.h.
| typedef llvm::iterator_range<helper_expr_const_iterator> clang::OMPReductionClause::helper_expr_const_range |
Definition at line 1786 of file OpenMPClause.h.
Definition at line 1782 of file OpenMPClause.h.
| typedef llvm::iterator_range<helper_expr_iterator> clang::OMPReductionClause::helper_expr_range |
Definition at line 1784 of file OpenMPClause.h.
|
inline |
Definition at line 1815 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPReductionClause >::varlist_begin(), and clang::OMPVarListClause< OMPReductionClause >::varlist_end().
Definition at line 1820 of file OpenMPClause.h.
References clang::OMPClause::getClauseKind().
|
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. |
| Privates | List of helper expressions for proper generation of private copies. |
| LHSExprs | List of helper expressions for proper generation of assignment operation required for copyprivate clause. This list represents LHSs of the reduction expressions. |
| RHSExprs | List of helper expressions for proper generation of assignment operation required for copyprivate clause. This list represents RHSs of the reduction expressions. Also, variables in these expressions are used for proper initialization of reduction copies. |
| ReductionOps | List of helper expressions that represents reduction expressions: LHSExprs binop RHSExprs;
operator binop(LHSExpr, RHSExpr);
<CutomReduction>(LHSExpr, RHSExpr);
|
Definition at line 338 of file OpenMPClause.cpp.
References clang::ASTContext::Allocate(), and clang::OMPVarListClause< T >::setVarRefs().
Referenced by clang::Sema::ActOnOpenMPReductionClause().
|
static |
Creates an empty clause with the place for N variables.
| C | AST context. |
| N | The number of variables. |
Definition at line 355 of file OpenMPClause.cpp.
References clang::ASTContext::Allocate().
Referenced by clang::OMPClauseReader::readClause().
|
inline |
Gets location of ':' symbol in clause.
Definition at line 1776 of file OpenMPClause.h.
References ColonLoc.
|
inline |
Gets the name info for specified reduction identifier.
Definition at line 1778 of file OpenMPClause.h.
|
inline |
Gets the nested name specifier.
Definition at line 1780 of file OpenMPClause.h.
|
inline |
Definition at line 1794 of file OpenMPClause.h.
References clang::begin(), and clang::end().
|
inline |
Definition at line 1797 of file OpenMPClause.h.
References clang::begin(), and clang::end().
|
inline |
Definition at line 1788 of file OpenMPClause.h.
References clang::begin(), clang::end(), and clang::getPrivates().
|
inline |
Definition at line 1791 of file OpenMPClause.h.
References clang::begin(), clang::end(), and clang::getPrivates().
|
inline |
Definition at line 1806 of file OpenMPClause.h.
References clang::begin(), and clang::end().
|
inline |
Definition at line 1810 of file OpenMPClause.h.
References clang::begin(), and clang::end().
|
inline |
Definition at line 1800 of file OpenMPClause.h.
References clang::begin(), and clang::end().
|
inline |
Definition at line 1803 of file OpenMPClause.h.
References clang::begin(), and clang::end().
|
friend |
Definition at line 1633 of file OpenMPClause.h.
1.8.6