qat.experimental.dialect.q1.ir.emission_context module

Emission context for Q1 assembly generation.

class EmissionContext(emit_debug_info=False)

Bases: object

Controls which optional annotations are included during Q1 assembly emission.

Pass a customised instance to assembly_line() or emit_program() to select which annotations appear in the output. Adding a new emission flag requires only a new field here; no other files need to change.

Parameters:

emit_debug_info (bool) – When True, debug-info inline comments derived from DebugInfoAttr are appended to each instruction. Defaults to False for comment-free output suitable for production upload.

emit_debug_info: bool = False