class OMPAlignedClause
Declaration
class OMPAlignedClause : public OMPVarListClause,
private TrailingObjects { /* full declaration omitted */ };
Description
This represents clause 'aligned' in the '#pragma omp ...' directives. In this example directive '#pragma omp simd' has clause 'aligned' with variables 'a', 'b' and alignment '8'.
Declared at: clang/include/clang/AST/OpenMPClause.h:4139
Inherits from: OMPVarListClause, TrailingObjects
Member Variables
- private clang::SourceLocation ColonLoc
- Location of ':'.
Method Overview
- public static clang::OMPAlignedClause * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation ColonLoc, clang::SourceLocation EndLoc, ArrayRef<clang::Expr *> VL, clang::Expr * A)
- public static clang::OMPAlignedClause * CreateEmpty(const clang::ASTContext & C, unsigned int NumVars)
- private OMPAlignedClause(clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation ColonLoc, clang::SourceLocation EndLoc, unsigned int NumVars)
- private OMPAlignedClause(unsigned int NumVars)
- public clang::OMPClause::child_range children()
- public clang::OMPClause::const_child_range children() const
- public static bool classof(const clang::OMPClause * T)
- public clang::Expr * getAlignment()
- public const clang::Expr * getAlignment() const
- public clang::SourceLocation getColonLoc() const
- private void setAlignment(clang::Expr * A)
- public void setColonLoc(clang::SourceLocation Loc)
- public clang::OMPClause::child_range used_children()
- public clang::OMPClause::const_child_range used_children() const
Methods
¶static clang::OMPAlignedClause* Create(
const clang::ASTContext& C,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation ColonLoc,
clang::SourceLocation EndLoc,
ArrayRef<clang::Expr*> VL,
clang::Expr* A)
static clang::OMPAlignedClause* Create(
const clang::ASTContext& C,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation ColonLoc,
clang::SourceLocation EndLoc,
ArrayRef<clang::Expr*> VL,
clang::Expr* A)
Description
Creates clause with a list of variables \a VL and alignment \a A.
Declared at: clang/include/clang/AST/OpenMPClause.h:4184
Parameters
- const clang::ASTContext& C
- AST Context.
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::SourceLocation ColonLoc
- Location of ':'.
- clang::SourceLocation EndLoc
- Ending location of the clause.
- ArrayRef<clang::Expr*> VL
- List of references to the variables.
- clang::Expr* A
- Alignment.
¶static clang::OMPAlignedClause* CreateEmpty(
const clang::ASTContext& C,
unsigned int NumVars)
static clang::OMPAlignedClause* CreateEmpty(
const clang::ASTContext& C,
unsigned int NumVars)
Description
Creates an empty clause with the place for \a NumVars variables.
Declared at: clang/include/clang/AST/OpenMPClause.h:4194
Parameters
- const clang::ASTContext& C
- AST context.
- unsigned int NumVars
- Number of variables.
¶OMPAlignedClause(clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation ColonLoc,
clang::SourceLocation EndLoc,
unsigned int NumVars)
OMPAlignedClause(clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation ColonLoc,
clang::SourceLocation EndLoc,
unsigned int NumVars)
Description
Build 'aligned' clause with given number of variables \a NumVars.
Declared at: clang/include/clang/AST/OpenMPClause.h:4159
Parameters
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::SourceLocation ColonLoc
- Location of ':'.
- clang::SourceLocation EndLoc
- Ending location of the clause.
- unsigned int NumVars
- Number of variables.
¶OMPAlignedClause(unsigned int NumVars)
OMPAlignedClause(unsigned int NumVars)
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:4169
Parameters
- unsigned int NumVars
- Number of variables.
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:4208
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:4213
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:4225
Parameters
- const clang::OMPClause* T
¶clang::Expr* getAlignment()
clang::Expr* getAlignment()
Description
Returns alignment.
Declared at: clang/include/clang/AST/OpenMPClause.h:4203
¶const clang::Expr* getAlignment() const
const clang::Expr* getAlignment() const
Description
Returns alignment.
Declared at: clang/include/clang/AST/OpenMPClause.h:4206
¶clang::SourceLocation getColonLoc() const
clang::SourceLocation getColonLoc() const
Description
Returns the location of ':'.
Declared at: clang/include/clang/AST/OpenMPClause.h:4200
¶void setAlignment(clang::Expr* A)
void setAlignment(clang::Expr* A)
Description
Sets the alignment for clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:4150
Parameters
- clang::Expr* A
¶void setColonLoc(clang::SourceLocation Loc)
void setColonLoc(clang::SourceLocation Loc)
Description
Sets the location of ':'.
Declared at: clang/include/clang/AST/OpenMPClause.h:4197
Parameters
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:4218
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:4221