clang  10.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
OMPPriorityClause Class Reference

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

#include "clang/AST/OpenMPClause.h"

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

Public Member Functions

 OMPPriorityClause (Expr *Priority, Stmt *HelperPriority, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'priority' clause. More...
 
 OMPPriorityClause ()
 Build an empty clause. More...
 
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('. More...
 
SourceLocation getLParenLoc () const
 Returns the location of '('. More...
 
Expr * getPriority ()
 Return Priority number. More...
 
Expr * getPriority () const
 Return Priority 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)
 

Friends

class OMPClauseReader
 

Detailed Description

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

#pragma omp task priority(n)

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

Definition at line 5240 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPPriorityClause() [1/2]

OMPPriorityClause::OMPPriorityClause ( Expr *  Priority,
Stmt *  HelperPriority,
OpenMPDirectiveKind  CaptureRegion,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc 
)
inline

Build 'priority' clause.

Parameters
PriorityExpression associated with this clause.
HelperPriorityHelper priority for the construct.
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 5264 of file OpenMPClause.h.

◆ OMPPriorityClause() [2/2]

OMPPriorityClause::OMPPriorityClause ( )
inline

Build an empty clause.

Definition at line 5273 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPPriorityClause::children ( )
inline

Definition at line 5289 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPPriorityClause::children ( ) const
inline

Definition at line 5291 of file OpenMPClause.h.

References clang::OMPClause::used_children().

◆ classof()

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

Definition at line 5301 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPPriorityClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 5281 of file OpenMPClause.h.

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

◆ getPriority() [1/2]

Expr* OMPPriorityClause::getPriority ( )
inline

Return Priority number.

Definition at line 5284 of file OpenMPClause.h.

References Priority.

Referenced by OMPNontemporalClause::setPrivateRefs(), and clang::ASTRecordWriter::writeOMPClause().

◆ getPriority() [2/2]

Expr* OMPPriorityClause::getPriority ( ) const
inline

Return Priority number.

Definition at line 5287 of file OpenMPClause.h.

References Priority.

◆ setLParenLoc()

void OMPPriorityClause::setLParenLoc ( SourceLocation  Loc)
inline

Sets the location of '('.

Definition at line 5278 of file OpenMPClause.h.

◆ used_children() [1/2]

OMPClause::child_range OMPPriorityClause::used_children ( )

Definition at line 262 of file OpenMPClause.cpp.

References clang::C, getAddrOfExprAsWritten(), and Priority.

◆ used_children() [2/2]

const_child_range OMPPriorityClause::used_children ( ) const
inline

Definition at line 5296 of file OpenMPClause.h.

References clang::OMPClause::used_children().

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 5241 of file OpenMPClause.h.


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