Assembly
assembly
¶
AssemblyInstructionArg: TypeAlias = IntegerAttr | str | StringAttr
module-attribute
¶
assembly_arg_str(arg: AssemblyInstructionArg) -> str
¶
memory_access_str(register: SSAValue, offset: IntegerAttr) -> str
¶
Source code in xdsl/dialects/x86/assembly.py
broadcast_memory_access_str(register: SSAValue, offset: IntegerAttr, broadcast: str) -> str
¶
e.g. [rsi+512]{1to8}
The lane count depends on both the element width and the width of the register bank the instruction is allocated to, so it is computed by the operation rather than drawn from a fixed set.
Source code in xdsl/dialects/x86/assembly.py
print_type_pair(printer: Printer, value: SSAValue) -> None
¶
parse_type_pair(parser: Parser) -> SSAValue
¶
masked_memory_access_str(register: SSAValue, offset: IntegerAttr, mask: SSAValue) -> str
¶
Returns string for asm printing of a memory access followed by the {k}
specifier in AVX512 masked stores, e.g. [rdx+8] {k1}.
Source code in xdsl/dialects/x86/assembly.py
masked_source_str(reg_in: SSAValue, mask: SSAValue, z: UnitAttr | None) -> str
¶
Returns string for asm printing of the register followed by the {k} (and optionally {z}) specifiers, in AVX512 masked operations