clang  20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::OpenACCDeviceTypeClause Class Referencefinal

A 'device_type' or 'dtype' clause, takes a list of either an 'asterisk' or an identifier. More...

#include "clang/AST/OpenACCClause.h"

Inheritance diagram for clang::OpenACCDeviceTypeClause:
Inheritance graph
[legend]

Public Member Functions

bool hasAsterisk () const
 
ArrayRef< DeviceTypeArgumentgetArchitectures () const
 
- Public Member Functions inherited from clang::OpenACCClauseWithParams
SourceLocation getLParenLoc () const
 
child_range children ()
 
const_child_range children () const
 
- Public Member Functions inherited from clang::OpenACCClause
OpenACCClauseKind getClauseKind () const
 
SourceLocation getBeginLoc () const
 
SourceLocation getEndLoc () const
 
child_range children ()
 
const_child_range children () const
 
virtual ~OpenACCClause ()=default
 

Static Public Member Functions

static bool classof (const OpenACCClause *C)
 
static OpenACCDeviceTypeClauseCreate (const ASTContext &C, OpenACCClauseKind K, SourceLocation BeginLoc, SourceLocation LParenLoc, ArrayRef< DeviceTypeArgument > Archs, SourceLocation EndLoc)
 
- Static Public Member Functions inherited from clang::OpenACCClauseWithParams
static bool classof (const OpenACCClause *C)
 
- Static Public Member Functions inherited from clang::OpenACCClause
static bool classof (const OpenACCClause *)
 

Additional Inherited Members

- Public Types inherited from clang::OpenACCClause
using child_iterator = StmtIterator
 
using const_child_iterator = ConstStmtIterator
 
using child_range = llvm::iterator_range< child_iterator >
 
using const_child_range = llvm::iterator_range< const_child_iterator >
 
- Protected Member Functions inherited from clang::OpenACCClauseWithParams
 OpenACCClauseWithParams (OpenACCClauseKind K, SourceLocation BeginLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 
- Protected Member Functions inherited from clang::OpenACCClause
 OpenACCClause (OpenACCClauseKind K, SourceLocation BeginLoc, SourceLocation EndLoc)
 

Detailed Description

A 'device_type' or 'dtype' clause, takes a list of either an 'asterisk' or an identifier.

The 'asterisk' means 'the rest'.

Definition at line 226 of file OpenACCClause.h.

Member Function Documentation

◆ classof()

static bool clang::OpenACCDeviceTypeClause::classof ( const OpenACCClause C)
inlinestatic

Definition at line 260 of file OpenACCClause.h.

References clang::DeviceType, and clang::DType.

Referenced by clang::OpenACCClauseWithParams::classof().

◆ Create()

OpenACCDeviceTypeClause * OpenACCDeviceTypeClause::Create ( const ASTContext C,
OpenACCClauseKind  K,
SourceLocation  BeginLoc,
SourceLocation  LParenLoc,
ArrayRef< DeviceTypeArgument Archs,
SourceLocation  EndLoc 
)
static

Definition at line 302 of file OpenACCClause.cpp.

Referenced by clang::ASTRecordReader::readOpenACCClause().

◆ getArchitectures()

ArrayRef<DeviceTypeArgument> clang::OpenACCDeviceTypeClause::getArchitectures ( ) const
inline

Definition at line 269 of file OpenACCClause.h.

Referenced by hasAsterisk().

◆ hasAsterisk()

bool clang::OpenACCDeviceTypeClause::hasAsterisk ( ) const
inline

Definition at line 264 of file OpenACCClause.h.

References getArchitectures().


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