clang 23.0.0git
OMPInitClause Class Referencefinal

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPInitClause:
[legend]

Public Types

using prefs_iterator = MutableArrayRef<Expr *>::iterator
using const_prefs_iterator = ArrayRef<const Expr *>::iterator
using prefs_range = llvm::iterator_range<prefs_iterator>
using const_prefs_range = llvm::iterator_range<const_prefs_iterator>

Public Member Functions

SourceLocation getVarLoc () const
 Returns the location of the interop variable.
Expr * getInteropVar ()
 Returns the interop variable.
const Expr * getInteropVar () const
bool getIsTarget () const
 Returns true is interop-type 'target' is used.
bool getIsTargetSync () const
 Returns true is interop-type 'targetsync' is used.
child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const
prefs_range prefs ()
const_prefs_range prefs () const

Static Public Member Functions

static OMPInitClauseCreate (const ASTContext &C, Expr *InteropVar, OMPInteropInfo &InteropInfo, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation VarLoc, SourceLocation EndLoc)
 Creates a fully specified clause.
static OMPInitClauseCreateEmpty (const ASTContext &C, unsigned N)
 Creates an empty clause with N expressions.
static bool classof (const OMPClause *T)

Friends

class OMPClauseReader

Detailed Description

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

#pragma omp interop init(target:obj)

Definition at line 8746 of file OpenMPClause.h.

Member Typedef Documentation

◆ const_prefs_iterator

using OMPInitClause::const_prefs_iterator = ArrayRef<const Expr *>::iterator

Definition at line 8842 of file OpenMPClause.h.

◆ const_prefs_range

Definition at line 8844 of file OpenMPClause.h.

◆ prefs_iterator

using OMPInitClause::prefs_iterator = MutableArrayRef<Expr *>::iterator

Definition at line 8841 of file OpenMPClause.h.

◆ prefs_range

using OMPInitClause::prefs_range = llvm::iterator_range<prefs_iterator>

Definition at line 8843 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPInitClause::children ( )
inline

Definition at line 8825 of file OpenMPClause.h.

Referenced by children().

◆ children() [2/2]

const_child_range OMPInitClause::children ( ) const
inline

Definition at line 8830 of file OpenMPClause.h.

References children().

◆ classof()

bool OMPInitClause::classof ( const OMPClause * T)
inlinestatic

Definition at line 8855 of file OpenMPClause.h.

◆ Create()

OMPInitClause * OMPInitClause::Create ( const ASTContext & C,
Expr * InteropVar,
OMPInteropInfo & InteropInfo,
SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation VarLoc,
SourceLocation EndLoc )
static

Creates a fully specified clause.

Parameters
CAST context.
InteropVarThe interop variable.
InteropInfoThe interop-type and prefer_type list.
StartLocStarting location of the clause.
LParenLocLocation of '('.
VarLocLocation of the interop variable.
EndLocEnding location of the clause.

Definition at line 1778 of file OpenMPClause.cpp.

References clang::C, clang::OMPInteropInfo::IsTarget, clang::OMPInteropInfo::IsTargetSync, and clang::OMPInteropInfo::PreferTypes.

Referenced by clang::SemaOpenMP::ActOnOpenMPInitClause().

◆ CreateEmpty()

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

Creates an empty clause with N expressions.

Parameters
CAST context.
NNumber of expression items.

Definition at line 1795 of file OpenMPClause.cpp.

References clang::C.

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

◆ getInteropVar() [1/2]

Expr * OMPInitClause::getInteropVar ( )
inline

Returns the interop variable.

Definition at line 8816 of file OpenMPClause.h.

◆ getInteropVar() [2/2]

const Expr * OMPInitClause::getInteropVar ( ) const
inline

Definition at line 8817 of file OpenMPClause.h.

◆ getIsTarget()

bool OMPInitClause::getIsTarget ( ) const
inline

Returns true is interop-type 'target' is used.

Definition at line 8820 of file OpenMPClause.h.

◆ getIsTargetSync()

bool OMPInitClause::getIsTargetSync ( ) const
inline

Returns true is interop-type 'targetsync' is used.

Definition at line 8823 of file OpenMPClause.h.

◆ getVarLoc()

SourceLocation OMPInitClause::getVarLoc ( ) const
inline

Returns the location of the interop variable.

Definition at line 8813 of file OpenMPClause.h.

◆ prefs() [1/2]

prefs_range OMPInitClause::prefs ( )
inline

Definition at line 8846 of file OpenMPClause.h.

Referenced by prefs().

◆ prefs() [2/2]

const_prefs_range OMPInitClause::prefs ( ) const
inline

Definition at line 8851 of file OpenMPClause.h.

References prefs().

◆ used_children() [1/2]

child_range OMPInitClause::used_children ( )
inline

Definition at line 8834 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPInitClause::used_children ( ) const
inline

Definition at line 8837 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 8749 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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