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

This Decl represents an OperationName. More...

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

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

Public Member Functions

std::optional< StringRef > getName () const
 Return the name of this operation, or std::nullopt if the name is unknown. More...
 

Static Public Member Functions

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

Additional Inherited Members

- Public Types inherited from mlir::pdll::ast::Node::NodeBase< T, BaseT >
using Base = NodeBase< T, BaseT >
 
- Protected Member Functions inherited from mlir::pdll::ast::Node::NodeBase< T, BaseT >
template<typename... Args>
 NodeBase (SMRange loc, Args &&...args)
 

Detailed Description

This Decl represents an OperationName.

Definition at line 1016 of file Nodes.h.

Member Function Documentation

◆ create() [1/2]

OpNameDecl * OpNameDecl::create ( Context ctx,
const Name name 
)
static

◆ create() [2/2]

OpNameDecl * OpNameDecl::create ( Context ctx,
SMRange  loc 
)
static

Definition at line 512 of file Nodes.cpp.

References mlir::pdll::ast::Context::getAllocator().

◆ getName()

std::optional<StringRef> mlir::pdll::ast::OpNameDecl::getName ( ) const
inline

Return the name of this operation, or std::nullopt if the name is unknown.

Definition at line 1022 of file Nodes.h.

References mlir::pdll::ast::Name::getName(), and mlir::pdll::ast::Decl::getName().

Referenced by mlir::pdll::ast::OperationExpr::create(), mlir::pdll::ast::OperationExpr::getName(), and mlir::pdll::ast::OpConstraintDecl::getName().


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