Assembly printer
assembly_printer
¶
AssemblyPrinter
dataclass
¶
Bases: BasePrinter[str]
Source code in xdsl/backend/assembly_printer.py
AssemblyPrintable
dataclass
¶
Bases: Operation, ABC
Base class for operations that can be a part of assembly printing.
Source code in xdsl/backend/assembly_printer.py
OneLineAssemblyPrintable
dataclass
¶
Bases: AssemblyPrintable, ABC
Base class for operations that can be printed in one line of assembly, or not printed at all.
Source code in xdsl/backend/assembly_printer.py
assembly_line() -> str | None
abstractmethod
¶
Returns the line that should be printed in assembly, or None to not be
printed.
RegisterNameSpec
¶
Bases: ABC
Abstract base class for classes that provide the name for registers. On some targets, a single register may be accessed via multiple names, subclass this to specify how the access should be printed in assembly.
Source code in xdsl/backend/assembly_printer.py
reg(value: SSAValue, spec: RegisterNameSpec | None = None) -> str
¶
A wrapper around SSAValue to be printed in assembly. Only valid if the type of the value is a RegisterType.