clang
9.0.0
|
This represents 'device' clause in the '#pragma omp ...' directive. More...
#include "clang/AST/OpenMPClause.h"
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 |
This represents 'device' clause in the '#pragma omp ...' directive.
In this example directive '#pragma omp target' has clause 'device' with single expression 'a'.
Definition at line 4022 of file OpenMPClause.h.
|
inline |
Build 'device' clause.
E | Expression associated with this clause. |
CaptureRegion | Innermost OpenMP region where expressions in this clause must be captured. |
StartLoc | Starting location of the clause. |
LParenLoc | Location of '('. |
EndLoc | Ending location of the clause. |
Definition at line 4045 of file OpenMPClause.h.
|
inline |
Build an empty clause.
Definition at line 4054 of file OpenMPClause.h.
|
inline |
Definition at line 4070 of file OpenMPClause.h.
|
inline |
Definition at line 4072 of file OpenMPClause.h.
Definition at line 4083 of file OpenMPClause.h.
|
inline |
Return device number.
Definition at line 4065 of file OpenMPClause.h.
Referenced by OMPIsDevicePtrClause::CreateEmpty(), clang::TreeTransform< Derived >::TransformOMPExecutableDirective(), and clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().
|
inline |
Return device number.
Definition at line 4068 of file OpenMPClause.h.
|
inline |
Returns the location of '('.
Definition at line 4062 of file OpenMPClause.h.
Referenced by clang::TreeTransform< Derived >::TransformOMPExecutableDirective(), and clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().
|
inline |
Sets the location of '('.
Definition at line 4059 of file OpenMPClause.h.
Referenced by clang::OMPClauseReader::VisitOMPClauseWithPostUpdate().
|
inline |
Definition at line 4076 of file OpenMPClause.h.
|
inline |
Definition at line 4079 of file OpenMPClause.h.
|
friend |
Definition at line 4023 of file OpenMPClause.h.