CIRCT  20.0.0git
Static Public Member Functions | List of all members
hw.ModuleLike Class Reference

Static Public Member Functions

def init (op, name, input_ports=[], output_ports=[], *parameters=[], attributes={}, body_builder=None, loc=None, ip=None)
 
def type (op)
 
def name (op)
 
def is_external (op)
 
list[ParamDeclAttr] parameters (op)
 
def instantiate (op, str name, Dict[str, object] parameters={}, results=None, sym_name=None, loc=None, ip=None, **kwargs)
 

Detailed Description

Custom Python helper class for module-like operations.

Definition at line 113 of file hw.py.

Member Function Documentation

◆ init()

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().

◆ instantiate()

def hw.ModuleLike.instantiate (   op,
str  name,
Dict[str, object]   parameters = {},
  results = None,
  sym_name = None,
  loc = None,
  ip = None,
**  kwargs 
)
static

Definition at line 208 of file hw.py.

◆ is_external()

def hw.ModuleLike.is_external (   op)
static

Definition at line 200 of file hw.py.

Referenced by hw.HWModuleOp.add_entry_block().

◆ name()

def hw.ModuleLike.name (   op)
static

Definition at line 196 of file hw.py.

◆ parameters()

list[ParamDeclAttr] hw.ModuleLike.parameters (   op)
static

Definition at line 204 of file hw.py.

◆ type()

def hw.ModuleLike.type (   op)
static

The documentation for this class was generated from the following file: