clang  6.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, 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 ()
 

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

Constructor & Destructor Documentation

◆ OMPDeviceClause() [1/2]

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

Build 'device' clause.

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

Definition at line 3164 of file OpenMPClause.h.

◆ OMPDeviceClause() [2/2]

OMPDeviceClause::OMPDeviceClause ( )
inline

Build an empty clause.

Definition at line 3173 of file OpenMPClause.h.

Member Function Documentation

◆ children()

child_range OMPDeviceClause::children ( )
inline

Definition at line 3190 of file OpenMPClause.h.

◆ classof()

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

Definition at line 3186 of file OpenMPClause.h.

◆ getDevice() [1/2]

Expr* OMPDeviceClause::getDevice ( )
inline

Return device number.

Definition at line 3182 of file OpenMPClause.h.

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

◆ getDevice() [2/2]

Expr* OMPDeviceClause::getDevice ( ) const
inline

Return device number.

Definition at line 3184 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPDeviceClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 3180 of file OpenMPClause.h.

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

◆ setLParenLoc()

void OMPDeviceClause::setLParenLoc ( SourceLocation  Loc)
inline

Sets the location of '('.

Definition at line 3178 of file OpenMPClause.h.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 3145 of file OpenMPClause.h.


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