CIRCT
20.0.0git
|
This holds information about the port for either a Component or Cell. More...
#include <CalyxOps.h>
Public Member Functions | |
bool | hasAttribute (StringRef identifier) const |
Returns whether the given port has attribute with Identifier name . More... | |
std::optional< Attribute > | getAttribute (StringRef identifier) const |
Returns the attribute associated with the given name if it exists, otherwise std::nullopt. More... | |
SmallVector< StringRef > | getAllIdentifiers () const |
Returns all identifiers for this dictionary attribute. More... | |
Public Attributes | |
StringAttr | name |
Type | type |
Direction | direction |
DictionaryAttr | attributes |
This holds information about the port for either a Component or Cell.
Definition at line 89 of file CalyxOps.h.
|
inline |
Returns all identifiers for this dictionary attribute.
Definition at line 116 of file CalyxOps.h.
References assert(), and attributes.
|
inline |
Returns the attribute associated with the given name if it exists, otherwise std::nullopt.
Definition at line 105 of file CalyxOps.h.
References assert(), and attributes.
|
inline |
Returns whether the given port has attribute with Identifier name
.
Definition at line 96 of file CalyxOps.h.
References assert(), and attributes.
DictionaryAttr circt::calyx::PortInfo::attributes |
Definition at line 93 of file CalyxOps.h.
Referenced by msft.DeclPhysicalRegionOp::add_bounds(), esi.RequestConnectionOp::clientNamePath(), getAllIdentifiers(), getAttribute(), hasAttribute(), esi.RandomAccessMemoryDeclOp::innerType(), msft.DynamicInstanceOp::instanceRef(), fsm.MachineOp::instantiate(), msft.PDPhysLocationOp::loc(), hw.ModuleLike::name(), hw.ModuleLike::parameters(), printComponentInterface(), msft.InstanceHierarchyOp::top_module_ref(), fsm.MachineOp::type(), and hw.ModuleLike::type().
Direction circt::calyx::PortInfo::direction |
Definition at line 92 of file CalyxOps.h.
Referenced by verifyPortDirection().
StringAttr circt::calyx::PortInfo::name |
Definition at line 90 of file CalyxOps.h.
Referenced by printComponentInterface().
Type circt::calyx::PortInfo::type |
Definition at line 91 of file CalyxOps.h.
Referenced by fsm.MachineOp::__init__(), esiaccel.types.WritePort::__serialize_msg(), hw.HWModuleOp::add_entry_block(), esiaccel.types.Port::connect(), hw.HWModuleOp::input_indices(), fsm.MachineOp::instantiate(), hw.HWModuleOp::outputs(), printComponentInterface(), and esiaccel.types.ReadPort::read().