clang  11.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
OMPThreadLimitClause Class Reference

This represents 'thread_limit' clause in the '#pragma omp ...' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPThreadLimitClause:
Inheritance graph
Collaboration diagram for OMPThreadLimitClause:
Collaboration graph

Public Member Functions

 OMPThreadLimitClause (Expr *E, Stmt *HelperE, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'thread_limit' clause. More...
 OMPThreadLimitClause ()
 Build an empty clause. More...
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('. More...
SourceLocation getLParenLoc () const
 Returns the location of '('. More...
Expr * getThreadLimit ()
 Return ThreadLimit number. More...
Expr * getThreadLimit () const
 Return ThreadLimit number. More...
child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const

Static Public Member Functions

static bool classof (const OMPClause *T)


class OMPClauseReader

Detailed Description

This represents 'thread_limit' clause in the '#pragma omp ...' directive.

#pragma omp teams thread_limit(n)

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

Definition at line 5658 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPThreadLimitClause() [1/2]

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

Build 'thread_limit' clause.

EExpression associated with this clause.
HelperEHelper Expression associated with this clause.
CaptureRegionInnermost OpenMP region where expressions in this clause must be captured.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.

Definition at line 5682 of file OpenMPClause.h.

◆ OMPThreadLimitClause() [2/2]

OMPThreadLimitClause::OMPThreadLimitClause ( )

Build an empty clause.

Definition at line 5692 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPThreadLimitClause::children ( )

Definition at line 5709 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPThreadLimitClause::children ( ) const

Definition at line 5711 of file OpenMPClause.h.

◆ classof()

static bool OMPThreadLimitClause::classof ( const OMPClause T)

Definition at line 5722 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPThreadLimitClause::getLParenLoc ( ) const

Returns the location of '('.

Definition at line 5701 of file OpenMPClause.h.

Referenced by clang::ASTRecordWriter::writeOMPClause().

◆ getThreadLimit() [1/2]

Expr* OMPThreadLimitClause::getThreadLimit ( )

Return ThreadLimit number.

Definition at line 5704 of file OpenMPClause.h.

Referenced by OMPAffinityClause::CreateEmpty(), and clang::ASTRecordWriter::writeOMPClause().

◆ getThreadLimit() [2/2]

Expr* OMPThreadLimitClause::getThreadLimit ( ) const

Return ThreadLimit number.

Definition at line 5707 of file OpenMPClause.h.

◆ setLParenLoc()

void OMPThreadLimitClause::setLParenLoc ( SourceLocation  Loc)

Sets the location of '('.

Definition at line 5698 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range OMPThreadLimitClause::used_children ( )

Definition at line 5715 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPThreadLimitClause::used_children ( ) const

Definition at line 5718 of file OpenMPClause.h.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader

Definition at line 5659 of file OpenMPClause.h.

The documentation for this class was generated from the following file: