class OMPCancellationPointDirective

Declaration

class OMPCancellationPointDirective : public OMPExecutableDirective { /* full declaration omitted */ };

Description

This represents '#pragma omp cancellation point' directive. In this example a cancellation point is created for innermost 'for' region.

Declared at: clang/include/clang/AST/StmtOpenMP.h:3541

Inherits from: OMPExecutableDirective

Member Variables

private clang::OpenMPDirectiveKind CancelRegion = llvm::omp::OMPD_unknown

Inherited from OMPExecutableDirective:

protected Data = nullptr

Inherited from Stmt:

protected

Method Overview

  • public static clang::OMPCancellationPointDirective * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation EndLoc, clang::OpenMPDirectiveKind CancelRegion)
  • public static clang::OMPCancellationPointDirective * CreateEmpty(const clang::ASTContext & C, clang::Stmt::EmptyShell)
  • private OMPCancellationPointDirective(clang::SourceLocation StartLoc, clang::SourceLocation EndLoc)
  • private OMPCancellationPointDirective()
  • public static bool classof(const clang::Stmt * T)
  • public clang::OpenMPDirectiveKind getCancelRegion() const
  • private void setCancelRegion(clang::OpenMPDirectiveKind CR)

Inherited from OMPExecutableDirective:

Inherited from Stmt:

Methods

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

Description

Creates directive.

Declared at: clang/include/clang/AST/StmtOpenMP.h:3574

Parameters

const clang::ASTContext& C
AST context.
clang::SourceLocation StartLoc
Starting location of the directive kind.
clang::SourceLocation EndLoc
Ending Location of the directive.
clang::OpenMPDirectiveKind CancelRegion

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

Description

Creates an empty directive.

Declared at: clang/include/clang/AST/StmtOpenMP.h:3581

Parameters

const clang::ASTContext& C
AST context.
clang::Stmt::EmptyShell

OMPCancellationPointDirective(
    clang::SourceLocation StartLoc,
    clang::SourceLocation EndLoc)

Description

Build directive with the given start and end location.

Declared at: clang/include/clang/AST/StmtOpenMP.h:3551

Parameters

clang::SourceLocation StartLoc
Starting location of the directive kind.
clang::SourceLocation EndLoc
Ending location of the directive. statements and child expressions.

OMPCancellationPointDirective()

Description

Build an empty directive.

Declared at: clang/include/clang/AST/StmtOpenMP.h:3557

static bool classof(const clang::Stmt* T)

Declared at: clang/include/clang/AST/StmtOpenMP.h:3587

Parameters

const clang::Stmt* T

clang::OpenMPDirectiveKind getCancelRegion() const

Description

Get cancellation region for the current cancellation point.

Declared at: clang/include/clang/AST/StmtOpenMP.h:3585

void setCancelRegion(
    clang::OpenMPDirectiveKind CR)

Description

Set cancel region for current cancellation point.

Declared at: clang/include/clang/AST/StmtOpenMP.h:3564

Parameters

clang::OpenMPDirectiveKind CR
Cancellation region.