clang 22.0.0git
OpenACCLoopConstruct Class Referencefinal

This class represents a 'loop' construct. The 'loop' construct applies to a 'for' loop (or range-for loop), and is optionally associated with a Compute Construct. More...

#include "clang/AST/StmtOpenACC.h"

Inheritance diagram for OpenACCLoopConstruct:
[legend]

Public Member Functions

Stmt * getLoop ()
const Stmt * getLoop () const
bool isOrphanedLoopConstruct () const
 OpenACC 3.3 2.9: An orphaned loop construct is a loop construct that is not lexically enclosed within a compute construct. The parent compute construct of a loop construct is the nearest compute construct that lexically contains the loop construct.
OpenACCDirectiveKind getParentComputeConstructKind () const

Static Public Member Functions

static bool classof (const Stmt *T)
static OpenACCLoopConstructCreateEmpty (const ASTContext &C, unsigned NumClauses)
static OpenACCLoopConstructCreate (const ASTContext &C, OpenACCDirectiveKind ParentKind, SourceLocation BeginLoc, SourceLocation DirLoc, SourceLocation EndLoc, ArrayRef< const OpenACCClause * > Clauses, Stmt *Loop)

Friends

class ASTStmtWriter
class ASTStmtReader
class ASTContext
class OpenACCAssociatedStmtConstruct
class OpenACCCombinedConstruct
class OpenACCComputeConstruct

Detailed Description

This class represents a 'loop' construct. The 'loop' construct applies to a 'for' loop (or range-for loop), and is optionally associated with a Compute Construct.

Definition at line 187 of file StmtOpenACC.h.

Member Function Documentation

◆ classof()

bool OpenACCLoopConstruct::classof ( const Stmt * T)
inlinestatic

Definition at line 211 of file StmtOpenACC.h.

◆ Create()

OpenACCLoopConstruct * OpenACCLoopConstruct::Create ( const ASTContext & C,
OpenACCDirectiveKind ParentKind,
SourceLocation BeginLoc,
SourceLocation DirLoc,
SourceLocation EndLoc,
ArrayRef< const OpenACCClause * > Clauses,
Stmt * Loop )
static

Definition at line 75 of file StmtOpenACC.cpp.

References ASTContext, clang::C, and clang::Loop.

Referenced by clang::SemaOpenACC::ActOnEndStmtDirective().

◆ CreateEmpty()

OpenACCLoopConstruct * OpenACCLoopConstruct::CreateEmpty ( const ASTContext & C,
unsigned NumClauses )
static

Definition at line 66 of file StmtOpenACC.cpp.

References ASTContext, and clang::C.

◆ getLoop() [1/2]

Stmt * OpenACCLoopConstruct::getLoop ( )
inline

◆ getLoop() [2/2]

const Stmt * OpenACCLoopConstruct::getLoop ( ) const
inline

Definition at line 224 of file StmtOpenACC.h.

References getLoop().

◆ getParentComputeConstructKind()

OpenACCDirectiveKind OpenACCLoopConstruct::getParentComputeConstructKind ( ) const
inline

Definition at line 237 of file StmtOpenACC.h.

Referenced by clang::TextNodeDumper::VisitOpenACCLoopConstruct().

◆ isOrphanedLoopConstruct()

bool OpenACCLoopConstruct::isOrphanedLoopConstruct ( ) const
inline

OpenACC 3.3 2.9: An orphaned loop construct is a loop construct that is not lexically enclosed within a compute construct. The parent compute construct of a loop construct is the nearest compute construct that lexically contains the loop construct.

Definition at line 233 of file StmtOpenACC.h.

Referenced by clang::TextNodeDumper::VisitOpenACCLoopConstruct().

◆ ASTContext

friend class ASTContext
friend

Definition at line 198 of file StmtOpenACC.h.

References ASTContext.

Referenced by ASTContext, Create(), and CreateEmpty().

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 197 of file StmtOpenACC.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ ASTStmtWriter

friend class ASTStmtWriter
friend

Definition at line 196 of file StmtOpenACC.h.

References ASTStmtWriter.

Referenced by ASTStmtWriter.

◆ OpenACCAssociatedStmtConstruct

friend class OpenACCAssociatedStmtConstruct
friend

Definition at line 199 of file StmtOpenACC.h.

References OpenACCAssociatedStmtConstruct.

Referenced by OpenACCAssociatedStmtConstruct.

◆ OpenACCCombinedConstruct

friend class OpenACCCombinedConstruct
friend

Definition at line 200 of file StmtOpenACC.h.

References OpenACCCombinedConstruct.

Referenced by OpenACCCombinedConstruct.

◆ OpenACCComputeConstruct

friend class OpenACCComputeConstruct
friend

Definition at line 201 of file StmtOpenACC.h.

References OpenACCComputeConstruct.

Referenced by OpenACCComputeConstruct.


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