class OMPNumTasksClause

Declaration

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

Description

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

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

Inherits from: OMPClause, OMPClauseWithPreInit

Member Variables

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

Method Overview

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

Inherited from OMPClauseWithPreInit:

Inherited from OMPClause:

Methods

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

Description

Build 'num_tasks' clause.

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

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.

OMPNumTasksClause()

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

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

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

Parameters

const clang::OMPClause* T

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

clang::Expr* getNumTasks() const

Description

Return safe iteration space distance.

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

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

void setNumTasks(clang::Expr* Size)

Description

Set safelen.

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

Parameters

clang::Expr* Size

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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