class OMPDispatchDirective

Declaration

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

Description

This represents '#pragma omp dispatch' directive. This example shows a directive '#pragma omp dispatch' with a device clause with variable 'dnum'.

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

Inherits from: OMPExecutableDirective

Member Variables

private clang::SourceLocation TargetCallLoc
The location of the target-call.

Inherited from OMPExecutableDirective:

protected Data = nullptr

Inherited from Stmt:

protected

Method Overview

  • public static clang::OMPDispatchDirective * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation EndLoc, ArrayRef<clang::OMPClause *> Clauses, clang::Stmt * AssociatedStmt, clang::SourceLocation TargetCallLoc)
  • public static clang::OMPDispatchDirective * CreateEmpty(const clang::ASTContext & C, unsigned int NumClauses, clang::Stmt::EmptyShell)
  • private OMPDispatchDirective(clang::SourceLocation StartLoc, clang::SourceLocation EndLoc)
  • private OMPDispatchDirective()
  • public static bool classof(const clang::Stmt * T)
  • public clang::SourceLocation getTargetCallLoc() const
  • private void setTargetCallLoc(clang::SourceLocation Loc)

Inherited from OMPExecutableDirective:

Inherited from Stmt:

Methods

static clang::OMPDispatchDirective* Create(
    const clang::ASTContext& C,
    clang::SourceLocation StartLoc,
    clang::SourceLocation EndLoc,
    ArrayRef<clang::OMPClause*> Clauses,
    clang::Stmt* AssociatedStmt,
    clang::SourceLocation TargetCallLoc)

Description

Creates directive with a list of \a Clauses.

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

Parameters

const clang::ASTContext& C
AST context.
clang::SourceLocation StartLoc
Starting location of the directive kind.
clang::SourceLocation EndLoc
Ending Location of the directive.
ArrayRef<clang::OMPClause*> Clauses
List of clauses.
clang::Stmt* AssociatedStmt
Statement, associated with the directive.
clang::SourceLocation TargetCallLoc
Location of the target-call.

static clang::OMPDispatchDirective* CreateEmpty(
    const clang::ASTContext& C,
    unsigned int NumClauses,
    clang::Stmt::EmptyShell)

Description

Creates an empty directive with the place for \a NumClauses clauses.

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

Parameters

const clang::ASTContext& C
AST context.
unsigned int NumClauses
Number of clauses.
clang::Stmt::EmptyShell

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

Description

Build directive with the given start and end location.

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

Parameters

clang::SourceLocation StartLoc
Starting location of the directive kind.
clang::SourceLocation EndLoc
Ending location of the directive.

OMPDispatchDirective()

Description

Build an empty directive.

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

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

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

Parameters

const clang::Stmt* T

clang::SourceLocation getTargetCallLoc() const

Description

Return location of target-call.

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

void setTargetCallLoc(clang::SourceLocation Loc)

Description

Set the location of the target-call.

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

Parameters

clang::SourceLocation Loc