|
CIRCT 24.0.0git
|
This holds a decoded list of input/inout and output ports for a module or instance. More...
#include <PortImplementation.h>

Public Types | |
| using | iterator = SmallVector<PortInfo>::iterator |
| using | const_iterator = SmallVector<PortInfo>::const_iterator |
| using | PortDirectionRange |
| using | ConstPortDirectionRange |
Public Member Functions | |
| ModulePortInfo (ArrayRef< PortInfo > inputs, ArrayRef< PortInfo > outputs) | |
| ModulePortInfo (ArrayRef< PortInfo > mergedPorts) | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| PortDirectionRange | getPortsOfDirection (bool input) |
| ConstPortDirectionRange | getPortsOfDirection (bool input) const |
| PortDirectionRange | getInputs () |
| PortDirectionRange | getOutputs () |
| ConstPortDirectionRange | getInputs () const |
| ConstPortDirectionRange | getOutputs () const |
| size_t | size () const |
| size_t | sizeInputs () const |
| size_t | sizeOutputs () const |
| size_t | portNumForInput (size_t idx) const |
| size_t | portNumForOutput (size_t idx) const |
| PortInfo & | at (size_t idx) |
| PortInfo & | atInput (size_t idx) |
| PortInfo & | atOutput (size_t idx) |
| const PortInfo & | at (size_t idx) const |
| const PortInfo & | atInput (size_t idx) const |
| const PortInfo & | atOutput (size_t idx) const |
| void | eraseInput (size_t idx) |
Private Attributes | |
| SmallVector< PortInfo > | ports |
| This contains a list of all ports. Input first. | |
This holds a decoded list of input/inout and output ports for a module or instance.
Definition at line 56 of file PortImplementation.h.
| using circt::hw::ModulePortInfo::const_iterator = SmallVector<PortInfo>::const_iterator |
Definition at line 67 of file PortImplementation.h.
Definition at line 77 of file PortImplementation.h.
| using circt::hw::ModulePortInfo::iterator = SmallVector<PortInfo>::iterator |
Definition at line 66 of file PortImplementation.h.
Definition at line 74 of file PortImplementation.h.
|
inlineexplicit |
Definition at line 57 of file PortImplementation.h.
References ports.
|
inlineexplicit |
Definition at line 63 of file PortImplementation.h.
|
inline |
Definition at line 150 of file PortImplementation.h.
References ports.
|
inline |
Definition at line 154 of file PortImplementation.h.
References ports.
|
inline |
Definition at line 151 of file PortImplementation.h.
References portNumForInput(), and ports.
|
inline |
Definition at line 155 of file PortImplementation.h.
References portNumForInput(), and ports.
|
inline |
Definition at line 152 of file PortImplementation.h.
References portNumForOutput(), and ports.
|
inline |
Definition at line 158 of file PortImplementation.h.
References portNumForOutput(), and ports.
|
inline |
Definition at line 69 of file PortImplementation.h.
References ports.
Referenced by ModulePortInfo().
|
inline |
Definition at line 71 of file PortImplementation.h.
References ports.
|
inline |
Definition at line 70 of file PortImplementation.h.
References ports.
Referenced by ModulePortInfo().
|
inline |
Definition at line 72 of file PortImplementation.h.
References ports.
|
inline |
Definition at line 162 of file PortImplementation.h.
References assert(), portNumForInput(), ports, and sizeInputs().
Referenced by convertExtMemoryOps().
|
inline |
Definition at line 108 of file PortImplementation.h.
References getPortsOfDirection().
Referenced by llvm::DOTGraphTraits< circt::hw::HWModuleOp >::addCustomGraphFeatures(), convertExtMemoryOps(), circt::hw::ModulePortLookupInfo::ModulePortLookupInfo(), and sizeInputs().
|
inline |
Definition at line 112 of file PortImplementation.h.
References getPortsOfDirection().
|
inline |
Definition at line 110 of file PortImplementation.h.
References getPortsOfDirection().
Referenced by convertExtMemoryOps(), circt::hw::ModulePortLookupInfo::ModulePortLookupInfo(), sizeOutputs(), and circt::hw::PortConverterImpl::updateInstance().
|
inline |
Definition at line 116 of file PortImplementation.h.
References getPortsOfDirection().
|
inline |
Definition at line 80 of file PortImplementation.h.
References circt::hw::ModulePort::Input, circt::hw::ModulePort::Output, and ports.
Referenced by getInputs(), getInputs(), getOutputs(), and getOutputs().
|
inline |
Definition at line 94 of file PortImplementation.h.
References circt::hw::ModulePort::Input, circt::hw::ModulePort::Output, and ports.
|
inline |
Definition at line 130 of file PortImplementation.h.
References ports.
Referenced by atInput(), atInput(), and eraseInput().
|
inline |
Definition at line 140 of file PortImplementation.h.
References ports.
Referenced by atOutput(), and atOutput().
|
inline |
Definition at line 120 of file PortImplementation.h.
References ports.
|
inline |
Definition at line 121 of file PortImplementation.h.
References getInputs().
Referenced by eraseInput(), circt::hw::PortConverterImpl::run(), and circt::hw::PortConverterImpl::updateInstance().
|
inline |
Definition at line 125 of file PortImplementation.h.
References getOutputs().
Referenced by circt::hw::PortConverterImpl::run().
|
private |
This contains a list of all ports. Input first.
Definition at line 169 of file PortImplementation.h.
Referenced by at(), at(), atInput(), atInput(), atOutput(), atOutput(), begin(), begin(), end(), end(), eraseInput(), getPortsOfDirection(), getPortsOfDirection(), ModulePortInfo(), ModulePortInfo(), portNumForInput(), portNumForOutput(), and size().