clang 22.0.0git
OMPCancellationPointDirective Class Reference

This represents '#pragma omp cancellation point' directive. More...

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPCancellationPointDirective:
[legend]

Public Member Functions

OpenMPDirectiveKind getCancelRegion () const
 Get cancellation region for the current cancellation point.

Static Public Member Functions

static OMPCancellationPointDirectiveCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, OpenMPDirectiveKind CancelRegion)
 Creates directive.
static OMPCancellationPointDirectiveCreateEmpty (const ASTContext &C, EmptyShell)
 Creates an empty directive.
static bool classof (const Stmt *T)

Friends

class ASTStmtReader
class OMPExecutableDirective

Detailed Description

This represents '#pragma omp cancellation point' directive.

#pragma omp cancellation point for

In this example a cancellation point is created for innermost 'for' region.

Definition at line 3597 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

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

Definition at line 3643 of file StmtOpenMP.h.

◆ Create()

OMPCancellationPointDirective * OMPCancellationPointDirective::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation EndLoc,
OpenMPDirectiveKind CancelRegion )
static

Creates directive.

Parameters
CAST context.
StartLocStarting location of the directive kind.
EndLocEnding Location of the directive.

Definition at line 900 of file StmtOpenMP.cpp.

References clang::C.

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

◆ CreateEmpty()

OMPCancellationPointDirective * OMPCancellationPointDirective::CreateEmpty ( const ASTContext & C,
EmptyShell  )
static

Creates an empty directive.

Parameters
CAST context.

Definition at line 909 of file StmtOpenMP.cpp.

References clang::C.

◆ getCancelRegion()

OpenMPDirectiveKind OMPCancellationPointDirective::getCancelRegion ( ) const
inline

Get cancellation region for the current cancellation point.

Definition at line 3641 of file StmtOpenMP.h.

Referenced by clang::CodeGen::CodeGenFunction::EmitOMPCancellationPointDirective().

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 3598 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 3599 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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