This represents 'device' clause in the '#pragma omp ...' directive.
More...
#include "clang/AST/OpenMPClause.h"
|
| | OMPDeviceClause (OpenMPDeviceClauseModifier Modifier, Expr *E, Stmt *HelperE, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ModifierLoc, SourceLocation EndLoc) |
| | Build 'device' clause.
|
| | OMPDeviceClause () |
| | Build an empty clause.
|
| void | setLParenLoc (SourceLocation Loc) |
| | Sets the location of '('.
|
| SourceLocation | getLParenLoc () const |
| | Returns the location of '('.
|
| Expr * | getDevice () |
| | Return device number.
|
| Expr * | getDevice () const |
| | Return device number.
|
| OpenMPDeviceClauseModifier | getModifier () const |
| | Gets modifier.
|
| SourceLocation | getModifierLoc () const |
| | Gets modifier location.
|
| child_range | children () |
| const_child_range | children () const |
| child_range | used_children () |
| const_child_range | used_children () const |
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 5726 of file OpenMPClause.h.
◆ OMPDeviceClause() [1/2]
| OMPDeviceClause::OMPDeviceClause |
( |
OpenMPDeviceClauseModifier | Modifier, |
|
|
Expr * | E, |
|
|
Stmt * | HelperE, |
|
|
OpenMPDirectiveKind | CaptureRegion, |
|
|
SourceLocation | StartLoc, |
|
|
SourceLocation | LParenLoc, |
|
|
SourceLocation | ModifierLoc, |
|
|
SourceLocation | EndLoc ) |
|
inline |
Build 'device' clause.
- Parameters
-
| Modifier | Clause modifier. |
| E | Expression associated with this clause. |
| CaptureRegion | Innermost OpenMP region where expressions in this clause must be captured. |
| StartLoc | Starting location of the clause. |
| ModifierLoc | Modifier location. |
| LParenLoc | Location of '('. |
| EndLoc | Ending location of the clause. |
Definition at line 5763 of file OpenMPClause.h.
◆ OMPDeviceClause() [2/2]
| OMPDeviceClause::OMPDeviceClause |
( |
| ) |
|
|
inline |
◆ children() [1/2]
| child_range OMPDeviceClause::children |
( |
| ) |
|
|
inline |
◆ children() [2/2]
| const_child_range OMPDeviceClause::children |
( |
| ) |
const |
|
inline |
◆ classof()
◆ getDevice() [1/2]
| Expr * OMPDeviceClause::getDevice |
( |
| ) |
|
|
inline |
◆ getDevice() [2/2]
| Expr * OMPDeviceClause::getDevice |
( |
| ) |
const |
|
inline |
◆ getLParenLoc()
| SourceLocation OMPDeviceClause::getLParenLoc |
( |
| ) |
const |
|
inline |
◆ getModifier()
| OpenMPDeviceClauseModifier OMPDeviceClause::getModifier |
( |
| ) |
const |
|
inline |
◆ getModifierLoc()
| SourceLocation OMPDeviceClause::getModifierLoc |
( |
| ) |
const |
|
inline |
◆ setLParenLoc()
| void OMPDeviceClause::setLParenLoc |
( |
SourceLocation | Loc | ) |
|
|
inline |
◆ used_children() [1/2]
| child_range OMPDeviceClause::used_children |
( |
| ) |
|
|
inline |
◆ used_children() [2/2]
| const_child_range OMPDeviceClause::used_children |
( |
| ) |
const |
|
inline |
◆ OMPClauseReader
| friend class OMPClauseReader |
|
friend |
The documentation for this class was generated from the following file: