MLIR  19.0.0git
Public Member Functions | Friends | List of all members
mlir::pdll::ods::Attribute Class Reference

This class provides an ODS representation of a specific operation attribute. More...

#include "mlir/Tools/PDLL/ODS/Operation.h"

Public Member Functions

StringRef getName () const
 Return the name of this operand. More...
 
bool isOptional () const
 Return true if this attribute is optional. More...
 
const AttributeConstraintgetConstraint () const
 Return the constraint of this attribute. More...
 

Friends

class Operation
 Allow access to the private constructor. More...
 

Detailed Description

This class provides an ODS representation of a specific operation attribute.

This includes the name, optionality, and more.

Definition at line 39 of file Operation.h.

Member Function Documentation

◆ getConstraint()

const AttributeConstraint& mlir::pdll::ods::Attribute::getConstraint ( ) const
inline

Return the constraint of this attribute.

Definition at line 48 of file Operation.h.

◆ getName()

StringRef mlir::pdll::ods::Attribute::getName ( ) const
inline

Return the name of this operand.

Definition at line 42 of file Operation.h.

◆ isOptional()

bool Attribute::isOptional ( ) const
inline

Return true if this attribute is optional.

Definition at line 45 of file Operation.h.

Friends And Related Function Documentation

◆ Operation

friend class Operation
friend

Allow access to the private constructor.

Definition at line 65 of file Operation.h.


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