copapy.backend.add_read_ops#

copapy.backend.add_read_ops(node_list)#

Add read node before each op where arguments are not already positioned correctly in the registers

Parameters:

node_list (list[Node]) – List of nodes in the order of execution

Return type:

Generator[tuple[Net | None, Node], None, None]

Returns:

Yields tuples of a net and a node. The net is the result net for the node. If the node has no result net None is returned in the tuple.