CIRCT
20.0.0git
|
This is a convenience class providing default implementations for attribute emission patterns. More...
#include <EmissionPattern.h>
Public Member Functions | |
AttrEmissionPattern () | |
void | emitAttr (Attribute attr, EmissionPrinter &p) final |
Emit the given attribute to the emission printer. More... | |
bool | match (Attribute attr) override |
Checks if this pattern is applicable to the given attribute. More... | |
virtual void | emitAttr (A attr, EmissionPrinter &p)=0 |
Emit the given attribute to the emission printer. More... | |
Public Member Functions inherited from circt::ExportSystemC::AttrEmissionPatternBase | |
AttrEmissionPatternBase (TypeID typeId) | |
virtual | ~AttrEmissionPatternBase ()=default |
Public Member Functions inherited from circt::ExportSystemC::PatternBase | |
PatternBase (const void *rootValue) | |
const void * | getRootValue () const |
Get a unique identifier for the C++ type the pattern is matching on. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from circt::ExportSystemC::PatternBase | |
template<typename E , typename... Args> | |
static std::unique_ptr< E > | create (Args &&...args) |
This is a convenience class providing default implementations for attribute emission patterns.
Definition at line 216 of file EmissionPattern.h.
|
inline |
Definition at line 217 of file EmissionPattern.h.
|
pure virtual |
Emit the given attribute to the emission printer.
|
inlinefinalvirtual |
Emit the given attribute to the emission printer.
Implements circt::ExportSystemC::AttrEmissionPatternBase.
Definition at line 219 of file EmissionPattern.h.
|
inlineoverridevirtual |
Checks if this pattern is applicable to the given attribute.
Matches to the attribute given as template argument by default.
Implements circt::ExportSystemC::AttrEmissionPatternBase.
Definition at line 225 of file EmissionPattern.h.