clang: clang::OpenACCClauseWithVarList Class Reference (original) (raw)

Represents a clause with one or more 'var' objects, represented as an expr, as its arguments. More...

#include "[clang/AST/OpenACCClause.h](OpenACCClause%5F8h%5Fsource.html)"

Inheritance diagram for clang::OpenACCClauseWithVarList:

Public Member Functions
ArrayRef< Expr * > getVarList ()
ArrayRef< Expr * > getVarList () const
- Public Member Functions inherited from clang::OpenACCClauseWithExprs
child_range children ()
const_child_range children () 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 Public Member Functions inherited from clang::OpenACCClauseWithExprs
static bool classof (const OpenACCClause *C)
- 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 *)
Protected Member Functions
OpenACCClauseWithVarList (OpenACCClauseKind K, SourceLocation BeginLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
- Protected Member Functions inherited from clang::OpenACCClauseWithExprs
OpenACCClauseWithExprs (OpenACCClauseKind K, SourceLocation BeginLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
void setExprs (MutableArrayRef< Expr * > NewExprs)
Used only for initialization, the leaf class can initialize this to trailing storage.
llvm::ArrayRef< Expr * > getExprs () const
Gets the entire list of expressions, but leave it to the individual clauses to expose this how they'd like.
- 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)
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 >

Detailed Description

Represents a clause with one or more 'var' objects, represented as an expr, as its arguments.

Var-list is expected to be stored in trailing storage. For now, we're just storing the original expression in its entirety, unlike OMP which has to do a bunch of work to create a private.

Definition at line 750 of file OpenACCClause.h.

Constructor & Destructor Documentation

Member Function Documentation

classof()

Definition at line 31 of file OpenACCClause.cpp.

References clang::C, clang::OpenACCPrivateClause::classof(), clang::OpenACCFirstPrivateClause::classof(), clang::OpenACCDevicePtrClause::classof(), clang::OpenACCAttachClause::classof(), clang::OpenACCDetachClause::classof(), clang::OpenACCDeleteClause::classof(), clang::OpenACCUseDeviceClause::classof(), clang::OpenACCNoCreateClause::classof(), clang::OpenACCPresentClause::classof(), clang::OpenACCHostClause::classof(), clang::OpenACCDeviceClause::classof(), clang::OpenACCCopyClause::classof(), clang::OpenACCCopyInClause::classof(), clang::OpenACCCopyOutClause::classof(), clang::OpenACCCreateClause::classof(), and clang::OpenACCReductionClause::classof().

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

getVarList() [1/2]

ArrayRef< Expr * > clang::OpenACCClauseWithVarList::getVarList ( ) inline

getVarList() [2/2]

ArrayRef< Expr * > clang::OpenACCClauseWithVarList::getVarList ( ) const inline

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