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

This Decl represents a NamedAttribute, and contains a string name and attribute value. More...

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

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

Public Member Functions

const NamegetName () const
 Return the name of the attribute. More...
 
ExprgetValue () const
 Return value of the attribute. More...
 

Static Public Member Functions

static NamedAttributeDeclcreate (Context &ctx, const Name &name, Expr *value)
 
- 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 a NamedAttribute, and contains a string name and attribute value.

Definition at line 992 of file Nodes.h.

Member Function Documentation

◆ create()

NamedAttributeDecl * NamedAttributeDecl::create ( Context ctx,
const Name name,
Expr value 
)
static

Definition at line 499 of file Nodes.cpp.

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

◆ getName()

const Name& mlir::pdll::ast::NamedAttributeDecl::getName ( ) const
inline

Return the name of the attribute.

Definition at line 998 of file Nodes.h.

References mlir::pdll::ast::Decl::getName().

◆ getValue()

Expr* mlir::pdll::ast::NamedAttributeDecl::getValue ( ) const
inline

Return value of the attribute.

Definition at line 1001 of file Nodes.h.


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