clang  13.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::OMPDefaultmapClause Class Reference

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPDefaultmapClause:
Inheritance graph
[legend]
Collaboration diagram for clang::OMPDefaultmapClause:
Collaboration graph
[legend]

Public Member Functions

 OMPDefaultmapClause (SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation MLoc, SourceLocation KLoc, SourceLocation EndLoc, OpenMPDefaultmapClauseKind Kind, OpenMPDefaultmapClauseModifier M)
 Build 'defaultmap' clause with defaultmap kind Kind. More...
 
 OMPDefaultmapClause ()
 Build an empty clause. More...
 
OpenMPDefaultmapClauseKind getDefaultmapKind () const
 Get kind of the clause. More...
 
OpenMPDefaultmapClauseModifier getDefaultmapModifier () const
 Get the modifier of the clause. More...
 
SourceLocation getLParenLoc ()
 Get location of '('. More...
 
SourceLocation getDefaultmapKindLoc ()
 Get kind location. More...
 
SourceLocation getDefaultmapModifierLoc () const
 Get the modifier location. More...
 
child_range children ()
 
const_child_range children () const
 
child_range used_children ()
 
const_child_range used_children () const
 
- Public Member Functions inherited from clang::OMPClause
SourceLocation getBeginLoc () const
 Returns the starting location of the clause. More...
 
SourceLocation getEndLoc () const
 Returns the ending location of the clause. More...
 
void setLocStart (SourceLocation Loc)
 Sets the starting location of the clause. More...
 
void setLocEnd (SourceLocation Loc)
 Sets the ending location of the clause. More...
 
OpenMPClauseKind getClauseKind () const
 Returns kind of OpenMP clause (private, shared, reduction, etc.). More...
 
bool isImplicit () const
 
child_range children ()
 
const_child_range children () const
 
child_range used_children ()
 Get the iterator range for the expressions used in the clauses. More...
 
const_child_range used_children () const
 

Static Public Member Functions

static bool classof (const OMPClause *T)
 
- Static Public Member Functions inherited from clang::OMPClause
static bool classof (const OMPClause *)
 

Friends

class OMPClauseReader
 

Additional Inherited Members

- Public Types inherited from clang::OMPClause
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::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
 

Detailed Description

This represents 'defaultmap' clause in the '#pragma omp ...' directive.

#pragma omp target defaultmap(tofrom: scalar)

In this example directive '#pragma omp target' has 'defaultmap' clause of kind 'scalar' with modifier 'tofrom'.

Definition at line 6313 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPDefaultmapClause() [1/2]

clang::OMPDefaultmapClause::OMPDefaultmapClause ( SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  MLoc,
SourceLocation  KLoc,
SourceLocation  EndLoc,
OpenMPDefaultmapClauseKind  Kind,
OpenMPDefaultmapClauseModifier  M 
)
inline

Build 'defaultmap' clause with defaultmap kind Kind.

Parameters
StartLocStarting location of the clause.
LParenLocLocation of '('.
KLocStarting location of the argument.
EndLocEnding location of the clause.
KindDefaultmap kind.
MThe modifier applied to 'defaultmap' clause.
MLocLocation of the modifier

Definition at line 6368 of file OpenMPClause.h.

◆ OMPDefaultmapClause() [2/2]

clang::OMPDefaultmapClause::OMPDefaultmapClause ( )
inlineexplicit

Build an empty clause.

Definition at line 6377 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range clang::OMPDefaultmapClause::children ( )
inline

Definition at line 6400 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range clang::OMPDefaultmapClause::children ( ) const
inline

Definition at line 6404 of file OpenMPClause.h.

◆ classof()

static bool clang::OMPDefaultmapClause::classof ( const OMPClause T)
inlinestatic

Definition at line 6415 of file OpenMPClause.h.

References clang::OMPClause::getClauseKind().

◆ getDefaultmapKind()

OpenMPDefaultmapClauseKind clang::OMPDefaultmapClause::getDefaultmapKind ( ) const
inline

Get kind of the clause.

Definition at line 6382 of file OpenMPClause.h.

◆ getDefaultmapKindLoc()

SourceLocation clang::OMPDefaultmapClause::getDefaultmapKindLoc ( )
inline

Get kind location.

Definition at line 6393 of file OpenMPClause.h.

◆ getDefaultmapModifier()

OpenMPDefaultmapClauseModifier clang::OMPDefaultmapClause::getDefaultmapModifier ( ) const
inline

Get the modifier of the clause.

Definition at line 6385 of file OpenMPClause.h.

◆ getDefaultmapModifierLoc()

SourceLocation clang::OMPDefaultmapClause::getDefaultmapModifierLoc ( ) const
inline

Get the modifier location.

Definition at line 6396 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation clang::OMPDefaultmapClause::getLParenLoc ( )
inline

Get location of '('.

Definition at line 6390 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range clang::OMPDefaultmapClause::used_children ( )
inline

Definition at line 6408 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range clang::OMPDefaultmapClause::used_children ( ) const
inline

Definition at line 6411 of file OpenMPClause.h.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 6314 of file OpenMPClause.h.


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