clang  3.9.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
OMPIsDevicePtrClause Class Referencefinal

This represents clause 'is_device_ptr' in the '#pragma omp ...' directives. More...

#include <OpenMPClause.h>

Inheritance diagram for OMPIsDevicePtrClause:
[legend]
Collaboration diagram for OMPIsDevicePtrClause:
[legend]

Public Member Functions

child_range children ()
 

Static Public Member Functions

static OMPIsDevicePtrClauseCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< Expr * > VL)
 Creates clause with a list of variables VL. More...
 
static OMPIsDevicePtrClauseCreateEmpty (const ASTContext &C, unsigned N)
 Creates an empty clause with the place for N variables. More...
 
static bool classof (const OMPClause *T)
 

Friends

class OMPClauseReader
 

Detailed Description

This represents clause 'is_device_ptr' in the '#pragma omp ...' directives.

#pragma omp target is_device_ptr(a,b)

In this example directive '#pragma omp target' has clause 'is_device_ptr' with the variables 'a' and 'b'.

Definition at line 4295 of file OpenMPClause.h.

Member Function Documentation

child_range OMPIsDevicePtrClause::children ( )
inline

Definition at line 4341 of file OpenMPClause.h.

static bool OMPIsDevicePtrClause::classof ( const OMPClause T)
inlinestatic

Definition at line 4346 of file OpenMPClause.h.

OMPIsDevicePtrClause * OMPIsDevicePtrClause::Create ( const ASTContext C,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc,
ArrayRef< Expr * >  VL 
)
static

Creates clause with a list of variables VL.

Parameters
CAST context.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.
VLList of references to the variables.

Definition at line 753 of file OpenMPClause.cpp.

References clang::ASTContext::Allocate().

Referenced by clang::Sema::ActOnOpenMPIsDevicePtrClause().

OMPIsDevicePtrClause * OMPIsDevicePtrClause::CreateEmpty ( const ASTContext C,
unsigned  N 
)
static

Creates an empty clause with the place for N variables.

Parameters
CAST context.
NThe number of variables.

Definition at line 765 of file OpenMPClause.cpp.

References clang::ASTContext::Allocate().

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

Friends And Related Function Documentation

friend class OMPClauseReader
friend

Definition at line 4300 of file OpenMPClause.h.


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