MLIR  20.0.0git
Public Member Functions | Protected Member Functions | List of all members
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. More...
 
StringRef getDemangledName () const
 Return the demangled name of this constraint. More...
 
StringRef getSummary () const
 Return the summary of this constraint. More...
 

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.

◆ Constraint() [2/2]

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

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.

◆ 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: