clang  3.9.0
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 <OpenMPClause.h>

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

Public Member Functions

 OMPDeviceClause (Expr *E, 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 2677 of file OpenMPClause.h.

Constructor & Destructor Documentation

OMPDeviceClause::OMPDeviceClause ( Expr *  E,
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 2697 of file OpenMPClause.h.

OMPDeviceClause::OMPDeviceClause ( )
inline

Build an empty clause.

Definition at line 2704 of file OpenMPClause.h.

Member Function Documentation

child_range OMPDeviceClause::children ( )
inline

Definition at line 2720 of file OpenMPClause.h.

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

Definition at line 2716 of file OpenMPClause.h.

Expr* OMPDeviceClause::getDevice ( )
inline

Return device number.

Definition at line 2712 of file OpenMPClause.h.

Expr* OMPDeviceClause::getDevice ( ) const
inline

Return device number.

Definition at line 2714 of file OpenMPClause.h.

SourceLocation OMPDeviceClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 2710 of file OpenMPClause.h.

void OMPDeviceClause::setLParenLoc ( SourceLocation  Loc)
inline

Sets the location of '('.

Definition at line 2708 of file OpenMPClause.h.

Friends And Related Function Documentation

friend class OMPClauseReader
friend

Definition at line 2678 of file OpenMPClause.h.


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