clang 20.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::OMPBindClause Class Referencefinal

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPBindClause:
Inheritance graph
[legend]

Public Member Functions

SourceLocation getLParenLoc () const
 Returns the location of '('.
 
OpenMPBindClauseKind getBindKind () const
 Returns kind of the clause.
 
SourceLocation getBindKindLoc () const
 Returns location of clause kind.
 
- Public Member Functions inherited from clang::OMPNoChildClause< llvm::omp::OMPC_bind >
 OMPNoChildClause (SourceLocation StartLoc, SourceLocation EndLoc)
 Build 'ClauseKind' clause.
 
 OMPNoChildClause ()
 Build an empty clause.
 
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.
 
SourceLocation getEndLoc () const
 Returns the ending location of the clause.
 
void setLocStart (SourceLocation Loc)
 Sets the starting location of the clause.
 
void setLocEnd (SourceLocation Loc)
 Sets the ending location of the clause.
 
OpenMPClauseKind getClauseKind () const
 Returns kind of OpenMP clause (private, shared, reduction, etc.).
 
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.
 
const_child_range used_children () const
 

Static Public Member Functions

static OMPBindClauseCreate (const ASTContext &C, OpenMPBindClauseKind K, SourceLocation KLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'bind' clause with kind K ('teams', 'parallel', or 'thread').
 
static OMPBindClauseCreateEmpty (const ASTContext &C)
 Build an empty 'bind' clause.
 
- Static Public Member Functions inherited from clang::OMPNoChildClause< llvm::omp::OMPC_bind >
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 'bind' clause in the '#pragma omp ...' directives.

#pragma omp loop bind(parallel)

Definition at line 9050 of file OpenMPClause.h.

Member Function Documentation

◆ Create()

OMPBindClause * OMPBindClause::Create ( const ASTContext C,
OpenMPBindClauseKind  K,
SourceLocation  KLoc,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc 
)
static

Build 'bind' clause with kind K ('teams', 'parallel', or 'thread').

Parameters
CAST context
KBinding kind of the clause ('teams', 'parallel' or 'thread').
KLocStarting location of the binding kind.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.

Definition at line 1668 of file OpenMPClause.cpp.

References clang::C.

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

◆ CreateEmpty()

OMPBindClause * OMPBindClause::CreateEmpty ( const ASTContext C)
static

Build an empty 'bind' clause.

Parameters
CAST context

Definition at line 1674 of file OpenMPClause.cpp.

References clang::C.

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

◆ getBindKind()

OpenMPBindClauseKind clang::OMPBindClause::getBindKind ( ) const
inline

Returns kind of the clause.

Definition at line 9109 of file OpenMPClause.h.

References Kind.

◆ getBindKindLoc()

SourceLocation clang::OMPBindClause::getBindKindLoc ( ) const
inline

Returns location of clause kind.

Definition at line 9112 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation clang::OMPBindClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 9106 of file OpenMPClause.h.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 9051 of file OpenMPClause.h.


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