clang: OMPTargetEnterDataDirective Class Reference (original) (raw)
This represents '#pragma omp target enter data' directive. More...
#include "[clang/AST/StmtOpenMP.h](StmtOpenMP%5F8h%5Fsource.html)"
| Static Public Member Functions | |
|---|---|
| static OMPTargetEnterDataDirective * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, ArrayRef< OMPClause * > Clauses, Stmt *AssociatedStmt) |
| Creates directive with a list of Clauses. | |
| static OMPTargetEnterDataDirective * | 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 enter data' directive.
#pragma omp target enter data device(0) if(a) map(b[:])
In this example directive '#pragma omp target enter data' has clauses 'device' with the value '0', 'if' with condition 'a' and 'map' with array section 'b[:]'.
Definition at line 3307 of file StmtOpenMP.h.
◆ classof()
| bool OMPTargetEnterDataDirective::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 1186 of file StmtOpenMP.cpp.
References clang::C.
◆ ASTStmtReader
| friend class ASTStmtReader | friend |
|---|
◆ OMPExecutableDirective
The documentation for this class was generated from the following files:
- include/clang/AST/StmtOpenMP.h
- lib/AST/StmtOpenMP.cpp