clang  8.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
Collaboration diagram for OMPDeviceClause:
Collaboration graph

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 ()

Static Public Member Functions

static bool classof (const OMPClause *T)


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

Constructor & Destructor Documentation

◆ OMPDeviceClause() [1/2]

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

Build 'device' clause.

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

◆ OMPDeviceClause() [2/2]

OMPDeviceClause::OMPDeviceClause ( )

Build an empty clause.

Definition at line 3384 of file OpenMPClause.h.

Member Function Documentation

◆ children()

child_range OMPDeviceClause::children ( )

Definition at line 3400 of file OpenMPClause.h.

◆ classof()

static bool OMPDeviceClause::classof ( const OMPClause T)

Definition at line 3402 of file OpenMPClause.h.

◆ getDevice() [1/2]

Expr* OMPDeviceClause::getDevice ( )

◆ getDevice() [2/2]

Expr* OMPDeviceClause::getDevice ( ) const

Return device number.

Definition at line 3398 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPDeviceClause::getLParenLoc ( ) const

◆ setLParenLoc()

void OMPDeviceClause::setLParenLoc ( SourceLocation  Loc)

Sets the location of '('.

Definition at line 3389 of file OpenMPClause.h.

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

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader

Definition at line 3353 of file OpenMPClause.h.

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