The class represents a Value constraint, and constrains a variable to be a Value.
More...
#include "mlir/Tools/PDLL/AST/Nodes.h"
|
| Expr * | getTypeExpr () |
| | Return the optional type the value is constrained to.
|
| const Expr * | getTypeExpr () const |
| const Name * | getName () const |
| | Return the name of the decl, or nullptr if it doesn't have one.
|
| void | setDocComment (Context &ctx, StringRef comment) |
| | Set the documentation comment for this decl.
|
| std::optional< StringRef > | getDocComment () const |
| | Return the documentation comment attached to this decl if it has been set.
|
| TypeID | getTypeID () const |
| | Return the type identifier of this node.
|
| SMRange | getLoc () const |
| | Return the location of this node.
|
| void | print (raw_ostream &os) const |
| | Print this node to the given stream.
|
| void | walk (function_ref< void(const Node *)> walkFn) const |
| | Walk all of the nodes including, and nested under, this node in pre-order.
|
| template<typename WalkFnT, typename ArgT = typename llvm::function_traits< WalkFnT>::template arg_t<0>> |
| std::enable_if_t<!std::is_convertible< const Node *, ArgT >::value > | walk (WalkFnT &&walkFn) const |
|
| Expr * | typeExpr |
| | An optional type that the value is constrained to.
|
The class represents a Value constraint, and constrains a variable to be a Value.
Definition at line 829 of file Nodes.h.
◆ ValueConstraintDecl()
| mlir::pdll::ast::ValueConstraintDecl::ValueConstraintDecl |
( |
SMRange | loc, |
|
|
Expr * | typeExpr ) |
|
inlineprotected |
◆ create()
◆ getTypeExpr() [1/2]
| Expr * mlir::pdll::ast::ValueConstraintDecl::getTypeExpr |
( |
| ) |
|
|
inline |
Return the optional type the value is constrained to.
Definition at line 835 of file Nodes.h.
References typeExpr.
◆ getTypeExpr() [2/2]
| const Expr * mlir::pdll::ast::ValueConstraintDecl::getTypeExpr |
( |
| ) |
const |
|
inline |
◆ typeExpr
| Expr* mlir::pdll::ast::ValueConstraintDecl::typeExpr |
|
protected |
The documentation for this class was generated from the following files: