Assembly
assembly
AssemblyInstructionArg: TypeAlias = IntegerAttr | SSAValue | X86RegisterType | str | int | LabelAttr
module-attribute
assembly_arg_str(arg: AssemblyInstructionArg) -> str
Source code in xdsl/dialects/x86/assembly.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |
parse_immediate_value(parser: Parser, integer_type: IntegerType | IndexType) -> IntegerAttr[IntegerType | IndexType] | LabelAttr
Source code in xdsl/dialects/x86/assembly.py
35 36 37 38 39 40 41 | |
parse_optional_immediate_value(parser: Parser, integer_type: IntegerType | IndexType) -> IntegerAttr[IntegerType | IndexType] | LabelAttr | None
Parse an optional immediate value. If an integer is parsed, an integer attr with the specified type is created.
Source code in xdsl/dialects/x86/assembly.py
44 45 46 47 48 49 50 51 52 53 | |
print_immediate_value(printer: Printer, immediate: IntegerAttr | LabelAttr)
Source code in xdsl/dialects/x86/assembly.py
56 57 58 59 60 61 | |
memory_access_str(register: AssemblyInstructionArg, offset: IntegerAttr) -> str
Source code in xdsl/dialects/x86/assembly.py
64 65 66 67 68 69 70 71 72 73 74 | |
print_type_pair(printer: Printer, value: SSAValue) -> None
Source code in xdsl/dialects/x86/assembly.py
77 78 79 80 | |
parse_type_pair(parser: Parser) -> SSAValue
Source code in xdsl/dialects/x86/assembly.py
83 84 85 86 87 | |
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
Source code in xdsl/dialects/x86/assembly.py
90 91 92 93 94 95 96 97 98 99 100 | |