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

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

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

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

Public Member Functions

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

Static Public Member Functions

static ValueRangeConstraintDeclcreate (Context &ctx, SMRange loc, Expr *typeExpr=nullptr)
 
- 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

 ValueRangeConstraintDecl (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 range 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 ValueRange constraint, and constrains a variable to be a ValueRange.

Definition at line 846 of file Nodes.h.

Constructor & Destructor Documentation

◆ ValueRangeConstraintDecl()

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

Definition at line 857 of file Nodes.h.

Referenced by create().

Member Function Documentation

◆ create()

ValueRangeConstraintDecl * ValueRangeConstraintDecl::create ( Context ctx,
SMRange  loc,
Expr typeExpr = nullptr 
)
static

◆ getTypeExpr() [1/2]

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

Return the optional type the value range is constrained to.

Definition at line 853 of file Nodes.h.

References typeExpr.

◆ getTypeExpr() [2/2]

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

Definition at line 854 of file Nodes.h.

References typeExpr.

Member Data Documentation

◆ typeExpr

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

An optional type that the value range is constrained to.

Definition at line 861 of file Nodes.h.

Referenced by create(), and getTypeExpr().


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