Custom Python helper class for module-like operations.
Definition at line 113 of file hw.py.
def hw.ModuleLike.init |
( |
|
op, |
|
|
|
name, |
|
|
|
input_ports = [] , |
|
|
|
output_ports = [] , |
|
|
* |
parameters = [] , |
|
|
|
attributes = {} , |
|
|
|
body_builder = None , |
|
|
|
loc = None , |
|
|
|
ip = None |
|
) |
| |
|
static |
Create a module-like with the provided `name`, `input_ports`, and
`output_ports`.
- `name` is a string representing the module name.
- `input_ports` is a list of pairs of string names and mlir.ir types.
- `output_ports` is a list of pairs of string names and mlir.ir types.
- `body_builder` is an optional callback, when provided a new entry block
is created and the callback is invoked with the new op as argument within
an InsertionPoint context already set for the block. The callback is
expected to insert a terminator in the block.
Definition at line 117 of file hw.py.
References hw._create_output_op().