clang  11.0.0git
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 (OpenMPDeviceClauseModifier Modifier, Expr *E, Stmt *HelperE, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ModifierLoc, 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...
OpenMPDeviceClauseModifier getModifier () const
 Gets modifier. More...
SourceLocation getModifierLoc () const
 Gets modifier location. 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)


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

Constructor & Destructor Documentation

◆ OMPDeviceClause() [1/2]

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

Build 'device' clause.

ModifierClause modifier.
EExpression associated with this clause.
CaptureRegionInnermost OpenMP region where expressions in this clause must be captured.
StartLocStarting location of the clause.
ModifierLocModifier location.
LParenLocLocation of '('.
EndLocEnding location of the clause.

Definition at line 4599 of file OpenMPClause.h.

◆ OMPDeviceClause() [2/2]

OMPDeviceClause::OMPDeviceClause ( )

Build an empty clause.

Definition at line 4610 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPDeviceClause::children ( )

Definition at line 4632 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPDeviceClause::children ( ) const

Definition at line 4634 of file OpenMPClause.h.

◆ classof()

static bool OMPDeviceClause::classof ( const OMPClause T)

Definition at line 4645 of file OpenMPClause.h.

◆ getDevice() [1/2]

Expr* OMPDeviceClause::getDevice ( )

◆ getDevice() [2/2]

Expr* OMPDeviceClause::getDevice ( ) const

Return device number.

Definition at line 4624 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPDeviceClause::getLParenLoc ( ) const

◆ getModifier()

OpenMPDeviceClauseModifier OMPDeviceClause::getModifier ( ) const

◆ getModifierLoc()

SourceLocation OMPDeviceClause::getModifierLoc ( ) const

Gets modifier location.

Definition at line 4630 of file OpenMPClause.h.

References ModifierLoc.

Referenced by clang::TreeTransform< Derived >::TransformOMPExecutableDirective(), and clang::ASTRecordWriter::writeOMPClause().

◆ setLParenLoc()

void OMPDeviceClause::setLParenLoc ( SourceLocation  Loc)

Sets the location of '('.

Definition at line 4615 of file OpenMPClause.h.

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

◆ used_children() [1/2]

child_range OMPDeviceClause::used_children ( )

Definition at line 4638 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPDeviceClause::used_children ( ) const

Definition at line 4641 of file OpenMPClause.h.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader

Definition at line 4563 of file OpenMPClause.h.

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