clang  10.0.0svn
Public Member Functions | Static Public Member Functions | Friends | List of all members
OMPDeviceClause Class Reference

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPDeviceClause:
Inheritance graph
[legend]
Collaboration diagram for OMPDeviceClause:
Collaboration graph
[legend]

Public Member Functions

 OMPDeviceClause (Expr *E, Stmt *HelperE, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'device' clause. More...
 
 OMPDeviceClause ()
 Build an empty clause. More...
 
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('. More...
 
SourceLocation getLParenLoc () const
 Returns the location of '('. More...
 
Expr * getDevice ()
 Return device number. More...
 
Expr * getDevice () const
 Return device 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 'device' clause in the '#pragma omp ...' directive.

#pragma omp target device(a)

In this example directive '#pragma omp target' has clause 'device' with single expression 'a'.

Definition at line 4058 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPDeviceClause() [1/2]

OMPDeviceClause::OMPDeviceClause ( Expr *  E,
Stmt *  HelperE,
OpenMPDirectiveKind  CaptureRegion,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc 
)
inline

Build 'device' clause.

Parameters
EExpression 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 4081 of file OpenMPClause.h.

◆ OMPDeviceClause() [2/2]

OMPDeviceClause::OMPDeviceClause ( )
inline

Build an empty clause.

Definition at line 4090 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPDeviceClause::children ( )
inline

Definition at line 4106 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPDeviceClause::children ( ) const
inline

Definition at line 4108 of file OpenMPClause.h.

◆ classof()

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

Definition at line 4119 of file OpenMPClause.h.

◆ getDevice() [1/2]

Expr* OMPDeviceClause::getDevice ( )
inline

◆ getDevice() [2/2]

Expr* OMPDeviceClause::getDevice ( ) const
inline

Return device number.

Definition at line 4104 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPDeviceClause::getLParenLoc ( ) const
inline

◆ setLParenLoc()

void OMPDeviceClause::setLParenLoc ( SourceLocation  Loc)
inline

Sets the location of '('.

Definition at line 4095 of file OpenMPClause.h.

Referenced by clang::OMPClauseReader::VisitOMPClauseWithPostUpdate().

◆ used_children() [1/2]

child_range OMPDeviceClause::used_children ( )
inline

Definition at line 4112 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPDeviceClause::used_children ( ) const
inline

Definition at line 4115 of file OpenMPClause.h.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 4059 of file OpenMPClause.h.


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