clang  3.9.0
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 <OpenMPClause.h>

Inheritance diagram for OMPThreadLimitClause:
[legend]
Collaboration diagram for OMPThreadLimitClause:
[legend]

Public Member Functions

 OMPThreadLimitClause (Expr *E, 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 ()
 

Static Public Member Functions

static bool classof (const OMPClause *T)
 

Friends

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 3514 of file OpenMPClause.h.

Constructor & Destructor Documentation

OMPThreadLimitClause::OMPThreadLimitClause ( Expr *  E,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc 
)
inline

Build 'thread_limit' clause.

Parameters
EExpression associated with this clause.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.

Definition at line 3534 of file OpenMPClause.h.

OMPThreadLimitClause::OMPThreadLimitClause ( )
inline

Build an empty clause.

Definition at line 3541 of file OpenMPClause.h.

Member Function Documentation

child_range OMPThreadLimitClause::children ( )
inline

Definition at line 3557 of file OpenMPClause.h.

static bool OMPThreadLimitClause::classof ( const OMPClause T)
inlinestatic

Definition at line 3553 of file OpenMPClause.h.

SourceLocation OMPThreadLimitClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 3547 of file OpenMPClause.h.

Expr* OMPThreadLimitClause::getThreadLimit ( )
inline

Return ThreadLimit number.

Definition at line 3549 of file OpenMPClause.h.

Expr* OMPThreadLimitClause::getThreadLimit ( ) const
inline

Return ThreadLimit number.

Definition at line 3551 of file OpenMPClause.h.

void OMPThreadLimitClause::setLParenLoc ( SourceLocation  Loc)
inline

Sets the location of '('.

Definition at line 3545 of file OpenMPClause.h.

Friends And Related Function Documentation

friend class OMPClauseReader
friend

Definition at line 3515 of file OpenMPClause.h.


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