clang: OMPTargetUpdateDirective Class Reference (original) (raw)
This represents '#pragma omp target update' directive. More...
#include "[clang/AST/StmtOpenMP.h](StmtOpenMP%5F8h%5Fsource.html)"
| Static Public Member Functions | |
|---|---|
| static OMPTargetUpdateDirective * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, ArrayRef< OMPClause * > Clauses, Stmt *AssociatedStmt) |
| Creates directive with a list of Clauses. | |
| static OMPTargetUpdateDirective * | CreateEmpty (const ASTContext &C, unsigned NumClauses, EmptyShell) |
| Creates an empty directive with the place for NumClauses clauses. | |
| static bool | classof (const Stmt *T) |
| Friends | |
|---|---|
| class | ASTStmtReader |
| class | OMPExecutableDirective |
This represents '#pragma omp target update' directive.
#pragma omp target update to(a) from(b) device(1)
In this example directive '#pragma omp target update' has clause 'to' with argument 'a', clause 'from' with argument 'b' and clause 'device' with argument '1'.
Definition at line 4538 of file StmtOpenMP.h.
◆ classof()
| bool OMPTargetUpdateDirective::classof ( const Stmt * T) | inlinestatic |
|---|
◆ Create()
◆ CreateEmpty()
Creates an empty directive with the place for NumClauses clauses.
Parameters
| C | AST context. |
|---|---|
| NumClauses | The number of clauses. |
Definition at line 1728 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