clang  3.8.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
OMPMapClause Class Referencefinal

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

#include <OpenMPClause.h>

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

Public Member Functions

OpenMPMapClauseKind getMapType () const LLVM_READONLY
 Fetches mapping kind for the clause. More...
 
OpenMPMapClauseKind getMapTypeModifier () const LLVM_READONLY
 Fetches the map type modifier for the clause. More...
 
SourceLocation getMapLoc () const LLVM_READONLY
 Fetches location of clause mapping kind. More...
 
SourceLocation getColonLoc () const
 Get colon location. More...
 
child_range children ()
 

Static Public Member Functions

static OMPMapClauseCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< Expr * > VL, OpenMPMapClauseKind TypeModifier, OpenMPMapClauseKind Type, SourceLocation TypeLoc)
 Creates clause with a list of variables VL. More...
 
static OMPMapClauseCreateEmpty (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 'map' in the '#pragma omp ...' directives.

#pragma omp target map(a,b)

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

Definition at line 2734 of file OpenMPClause.h.

Member Function Documentation

child_range OMPMapClause::children ( )
inline

Definition at line 2836 of file OpenMPClause.h.

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

Definition at line 2832 of file OpenMPClause.h.

OMPMapClause * OMPMapClause::Create ( const ASTContext C,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc,
ArrayRef< Expr * >  VL,
OpenMPMapClauseKind  TypeModifier,
OpenMPMapClauseKind  Type,
SourceLocation  TypeLoc 
)
static

Creates clause with a list of variables VL.

Parameters
CAST context.
StartLocStarting location of the clause.
EndLocEnding location of the clause.
VLList of references to the variables.
TypeModifierMap type modifier.
TypeMap type.
TypeLocLocation of the map type.

Definition at line 398 of file OpenMPClause.cpp.

References clang::ASTContext::Allocate().

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

OMPMapClause * OMPMapClause::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 414 of file OpenMPClause.cpp.

References clang::ASTContext::Allocate().

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

SourceLocation OMPMapClause::getColonLoc ( ) const
inline

Get colon location.

Definition at line 2830 of file OpenMPClause.h.

References ColonLoc.

SourceLocation OMPMapClause::getMapLoc ( ) const
inline

Fetches location of clause mapping kind.

Definition at line 2827 of file OpenMPClause.h.

OpenMPMapClauseKind OMPMapClause::getMapType ( ) const
inline

Fetches mapping kind for the clause.

Definition at line 2819 of file OpenMPClause.h.

OpenMPMapClauseKind OMPMapClause::getMapTypeModifier ( ) const
inline

Fetches the map type modifier for the clause.

Definition at line 2822 of file OpenMPClause.h.

Friends And Related Function Documentation

friend class OMPClauseReader
friend

Definition at line 2738 of file OpenMPClause.h.


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