qat.experimental.dialect.q1.ir.emission_context module
Emission context for Q1 assembly generation.
- class EmissionContext(emit_debug_info=False)
Bases:
objectControls which optional annotations are included during Q1 assembly emission.
Pass a customised instance to
assembly_line()oremit_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) – WhenTrue, debug-info inline comments derived fromDebugInfoAttrare appended to each instruction. Defaults toFalsefor comment-free output suitable for production upload.
-
emit_debug_info:
bool= False