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

Inherited from OMPClause:

Methods

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()

Description

Build an empty clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:842

clang::OMPClause::child_range children()

Declared at: clang/include/clang/AST/OpenMPClause.h:855

clang::OMPClause::const_child_range children()
    const

Declared at: clang/include/clang/AST/OpenMPClause.h:857

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

Description

Returns the location of '('.

Declared at: clang/include/clang/AST/OpenMPClause.h:850

clang::Expr* getSimdlen() const

Description

Return safe iteration space distance.

Declared at: clang/include/clang/AST/OpenMPClause.h:853

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

Declared at: clang/include/clang/AST/OpenMPClause.h:847

Parameters

clang::SourceLocation Loc

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()

Declared at: clang/include/clang/AST/OpenMPClause.h:861

clang::OMPClause::const_child_range
used_children() const

Declared at: clang/include/clang/AST/OpenMPClause.h:864