MLIR
20.0.0git
|
This Decl represents the definition of a PDLL variable. More...
#include "mlir/Tools/PDLL/AST/Nodes.h"
Public Member Functions | |
MutableArrayRef< ConstraintRef > | getConstraints () |
Return the constraints of this variable. More... | |
ArrayRef< ConstraintRef > | getConstraints () const |
Expr * | getInitExpr () const |
Return the initializer expression of this statement, or nullptr if there was no initializer. More... | |
const Name & | getName () const |
Return the name of the decl. More... | |
Type | getType () const |
Return the type of the decl. More... | |
Static Public Member Functions | |
static VariableDecl * | create (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) | |
|
static |
Definition at line 558 of file Nodes.cpp.
References mlir::pdll::ast::Context::getAllocator(), and getConstraints().
|
inline |
Return the constraints of this variable.
Definition at line 1249 of file Nodes.h.
Referenced by create(), and getConstraints().
|
inline |
Definition at line 1252 of file Nodes.h.
References getConstraints().
|
inline |
|
inline |
Return the name of the decl.
Definition at line 1261 of file Nodes.h.
References mlir::pdll::ast::Decl::getName().
|
inline |