class OMPSimdlenClause
Declaration
class OMPSimdlenClause : public OMPClause { /* full declaration omitted */ };
Description
This represents 'simdlen' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp simd' has clause 'simdlen' with single expression '4'. If the 'simdlen' clause is used then it specifies the preferred number of iterations to be executed concurrently. The parameter of the 'simdlen' clause must be a constant positive integer expression.
Declared at: clang/include/clang/AST/OpenMPClause.h:818
Inherits from: OMPClause
Member Variables
- private clang::SourceLocation LParenLoc
- Location of '('.
- private clang::Stmt* Simdlen = nullptr
- Safe iteration space distance.
Method Overview
- public OMPSimdlenClause(clang::Expr * Len, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
- public OMPSimdlenClause()
- public clang::OMPClause::child_range children()
- public clang::OMPClause::const_child_range children() const
- public static bool classof(const clang::OMPClause * T)
- public clang::SourceLocation getLParenLoc() const
- public clang::Expr * getSimdlen() const
- public void setLParenLoc(clang::SourceLocation Loc)
- private void setSimdlen(clang::Expr * Len)
- public clang::OMPClause::child_range used_children()
- public clang::OMPClause::const_child_range used_children() const
Inherited from OMPClause:
- public children
- public children
- public classof
- public getBeginLoc
- public getClauseKind
- public getEndLoc
- public isImplicit
- public setLocEnd
- public setLocStart
- public used_children
- public used_children
Methods
¶OMPSimdlenClause(clang::Expr* Len,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
OMPSimdlenClause(clang::Expr* Len,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
Description
Build 'simdlen' clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:836
Parameters
- clang::Expr* Len
- Expression associated with this clause.
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- clang::SourceLocation EndLoc
- Ending location of the clause.
¶OMPSimdlenClause()
OMPSimdlenClause()
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:842
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:855
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:857
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:868
Parameters
- const clang::OMPClause* T
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Description
Returns the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:850
¶clang::Expr* getSimdlen() const
clang::Expr* getSimdlen() const
Description
Return safe iteration space distance.
Declared at: clang/include/clang/AST/OpenMPClause.h:853
¶void setLParenLoc(clang::SourceLocation Loc)
void setLParenLoc(clang::SourceLocation Loc)
Description
Sets the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:847
Parameters
¶void setSimdlen(clang::Expr* Len)
void setSimdlen(clang::Expr* Len)
Description
Set simdlen.
Declared at: clang/include/clang/AST/OpenMPClause.h:828
Parameters
- clang::Expr* Len
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:861
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:864