clang 23.0.0git
OMPAlignedClause Class Referencefinal

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPAlignedClause:
[legend]

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.
child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const

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.
static OMPAlignedClauseCreateEmpty (const ASTContext &C, unsigned NumVars)
 Creates an empty clause with the place for NumVars variables.
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 5005 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPAlignedClause::children ( )
inline

Definition at line 5074 of file OpenMPClause.h.

Referenced by children().

◆ children() [2/2]

const_child_range OMPAlignedClause::children ( ) const
inline

Definition at line 5079 of file OpenMPClause.h.

References children().

◆ classof()

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

Definition at line 5090 of file OpenMPClause.h.

◆ Create()

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 647 of file OpenMPClause.cpp.

References clang::C.

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

◆ CreateEmpty()

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 658 of file OpenMPClause.cpp.

References clang::C.

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

◆ getAlignment() [1/2]

Expr * OMPAlignedClause::getAlignment ( )
inline

Returns alignment.

Definition at line 5069 of file OpenMPClause.h.

◆ getAlignment() [2/2]

const Expr * OMPAlignedClause::getAlignment ( ) const
inline

Returns alignment.

Definition at line 5072 of file OpenMPClause.h.

◆ getColonLoc()

SourceLocation OMPAlignedClause::getColonLoc ( ) const
inline

Returns the location of ':'.

Definition at line 5066 of file OpenMPClause.h.

◆ setColonLoc()

void OMPAlignedClause::setColonLoc ( SourceLocation Loc)
inline

Sets the location of ':'.

Definition at line 5063 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range OMPAlignedClause::used_children ( )
inline

Definition at line 5083 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPAlignedClause::used_children ( ) const
inline

Definition at line 5086 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 5008 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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