clang API Documentation
This represents '#pragma omp atomic' directive. More...
#include <StmtOpenMP.h>
Public Member Functions | |
Expr * | getX () |
Get 'x' part of the associated expression/statement. | |
const Expr * | getX () const |
Expr * | getV () |
Get 'v' part of the associated expression/statement. | |
const Expr * | getV () const |
Expr * | getExpr () |
Get 'expr' part of the associated expression/statement. | |
const Expr * | getExpr () const |
Static Public Member Functions | |
static OMPAtomicDirective * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, ArrayRef< OMPClause * > Clauses, Stmt *AssociatedStmt, Expr *X, Expr *V, Expr *E) |
Creates directive with a list of Clauses and 'x', 'v' and 'expr' parts of the atomic construct (see Section 2.12.6, atomic Construct, for detailed description of 'x', 'v' and 'expr'). | |
static OMPAtomicDirective * | 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 |
This represents '#pragma omp atomic' directive.
#pragma omp atomic capture
In this example directive '#pragma omp atomic' has clause 'capture'.
Definition at line 1431 of file StmtOpenMP.h.
static bool clang::OMPAtomicDirective::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::OMPExecutableDirective.
Definition at line 1504 of file StmtOpenMP.h.
References clang::Stmt::getStmtClass().
OMPAtomicDirective * OMPAtomicDirective::Create | ( | const ASTContext & | C, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
ArrayRef< OMPClause * > | Clauses, | ||
Stmt * | AssociatedStmt, | ||
Expr * | X, | ||
Expr * | V, | ||
Expr * | E | ||
) | [static] |
Creates directive with a list of Clauses and 'x', 'v' and 'expr' parts of the atomic construct (see Section 2.12.6, atomic Construct, for detailed description of 'x', 'v' and 'expr').
C | AST context. |
StartLoc | Starting location of the directive kind. |
EndLoc | Ending Location of the directive. |
Clauses | List of clauses. |
AssociatedStmt | Statement, associated with the directive. |
X | 'x' part of the associated expression/statement. |
V | 'v' part of the associated expression/statement. |
Expr | 'expr' part of the associated expression/statement. |
Definition at line 1928 of file Stmt.cpp.
References clang::ASTContext::Allocate(), clang::OMPExecutableDirective::setAssociatedStmt(), and clang::OMPExecutableDirective::setClauses().
Referenced by clang::Sema::ActOnOpenMPAtomicDirective().
OMPAtomicDirective * OMPAtomicDirective::CreateEmpty | ( | const ASTContext & | C, |
unsigned | NumClauses, | ||
EmptyShell | |||
) | [static] |
Creates an empty directive with the place for NumClauses clauses.
C | AST context. |
NumClauses | Number of clauses. |
Definition at line 1945 of file Stmt.cpp.
References clang::ASTContext::Allocate().
Expr* clang::OMPAtomicDirective::getExpr | ( | ) | [inline] |
Get 'expr' part of the associated expression/statement.
Definition at line 1499 of file StmtOpenMP.h.
References clang::Stmt::child_begin().
const Expr* clang::OMPAtomicDirective::getExpr | ( | ) | const [inline] |
Definition at line 1500 of file StmtOpenMP.h.
References clang::Stmt::child_begin().
Expr* clang::OMPAtomicDirective::getV | ( | ) | [inline] |
Get 'v' part of the associated expression/statement.
Definition at line 1494 of file StmtOpenMP.h.
References clang::Stmt::child_begin().
const Expr* clang::OMPAtomicDirective::getV | ( | ) | const [inline] |
Definition at line 1495 of file StmtOpenMP.h.
References clang::Stmt::child_begin().
Expr* clang::OMPAtomicDirective::getX | ( | ) | [inline] |
Get 'x' part of the associated expression/statement.
Definition at line 1489 of file StmtOpenMP.h.
References clang::Stmt::child_begin().
const Expr* clang::OMPAtomicDirective::getX | ( | ) | const [inline] |
Definition at line 1490 of file StmtOpenMP.h.
References clang::Stmt::child_begin().
friend class ASTStmtReader [friend] |
Reimplemented from clang::OMPExecutableDirective.
Definition at line 1432 of file StmtOpenMP.h.