clang: OMPTargetDataDirective Class Reference (original) (raw)

This represents '#pragma omp target data' directive. More...

#include "[clang/AST/StmtOpenMP.h](StmtOpenMP%5F8h%5Fsource.html)"

Static Public Member Functions
static OMPTargetDataDirective * Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, ArrayRef< OMPClause * > Clauses, Stmt *AssociatedStmt)
Creates directive with a list of Clauses.
static OMPTargetDataDirective * CreateEmpty (const ASTContext &C, unsigned N, EmptyShell)
Creates an empty directive with the place for N clauses.
static bool classof (const Stmt *T)
Friends
class ASTStmtReader
class OMPExecutableDirective

This represents '#pragma omp target data' directive.

#pragma omp target data device(0) if(a) map(b[:])

In this example directive '#pragma omp target data' has clauses 'device' with the value '0', 'if' with condition 'a' and 'map' with array section 'b[:]'.

Definition at line 3253 of file StmtOpenMP.h.

classof()

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

Create()

CreateEmpty()

Creates an empty directive with the place for N clauses.

Parameters

C AST context.
N The number of clauses.

Definition at line 1171 of file StmtOpenMP.cpp.

References clang::C.

ASTStmtReader

friend class ASTStmtReader friend

OMPExecutableDirective


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