CIRCT
20.0.0git
|
Base class for the port conversion of a particular port. More...
#include <PortConverter.h>
Public Member Functions | |
PortConversion (PortConverterImpl &converter, hw::PortInfo origPort) | |
virtual | ~PortConversion ()=default |
virtual LogicalResult | init () |
void | lowerPort () |
virtual void | mapInputSignals (OpBuilder &b, Operation *inst, Value instValue, SmallVectorImpl< Value > &newOperands, ArrayRef< Backedge > newResults)=0 |
Update an instance port to the new port information. More... | |
virtual void | mapOutputSignals (OpBuilder &b, Operation *inst, Value instValue, SmallVectorImpl< Value > &newOperands, ArrayRef< Backedge > newResults)=0 |
MLIRContext * | getContext () |
bool | isUntouched () const |
Protected Member Functions | |
virtual void | buildInputSignals ()=0 |
virtual void | buildOutputSignals ()=0 |
hw::HWMutableModuleLike | getModule () |
Protected Attributes | |
PortConverterImpl & | converter |
Block * | body |
hw::PortInfo | origPort |
bool | isUntouchedFlag = false |
Base class for the port conversion of a particular port.
Abstracts the details of a particular port conversion from the port layout. Subclasses keep around port mapping information to use when updating instances.
Definition at line 97 of file PortConverter.h.
|
inline |
Definition at line 99 of file PortConverter.h.
|
virtualdefault |
|
protectedpure virtual |
Referenced by lowerPort().
|
protectedpure virtual |
Referenced by lowerPort().
|
inline |
Definition at line 127 of file PortConverter.h.
References getModule().
|
inlineprotected |
Definition at line 140 of file PortConverter.h.
References converter, and circt::hw::PortConverterImpl::getModule().
Referenced by getContext().
|
inlinevirtual |
Definition at line 106 of file PortConverter.h.
|
inline |
Definition at line 128 of file PortConverter.h.
References isUntouchedFlag.
|
inline |
Definition at line 112 of file PortConverter.h.
References buildInputSignals(), buildOutputSignals(), circt::hw::ModulePort::dir, origPort, and Output.
|
pure virtual |
Update an instance port to the new port information.
|
pure virtual |
|
protected |
Definition at line 137 of file PortConverter.h.
Referenced by fsm.MachineOp::__init__(), esi.ESIPureModuleOp::add_entry_block(), handshake.FuncOp::add_entry_block(), and hw.HWModuleOp::add_entry_block().
|
protected |
Definition at line 136 of file PortConverter.h.
Referenced by getModule().
|
protected |
Definition at line 146 of file PortConverter.h.
Referenced by isUntouched().
|
protected |
Definition at line 138 of file PortConverter.h.
Referenced by lowerPort().