MLIR 22.0.0git
mlir::pdll::ods::Constraint Class Reference

This class represents a generic ODS constraint. More...

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

Inheritance diagram for mlir::pdll::ods::Constraint:

Public Member Functions

StringRef getName () const
 Return the unique name of this constraint.
StringRef getDemangledName () const
 Return the demangled name of this constraint.
StringRef getSummary () const
 Return the summary of this constraint.

Protected Member Functions

 Constraint (StringRef name, StringRef summary)
 Constraint (const Constraint &)=delete

Detailed Description

This class represents a generic ODS constraint.

Definition at line 32 of file Constraint.h.

Constructor & Destructor Documentation

◆ Constraint() [1/2]

mlir::pdll::ods::Constraint::Constraint ( StringRef name,
StringRef summary )
inlineprotected

Definition at line 47 of file Constraint.h.

Referenced by Constraint().

◆ Constraint() [2/2]

mlir::pdll::ods::Constraint::Constraint ( const Constraint & )
protecteddelete

References Constraint().

Member Function Documentation

◆ getDemangledName()

StringRef Constraint::getDemangledName ( ) const

Return the demangled name of this constraint.

This tries to strip out bits of the name that are purely for uniquing, and show the underlying name. As such, this name does guarantee uniqueness and should only be used for logging or other lossy friendly "pretty" output.

Definition at line 18 of file Constraint.cpp.

Referenced by mlir::pdll::ods::Context::print().

◆ getName()

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

Return the unique name of this constraint.

Definition at line 35 of file Constraint.h.

◆ getSummary()

StringRef mlir::pdll::ods::Constraint::getSummary ( ) const
inline

Return the summary of this constraint.

Definition at line 44 of file Constraint.h.


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