15 #ifndef LLVM_CLANG_AST_DECLOPENMP_H 16 #define LLVM_CLANG_AST_DECLOPENMP_H 22 #include "llvm/ADT/ArrayRef.h" 23 #include "llvm/Support/TrailingObjects.h" 47 virtual void anchor();
50 Decl(DK, DC, L), NumVars(0) { }
53 return llvm::makeArrayRef(getTrailingObjects<Expr *>(), NumVars);
67 unsigned ID,
unsigned N);
85 varlist_const_iterator
varlist_begin()
const {
return getVars().begin(); }
86 varlist_const_iterator
varlist_end()
const {
return getVars().end(); }
117 InitKind InitializerKind = CallInit;
124 virtual void anchor();
130 Initializer(nullptr), InitializerKind(CallInit),
131 PrevDeclInScope(PrevDeclInScope) {}
134 PrevDeclInScope = Prev;
161 InitializerKind = IK;
189 void anchor()
override;
194 :
VarDecl(OMPCapturedExpr, C, DC, StartLoc, StartLoc, Id, Type, TInfo,
void setImplicit(bool I=true)
const Expr * getCombiner() const
A (possibly-)qualified type.
C Language Family Type Representation.
Decl - This represents one declaration (or definition), e.g.
The base class of the type hierarchy.
static OMPDeclareReductionDecl * castFromDeclContext(const DeclContext *DC)
A container of type source information.
llvm::iterator_range< varlist_const_iterator > varlist_const_range
Represents a variable declaration or definition.
static bool classofKind(Kind K)
static bool classof(const Decl *D)
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 ...
varlist_const_range varlists() const
InitKind getInitializerKind() const
Get initializer kind.
virtual SourceRange getSourceRange() const LLVM_READONLY
Source range that this declaration covers.
static bool classof(const Decl *D)
Expr * getInitializer()
Get initializer expression (if specified) of the declare reduction construct.
varlist_const_iterator varlist_begin() const
Expr * getCombiner()
Get combiner expression of the declare reduction construct.
MutableArrayRef< Expr * >::iterator varlist_iterator
Represent the declaration of a variable (in which case it is an lvalue) a function (in which case it ...
Expr - This represents one expression.
Encodes a location in the source.
This represents '#pragma omp declare reduction ...' directive.
Pseudo declaration for capturing expressions.
varlist_iterator varlist_begin()
void setInitializer(Expr *E, InitKind IK)
Set initializer expression for the declare reduction construct.
static bool classofKind(Kind K)
static DeclContext * castToDeclContext(const OMPDeclareReductionDecl *D)
bool varlist_empty() const
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)
DeclarationName - The name of a declaration.
varlist_const_iterator varlist_end() const
static bool classofKind(Kind K)
void setCombiner(Expr *E)
Set combiner expression for the declare reduction construct.
const Expr * getInitializer() const
varlist_iterator varlist_end()
Kind
Lists the kind of concrete classes of Decl.
unsigned varlist_size() const
llvm::iterator_range< varlist_iterator > varlist_range
A trivial tuple used to represent a source range.
ArrayRef< const Expr * >::iterator varlist_const_iterator
This represents '#pragma omp threadprivate ...' directive.