class OMPThreadLimitClause

Declaration

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

Description

This represents 'thread_limit' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp teams' has clause 'thread_limit' with single expression 'n'.

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

Inherits from: OMPClause, OMPClauseWithPreInit

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private clang::Stmt* ThreadLimit = nullptr
ThreadLimit number.

Method Overview

Inherited from OMPClauseWithPreInit:

Inherited from OMPClause:

Methods

OMPThreadLimitClause(
    clang::Expr* E,
    clang::Stmt* HelperE,
    clang::OpenMPDirectiveKind CaptureRegion,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation EndLoc)

Description

Build 'thread_limit' clause.

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

Parameters

clang::Expr* E
Expression associated with this clause.
clang::Stmt* HelperE
Helper Expression associated with this clause.
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
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.

OMPThreadLimitClause()

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

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

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

Parameters

const clang::OMPClause* T

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

clang::Expr* getThreadLimit()

Description

Return ThreadLimit number.

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

clang::Expr* getThreadLimit() const

Description

Return ThreadLimit number.

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

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

void setThreadLimit(clang::Expr* E)

Description

Set the ThreadLimit number.

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

Parameters

clang::Expr* E
ThreadLimit number.

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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