21 using namespace clang;
27 void OMPThreadPrivateDecl::anchor() { }
34 new (
C, DC, additionalSizeToAlloc<Expr *>(VL.size()))
36 D->NumVars = VL.size();
51 assert(VL.size() == NumVars &&
52 "Number of variables is not the same as the preallocated buffer");
53 std::uninitialized_copy(VL.begin(), VL.end(), getTrailingObjects<Expr *>());
60 void OMPRequiresDecl::anchor() {}
66 new (
C, DC, additionalSizeToAlloc<OMPClause *>(CL.size()))
68 D->NumClauses = CL.size();
82 assert(CL.size() == NumClauses &&
83 "Number of clauses is not the same as the preallocated buffer");
84 std::uninitialized_copy(CL.begin(), CL.end(),
85 getTrailingObjects<OMPClause *>());
92 OMPDeclareReductionDecl::OMPDeclareReductionDecl(
96 PrevDeclInScope(PrevDeclInScope) {
97 setInitializer(
nullptr, CallInit);
100 void OMPDeclareReductionDecl::anchor() {}
117 return cast_or_null<OMPDeclareReductionDecl>(
122 return cast_or_null<OMPDeclareReductionDecl>(
130 void OMPCapturedExprDecl::anchor() {}
Defines the clang::ASTContext interface.
A (possibly-)qualified type.
SourceLocation getBeginLoc() const LLVM_READONLY
static OMPDeclareReductionDecl * Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, QualType T, OMPDeclareReductionDecl *PrevDeclInScope)
Create declare reduction node.
SourceLocation getEndLoc() const LLVM_READONLY
One of these records is kept for each identifier that is lexed.
static OMPThreadPrivateDecl * CreateDeserialized(ASTContext &C, unsigned ID, unsigned N)
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
SourceRange getSourceRange() const override LLVM_READONLY
Source range that this declaration covers.
static OMPCapturedExprDecl * CreateDeserialized(ASTContext &C, unsigned ID)
static OMPRequiresDecl * CreateDeserialized(ASTContext &C, unsigned ID, unsigned N)
Create deserialized requires node.
TypeSourceInfo * getTrivialTypeSourceInfo(QualType T, SourceLocation Loc=SourceLocation()) const
Allocate a TypeSourceInfo where all locations have been initialized to a given location, which defaults to the empty location.
This represents '#pragma omp requires...' directive.
Represent the declaration of a variable (in which case it is an lvalue) a function (in which case it ...
OMPDeclareReductionDecl * getPrevDeclInScope()
Get reference to previous declare reduction construct in the same scope with the same name...
Encodes a location in the source.
This represents '#pragma omp declare reduction ...' directive.
Pseudo declaration for capturing expressions.
ASTContext & getASTContext() const LLVM_READONLY
This file defines OpenMP nodes for declarative directives.
static OMPCapturedExprDecl * Create(ASTContext &C, DeclContext *DC, IdentifierInfo *Id, QualType T, SourceLocation StartLoc)
Dataflow Directional Tag Classes.
DeclContext - This is used only as base class of specific decl types that can act as declaration cont...
static OMPThreadPrivateDecl * Create(ASTContext &C, DeclContext *DC, SourceLocation L, ArrayRef< Expr *> VL)
The name of a declaration.
static OMPRequiresDecl * Create(ASTContext &C, DeclContext *DC, SourceLocation L, ArrayRef< OMPClause *> CL)
Create requires node.
static OMPDeclareReductionDecl * CreateDeserialized(ASTContext &C, unsigned ID)
Create deserialized declare reduction node.
Kind
Lists the kind of concrete classes of Decl.
A trivial tuple used to represent a source range.
This represents '#pragma omp threadprivate ...' directive.