clang 24.0.0git
OMPDeviceClause Class Reference

This represents 'device' clause in the '#pragma omp ...' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPDeviceClause:
[legend]

Public Member Functions

 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

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 5975 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 )
inline

Build 'device' clause.

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

◆ OMPDeviceClause() [2/2]

OMPDeviceClause::OMPDeviceClause ( )
inline

Build an empty clause.

Definition at line 6023 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPDeviceClause::children ( )
inline

Definition at line 6045 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPDeviceClause::children ( ) const
inline

Definition at line 6047 of file OpenMPClause.h.

◆ classof()

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

Definition at line 6058 of file OpenMPClause.h.

◆ getDevice() [1/2]

Expr * OMPDeviceClause::getDevice ( )
inline

Return device number.

Definition at line 6034 of file OpenMPClause.h.

◆ getDevice() [2/2]

Expr * OMPDeviceClause::getDevice ( ) const
inline

Return device number.

Definition at line 6037 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPDeviceClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 6031 of file OpenMPClause.h.

◆ getModifier()

OpenMPDeviceClauseModifier OMPDeviceClause::getModifier ( ) const
inline

Gets modifier.

Definition at line 6040 of file OpenMPClause.h.

◆ getModifierLoc()

SourceLocation OMPDeviceClause::getModifierLoc ( ) const
inline

Gets modifier location.

Definition at line 6043 of file OpenMPClause.h.

◆ setLParenLoc()

void OMPDeviceClause::setLParenLoc ( SourceLocation Loc)
inline

Sets the location of '('.

Definition at line 6028 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range OMPDeviceClause::used_children ( )
inline

Definition at line 6051 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPDeviceClause::used_children ( ) const
inline

Definition at line 6054 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 5976 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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