qat.experimental.dialect.q1.ir.arg_format module
Mixin for Q1 assembly argument value types.
- class WithArgument
Bases:
objectMixin for types that can render themselves as a Q1 assembly argument string.
Apply this mixin to any argument-value type that should participate in
print_arg(). Concrete classes must implementprint_arg()to return the assembly text for their value.Classes that use this mixin:
LabelAttr,Q1Imm(and all immediate subclasses),Q1RegisterType(and all register subclasses).- print_arg()
Return the textual form of this value as a Q1 assembly argument.
- Return type:
str- Returns:
Textual representation of this value for assembly emission.