93 unsigned _Domain,
unsigned _Range,
118 return (Decl::VarDeclKindFirst <= D->
getKind() &&
152 return (Decl::CommandDeclKindFirst <= D->
getKind() &&
188 const std::vector<ExprHandle> &_Values,
189 const std::vector<const Array*> &_Objects
231 static Parser *
Create(
const std::string Name,
const llvm::MemoryBuffer *MB,
ExprBuilder - Base expression builder class.
Class representing a complete list of updates into an array.
ArrayDecl(const Identifier *_Name, uint64_t _Size, unsigned _Domain, unsigned _Range, const Array *_Root)
const Identifier * Name
Name - The name of this array.
static bool classof(const ArrayDecl *)
const Array * Root
Root - The root array object defined by this decl.
const unsigned Domain
Domain - The width of indices.
const unsigned Range
Range - The width of array contents.
static bool classof(const Decl *D)
virtual void dump()
dump - Dump the AST node to stderr.
CommandDecl - Base class for language commands.
static bool classof(const Decl *D)
CommandDecl(DeclKind _Kind)
static bool classof(const CommandDecl *)
Decl - Base class for top level declarations.
static bool classof(const Decl *)
DeclKind getKind() const
getKind - Get the decl kind.
virtual void dump()=0
dump - Dump the AST node to stderr.
ExprVarDecl - Expression variable declarations.
static bool classof(const ExprVarDecl *)
static bool classof(const Decl *D)
Parser - Public interface for parsing a .kquery language file.
static Parser * Create(const std::string Name, const llvm::MemoryBuffer *MB, ExprBuilder *Builder, bool ClearArrayAfterQuery)
virtual unsigned GetNumErrors() const =0
GetNumErrors - Return the number of encountered errors.
virtual void SetMaxErrors(unsigned N)=0
SetMaxErrors - Suppress anything beyond the first N errors.
virtual Decl * ParseTopLevelDecl()=0
const std::vector< const Array * > Objects
virtual void dump()
dump - Dump the AST node to stderr.
const std::vector< ExprHandle > Constraints
static bool classof(const QueryCommand *)
static bool classof(const Decl *D)
ExprHandle Query
Query - The expression being queried.
QueryCommand(const std::vector< ExprHandle > &_Constraints, ExprHandle _Query, const std::vector< ExprHandle > &_Values, const std::vector< const Array * > &_Objects)
const std::vector< ExprHandle > Values
static bool classof(const Decl *D)
static bool classof(const VarDecl *)
VersionVarDecl - Array version variable declarations.
static bool classof(const Decl *D)
static bool classof(const VersionVarDecl *)
Identifier - Wrapper for a uniqued string.
Identifier(const std::string _Name)