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

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

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

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

Public Member Functions

std::optional< StringRef > getName () const
 Return the name of the operation, or std::nullopt if there isn't one. More...
 
const OpNameDeclgetNameDecl () const
 Return the declaration of the operation name. More...
 

Static Public Member Functions

static OpConstraintDeclcreate (Context &ctx, SMRange loc, const OpNameDecl *nameDecl=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

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

Protected Attributes

const OpNameDeclnameDecl
 The operation name of this constraint. 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 Operation constraint, and constrains a variable to be an Operation.

Definition at line 771 of file Nodes.h.

Constructor & Destructor Documentation

◆ OpConstraintDecl()

mlir::pdll::ast::OpConstraintDecl::OpConstraintDecl ( SMRange  loc,
const OpNameDecl nameDecl 
)
inlineexplicitprotected

Definition at line 784 of file Nodes.h.

Referenced by create().

Member Function Documentation

◆ create()

OpConstraintDecl * OpConstraintDecl::create ( Context ctx,
SMRange  loc,
const OpNameDecl nameDecl = nullptr 
)
static

◆ getName()

std::optional< StringRef > OpConstraintDecl::getName ( ) const

Return the name of the operation, or std::nullopt if there isn't one.

Definition at line 409 of file Nodes.cpp.

References mlir::pdll::ast::OpNameDecl::getName(), and getNameDecl().

◆ getNameDecl()

const OpNameDecl* mlir::pdll::ast::OpConstraintDecl::getNameDecl ( ) const
inline

Return the declaration of the operation name.

Definition at line 781 of file Nodes.h.

References nameDecl.

Referenced by getName().

Member Data Documentation

◆ nameDecl

const OpNameDecl* mlir::pdll::ast::OpConstraintDecl::nameDecl
protected

The operation name of this constraint.

Definition at line 788 of file Nodes.h.

Referenced by create(), and getNameDecl().


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