clang  3.9.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
OMPAlignedClause Class Referencefinal

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

#include <OpenMPClause.h>

Inheritance diagram for OMPAlignedClause:
[legend]
Collaboration diagram for OMPAlignedClause:
[legend]

Public Member Functions

void setColonLoc (SourceLocation Loc)
 Sets the location of ':'. More...
 
SourceLocation getColonLoc () const
 Returns the location of ':'. More...
 
Expr * getAlignment ()
 Returns alignment. More...
 
const Expr * getAlignment () const
 Returns alignment. More...
 
child_range children ()
 

Static Public Member Functions

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

Friends

class OMPClauseReader
 

Detailed Description

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 2110 of file OpenMPClause.h.

Member Function Documentation

child_range OMPAlignedClause::children ( )
inline

Definition at line 2180 of file OpenMPClause.h.

static bool OMPAlignedClause::classof ( const OMPClause T)
inlinestatic

Definition at line 2185 of file OpenMPClause.h.

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.

Parameters
CAST Context.
StartLocStarting location of the clause.
LParenLocLocation of '('.
ColonLocLocation of ':'.
EndLocEnding location of the clause.
VLList of references to the variables.
AAlignment.

Definition at line 351 of file OpenMPClause.cpp.

References clang::ASTContext::Allocate().

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

OMPAlignedClause * OMPAlignedClause::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 362 of file OpenMPClause.cpp.

References clang::ASTContext::Allocate().

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

Expr* OMPAlignedClause::getAlignment ( )
inline

Returns alignment.

Definition at line 2176 of file OpenMPClause.h.

const Expr* OMPAlignedClause::getAlignment ( ) const
inline

Returns alignment.

Definition at line 2178 of file OpenMPClause.h.

SourceLocation OMPAlignedClause::getColonLoc ( ) const
inline

Returns the location of ':'.

Definition at line 2173 of file OpenMPClause.h.

References ColonLoc.

void OMPAlignedClause::setColonLoc ( SourceLocation  Loc)
inline

Sets the location of ':'.

Definition at line 2171 of file OpenMPClause.h.

References ColonLoc.

Friends And Related Function Documentation

friend class OMPClauseReader
friend

Definition at line 2115 of file OpenMPClause.h.


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