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

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

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

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

Public Member Functions

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

Static Public Member Functions

static AttrConstraintDeclcreate (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

 AttrConstraintDecl (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 attribute 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 an Attribute constraint, and constrains a variable to be an Attribute.

Definition at line 748 of file Nodes.h.

Constructor & Destructor Documentation

◆ AttrConstraintDecl()

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

Definition at line 759 of file Nodes.h.

Referenced by create().

Member Function Documentation

◆ create()

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

◆ getTypeExpr() [1/2]

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

Return the optional type the attribute is constrained to.

Definition at line 755 of file Nodes.h.

References typeExpr.

◆ getTypeExpr() [2/2]

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

Definition at line 756 of file Nodes.h.

References typeExpr.

Member Data Documentation

◆ typeExpr

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

An optional type that the attribute is constrained to.

Definition at line 763 of file Nodes.h.

Referenced by create(), and getTypeExpr().


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