clang 23.0.0git
clang::OMPClauseWithPreInit Class Reference

Class that handles pre-initialization statement for some clauses, like 'schedule', 'firstprivate' etc. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPClauseWithPreInit:
[legend]

Public Member Functions

const StmtgetPreInitStmt () const
 Get pre-initialization statement for the clause.
StmtgetPreInitStmt ()
 Get pre-initialization statement for the clause.
OpenMPDirectiveKind getCaptureRegion () const
 Get capture region for the stmt in the clause.

Static Public Member Functions

static OMPClauseWithPreInitget (OMPClause *C)
static const OMPClauseWithPreInitget (const OMPClause *C)

Protected Member Functions

 OMPClauseWithPreInit (const OMPClause *This)
void setPreInitStmt (Stmt *S, OpenMPDirectiveKind ThisRegion=llvm::omp::OMPD_unknown)
 Set pre-initialization statement for the clause.

Friends

class OMPClauseReader

Detailed Description

Class that handles pre-initialization statement for some clauses, like 'schedule', 'firstprivate' etc.

Definition at line 193 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPClauseWithPreInit()

Member Function Documentation

◆ get() [1/2]

const OMPClauseWithPreInit * OMPClauseWithPreInit::get ( const OMPClause * C)
static

Definition at line 64 of file OpenMPClause.cpp.

References clang::C, and OMPClauseWithPreInit().

◆ get() [2/2]

OMPClauseWithPreInit * OMPClauseWithPreInit::get ( OMPClause * C)
static

◆ getCaptureRegion()

OpenMPDirectiveKind clang::OMPClauseWithPreInit::getCaptureRegion ( ) const
inline

Get capture region for the stmt in the clause.

Definition at line 223 of file OpenMPClause.h.

◆ getPreInitStmt() [1/2]

Stmt * clang::OMPClauseWithPreInit::getPreInitStmt ( )
inline

Get pre-initialization statement for the clause.

Definition at line 220 of file OpenMPClause.h.

◆ getPreInitStmt() [2/2]

const Stmt * clang::OMPClauseWithPreInit::getPreInitStmt ( ) const
inline

Get pre-initialization statement for the clause.

Definition at line 217 of file OpenMPClause.h.

Referenced by getNumThreads(), clang::OMPFinalClause::used_children(), and clang::OMPIfClause::used_children().

◆ setPreInitStmt()

void clang::OMPClauseWithPreInit::setPreInitStmt ( Stmt * S,
OpenMPDirectiveKind ThisRegion = llvm::omp::OMPD_unknown )
inlineprotected

Set pre-initialization statement for the clause.

Definition at line 209 of file OpenMPClause.h.

Referenced by clang::OMPFinalClause::OMPFinalClause(), clang::OMPIfClause::OMPIfClause(), and clang::OMPNumThreadsClause::OMPNumThreadsClause().

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 194 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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