class OMPGrainsizeClause

Declaration

class OMPGrainsizeClause : public OMPClause,
                           public OMPClauseWithPreInit { /* full declaration omitted */ };

Description

This represents 'grainsize' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp taskloop' has clause 'grainsize' with single expression '4'.

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

Inherits from: OMPClause, OMPClauseWithPreInit

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private clang::Stmt* Grainsize = nullptr
Safe iteration space distance.

Method Overview

  • public OMPGrainsizeClause(clang::Expr * Size, clang::Stmt * HelperSize, clang::OpenMPDirectiveKind CaptureRegion, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
  • public OMPGrainsizeClause()
  • 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 * getGrainsize() const
  • public clang::SourceLocation getLParenLoc() const
  • private void setGrainsize(clang::Expr * Size)
  • public void setLParenLoc(clang::SourceLocation Loc)
  • public clang::OMPClause::child_range used_children()
  • public clang::OMPClause::const_child_range used_children() const

Inherited from OMPClauseWithPreInit:

Inherited from OMPClause:

Methods

OMPGrainsizeClause(
    clang::Expr* Size,
    clang::Stmt* HelperSize,
    clang::OpenMPDirectiveKind CaptureRegion,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation EndLoc)

Description

Build 'grainsize' clause.

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

Parameters

clang::Expr* Size
Expression associated with this clause.
clang::Stmt* HelperSize
Helper grainsize for the construct.
clang::OpenMPDirectiveKind CaptureRegion
Innermost OpenMP region where expressions in this clause must be captured.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
clang::SourceLocation EndLoc
Ending location of the clause.

OMPGrainsizeClause()

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

static bool classof(const clang::OMPClause* T)

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

Parameters

const clang::OMPClause* T

clang::Expr* getGrainsize() const

Description

Return safe iteration space distance.

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

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

void setGrainsize(clang::Expr* Size)

Description

Set safelen.

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

Parameters

clang::Expr* Size

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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