class CodeGenFunction::OpenMPCancelExitStack

Declaration

class CodeGenFunction::OpenMPCancelExitStack { /* full declaration omitted */ };

Description

Handles cancellation exit points in OpenMP-related constructs.

Declared at: clang/lib/CodeGen/CodeGenFunction.h:1438

Member Variables

private SmallVector<clang::CodeGen::CodeGenFunction:: OpenMPCancelExitStack::CancelExit, 8> Stack

Method Overview

  • public OpenMPCancelExitStack()
  • public void emitExit(clang::CodeGen::CodeGenFunction & CGF, clang::OpenMPDirectiveKind Kind, const llvm::function_ref<void (CodeGenFunction &)> CodeGen)
  • public void enter(clang::CodeGen::CodeGenFunction & CGF, clang::OpenMPDirectiveKind Kind, bool HasCancel)
  • public void exit(clang::CodeGen::CodeGenFunction & CGF)
  • public clang::CodeGen::CodeGenFunction::JumpDest getExitBlock() const
  • public ~OpenMPCancelExitStack()

Methods

OpenMPCancelExitStack()

Declared at: clang/lib/CodeGen/CodeGenFunction.h:1457

void emitExit(
    clang::CodeGen::CodeGenFunction& CGF,
    clang::OpenMPDirectiveKind Kind,
    const llvm::function_ref<
        void(CodeGenFunction&)> CodeGen)

Description

Emits exit block with special codegen procedure specific for the related OpenMP construct + emits code for normal construct cleanup.

Declared at: clang/lib/CodeGen/CodeGenFunction.h:1463

Parameters

clang::CodeGen::CodeGenFunction& CGF
clang::OpenMPDirectiveKind Kind
const llvm::function_ref<void(CodeGenFunction&)> CodeGen

void enter(clang::CodeGen::CodeGenFunction& CGF,
           clang::OpenMPDirectiveKind Kind,
           bool HasCancel)

Description

Enter the cancel supporting \a Kind construct.

Declared at: clang/lib/CodeGen/CodeGenFunction.h:1482

Parameters

clang::CodeGen::CodeGenFunction& CGF
clang::OpenMPDirectiveKind Kind
OpenMP directive that supports cancel constructs.
bool HasCancel
true, if the construct has inner cancel directive, false otherwise.

void exit(clang::CodeGen::CodeGenFunction& CGF)

Description

Emits default exit point for the cancel construct (if the special one has not be used) + join point for cancel/normal exits.

Declared at: clang/lib/CodeGen/CodeGenFunction.h:1491

Parameters

clang::CodeGen::CodeGenFunction& CGF

clang::CodeGen::CodeGenFunction::JumpDest
getExitBlock() const

Description

Fetches the exit block for the current OpenMP construct.

Declared at: clang/lib/CodeGen/CodeGenFunction.h:1460

~OpenMPCancelExitStack()

Declared at: clang/lib/CodeGen/CodeGenFunction.h:1458