ml_switcheroo.core.mlir.gen_statements ====================================== .. py:module:: ml_switcheroo.core.mlir.gen_statements .. autoapi-nested-parse:: Statement Generation Mixin for MLIR->Python. This module implements the transformation logic for structural MLIR operations (`sw.module`, `sw.func`, `sw.setattr`, `sw.return`) into Python LibCST statements. It operates as a mixin to be combined with expression generation logic in the main generator. Classes ------- .. autoapisummary:: ml_switcheroo.core.mlir.gen_statements.StatementGeneratorMixin Module Contents --------------- .. py:class:: StatementGeneratorMixin Bases: :py:obj:`ml_switcheroo.core.mlir.gen_base.BaseGeneratorMixin` Mixin class for generating LibCST Statements from MLIR Operations. .. py:attribute:: ctx :type: ml_switcheroo.core.mlir.naming.NamingContext .. py:attribute:: usage_counts :type: collections.defaultdict .. py:attribute:: usage_consumers :type: dict