MLIR  20.0.0git
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mlir::pdll::ast::ValueConstraintDecl Class Reference

The class represents a Value constraint, and constrains a variable to be a Value. More...

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

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

Public Member Functions

ExprgetTypeExpr ()
 Return the optional type the value is constrained to. More...
 
const ExprgetTypeExpr () const
 

Static Public Member Functions

static ValueConstraintDeclcreate (Context &ctx, SMRange loc, Expr *typeExpr)
 
- Static Public Member Functions inherited from mlir::pdll::ast::Node::NodeBase< T, BaseT >
static bool classof (const Node *node)
 Provide type casting support. More...
 

Protected Member Functions

 ValueConstraintDecl (SMRange loc, Expr *typeExpr)
 
- Protected Member Functions inherited from mlir::pdll::ast::Node::NodeBase< T, BaseT >
template<typename... Args>
 NodeBase (SMRange loc, Args &&...args)
 

Protected Attributes

ExprtypeExpr
 An optional type that the value is constrained to. More...
 

Additional Inherited Members

- Public Types inherited from mlir::pdll::ast::Node::NodeBase< T, BaseT >
using Base = NodeBase< T, BaseT >
 

Detailed Description

The class represents a Value constraint, and constrains a variable to be a Value.

Definition at line 824 of file Nodes.h.

Constructor & Destructor Documentation

◆ ValueConstraintDecl()

mlir::pdll::ast::ValueConstraintDecl::ValueConstraintDecl ( SMRange  loc,
Expr typeExpr 
)
inlineprotected

Definition at line 834 of file Nodes.h.

Referenced by create().

Member Function Documentation

◆ create()

ValueConstraintDecl * ValueConstraintDecl::create ( Context ctx,
SMRange  loc,
Expr typeExpr 
)
static

◆ getTypeExpr() [1/2]

Expr* mlir::pdll::ast::ValueConstraintDecl::getTypeExpr ( )
inline

Return the optional type the value is constrained to.

Definition at line 830 of file Nodes.h.

References typeExpr.

◆ getTypeExpr() [2/2]

const Expr* mlir::pdll::ast::ValueConstraintDecl::getTypeExpr ( ) const
inline

Definition at line 831 of file Nodes.h.

References typeExpr.

Member Data Documentation

◆ typeExpr

Expr* mlir::pdll::ast::ValueConstraintDecl::typeExpr
protected

An optional type that the value is constrained to.

Definition at line 838 of file Nodes.h.

Referenced by create(), and getTypeExpr().


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