clang API Documentation
This represents clause 'aligned' 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 * | getAlignment () |
Returns alignment. | |
const Expr * | getAlignment () const |
Returns alignment. | |
StmtRange | children () |
Static Public Member Functions | |
static OMPAlignedClause * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef< Expr * > VL, Expr *A) |
Creates clause with a list of variables VL and alignment A. | |
static OMPAlignedClause * | 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 'aligned' in the '#pragma omp ...' directives.
#pragma omp simd aligned(a,b : 8)
In this example directive '#pragma omp simd' has clause 'aligned' with variables 'a', 'b' and alignment '8'.
Definition at line 1438 of file OpenMPClause.h.
StmtRange clang::OMPAlignedClause::children | ( | ) | [inline] |
Reimplemented from clang::OMPClause.
Definition at line 1504 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPAlignedClause >::varlist_begin(), and clang::OMPVarListClause< OMPAlignedClause >::varlist_end().
static bool clang::OMPAlignedClause::classof | ( | const OMPClause * | T | ) | [inline, static] |
Reimplemented from clang::OMPClause.
Definition at line 1509 of file OpenMPClause.h.
References clang::OMPClause::getClauseKind().
OMPAlignedClause * OMPAlignedClause::Create | ( | const ASTContext & | C, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | ColonLoc, | ||
SourceLocation | EndLoc, | ||
ArrayRef< Expr * > | VL, | ||
Expr * | A | ||
) | [static] |
Creates clause with a list of variables VL and alignment A.
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. |
A | Alignment. |
Definition at line 1313 of file Stmt.cpp.
References clang::ASTContext::Allocate(), and clang::OMPVarListClause< T >::setVarRefs().
Referenced by clang::Sema::ActOnOpenMPAlignedClause().
OMPAlignedClause * OMPAlignedClause::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 1326 of file Stmt.cpp.
References clang::ASTContext::Allocate().
Referenced by clang::OMPClauseReader::readClause().
Expr* clang::OMPAlignedClause::getAlignment | ( | ) | [inline] |
Returns alignment.
Definition at line 1500 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPAlignedClause >::varlist_end().
Referenced by EmitOMPAlignedClause().
const Expr* clang::OMPAlignedClause::getAlignment | ( | ) | const [inline] |
Returns alignment.
Definition at line 1502 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPAlignedClause >::varlist_end().
SourceLocation clang::OMPAlignedClause::getColonLoc | ( | ) | const [inline] |
Returns the location of ':'.
Definition at line 1497 of file OpenMPClause.h.
void clang::OMPAlignedClause::setColonLoc | ( | SourceLocation | Loc | ) | [inline] |
Sets the location of ':'.
Definition at line 1495 of file OpenMPClause.h.
friend class OMPClauseReader [friend] |
Reimplemented from clang::OMPVarListClause< OMPAlignedClause >.
Definition at line 1439 of file OpenMPClause.h.