MLIR
20.0.0git
|
This Decl represents an OperationName. More...
#include "mlir/Tools/PDLL/AST/Nodes.h"
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 OpNameDecl * | create (Context &ctx, const Name &name) |
static OpNameDecl * | create (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) | |
This Decl represents an OperationName.
|
static |
Definition at line 509 of file Nodes.cpp.
References mlir::pdll::ast::Context::getAllocator().
Referenced by mlir::pdll::ast::OpConstraintDecl::create().
|
static |
Definition at line 512 of file Nodes.cpp.
References mlir::pdll::ast::Context::getAllocator().
|
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().