MLIR  20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::pdll::ast::VariableDecl Class Referencefinal

This Decl represents the definition of a PDLL variable. More...

#include "mlir/Tools/PDLL/AST/Nodes.h"

+ Inheritance diagram for mlir::pdll::ast::VariableDecl:

Public Member Functions

MutableArrayRef< ConstraintRefgetConstraints ()
 Return the constraints of this variable. More...
 
ArrayRef< ConstraintRefgetConstraints () const
 
ExprgetInitExpr () const
 Return the initializer expression of this statement, or nullptr if there was no initializer. More...
 
const NamegetName () const
 Return the name of the decl. More...
 
Type getType () const
 Return the type of the decl. More...
 

Static Public Member Functions

static VariableDeclcreate (Context &ctx, const Name &name, Type type, Expr *initExpr, ArrayRef< ConstraintRef > constraints)
 
- Static Public Member Functions inherited from mlir::pdll::ast::Node::NodeBase< T, BaseT >
static bool classof (const Node *node)
 Provide type casting support. More...
 

Additional Inherited Members

- Public Types inherited from mlir::pdll::ast::Node::NodeBase< T, BaseT >
using Base = NodeBase< T, BaseT >
 
- Protected Member Functions inherited from mlir::pdll::ast::Node::NodeBase< T, BaseT >
template<typename... Args>
 NodeBase (SMRange loc, Args &&...args)
 

Detailed Description

This Decl represents the definition of a PDLL variable.

Definition at line 1240 of file Nodes.h.

Member Function Documentation

◆ create()

VariableDecl * VariableDecl::create ( Context ctx,
const Name name,
Type  type,
Expr initExpr,
ArrayRef< ConstraintRef constraints 
)
static

Definition at line 558 of file Nodes.cpp.

References mlir::pdll::ast::Context::getAllocator(), and getConstraints().

◆ getConstraints() [1/2]

MutableArrayRef<ConstraintRef> mlir::pdll::ast::VariableDecl::getConstraints ( )
inline

Return the constraints of this variable.

Definition at line 1249 of file Nodes.h.

Referenced by create(), and getConstraints().

◆ getConstraints() [2/2]

ArrayRef<ConstraintRef> mlir::pdll::ast::VariableDecl::getConstraints ( ) const
inline

Definition at line 1252 of file Nodes.h.

References getConstraints().

◆ getInitExpr()

Expr* mlir::pdll::ast::VariableDecl::getInitExpr ( ) const
inline

Return the initializer expression of this statement, or nullptr if there was no initializer.

Definition at line 1258 of file Nodes.h.

◆ getName()

const Name& mlir::pdll::ast::VariableDecl::getName ( ) const
inline

Return the name of the decl.

Definition at line 1261 of file Nodes.h.

References mlir::pdll::ast::Decl::getName().

◆ getType()

Type mlir::pdll::ast::VariableDecl::getType ( ) const
inline

Return the type of the decl.

Definition at line 1264 of file Nodes.h.


The documentation for this class was generated from the following files: