Ops
ops
¶
The x86 dialect contains operations that represent x86 assembly operations.
In x86, the assembly operations may have different meaning depending on the types of
arguments.
For example, the mov instruction can assign
an immediate value to a register, or move the contents of another register.
In order to disambiguate the two, we use a mnemonic in the operation name to communicate
which operands are expected, for example x86.ds.mov is the version that moves the
contents of one register to another, and x86.di.mov is the version that sets the
immediate value passed in to the register.
The mnemonic encodes the types of the assembly instruction arguments, in order.
Here are the possible mnemonic values and what they stand for:
s: Source registerd: Destination registerk: Mask registerr: Register used both as a source and destinationi: Immediate valuem: Memoryc: Condition
This dialect is structured into abstract base classes, which are prefixed with the
mnemonic that corresponds to the subclassing operations (e.g. DS_Operation).
R1InvT = TypeVar('R1InvT', bound=X86RegisterType)
module-attribute
¶
R2InvT = TypeVar('R2InvT', bound=X86RegisterType)
module-attribute
¶
R3InvT = TypeVar('R3InvT', bound=X86RegisterType)
module-attribute
¶
R4InvT = TypeVar('R4InvT', bound=X86RegisterType)
module-attribute
¶
SI64: TypeAlias = IntegerType[Literal[64], Literal[Signedness.SIGNED]]
module-attribute
¶
SI32: TypeAlias = IntegerType[Literal[32], Literal[Signedness.SIGNED]]
module-attribute
¶
si64: SI64 = IntegerType(64, Signedness.SIGNED)
module-attribute
¶
si32: SI32 = IntegerType(32, Signedness.SIGNED)
module-attribute
¶
UI8: TypeAlias = IntegerType[Literal[8], Literal[Signedness.UNSIGNED]]
module-attribute
¶
ui8: UI8 = IntegerType(8, Signedness.UNSIGNED)
module-attribute
¶
X86AsmOperation
dataclass
¶
Bases: IRDLOperation, OneLineAssemblyPrintable, ABC
Base class for operations that can be a part of x86 assembly printing.
Source code in xdsl/dialects/x86/ops.py
X86RegisterAllocatableOperation
dataclass
¶
Bases: IRDLOperation, RegisterAllocatableOperation, ABC
Base class for x86 operations that can take part in register allocation.
Source code in xdsl/dialects/x86/ops.py
X86HasRegisterConstraints
dataclass
¶
Bases: X86RegisterAllocatableOperation, HasRegisterConstraints, ABC
Base class for x86 operations with register constraints.
By default, all operands are "in", and all results are "out", subclasses must
override get_register_constraints if some of the results must be in the same
registers as operands.
Source code in xdsl/dialects/x86/ops.py
get_register_constraints() -> RegisterConstraints
¶
Source code in xdsl/dialects/x86/ops.py
X86CustomFormatOperation
dataclass
¶
Bases: IRDLOperation, ABC
Source code in xdsl/dialects/x86/ops.py
parse(parser: Parser) -> Self
classmethod
¶
Source code in xdsl/dialects/x86/ops.py
parse_unresolved_operands(parser: Parser) -> list[UnresolvedOperand]
classmethod
¶
Parse a list of comma separated unresolved operands. Notice that this method will consume trailing comma.
Source code in xdsl/dialects/x86/ops.py
custom_parse_attributes(parser: Parser) -> dict[str, Attribute]
classmethod
¶
Parse attributes with custom syntax. Subclasses may override this method.
parse_op_type(parser: Parser) -> tuple[Sequence[Attribute], Sequence[Attribute]]
classmethod
¶
print(printer: Printer) -> None
¶
Source code in xdsl/dialects/x86/ops.py
custom_print_attributes(printer: Printer) -> AbstractSet[str]
¶
Print attributes with custom syntax. Return the names of the attributes printed. Subclasses may override this method.
Source code in xdsl/dialects/x86/ops.py
X86Instruction
dataclass
¶
Bases: X86AsmOperation, X86HasRegisterConstraints
Base class for operations that can be a part of x86 assembly printing. Must represent an instruction in the x86 instruction set. The name of the operation will be used as the x86 assembly instruction name.
Source code in xdsl/dialects/x86/ops.py
traits = traits_def(RegisterAllocatedMemoryEffect())
class-attribute
instance-attribute
¶
comment = opt_attr_def(StringAttr)
class-attribute
instance-attribute
¶
An optional comment that will be printed along with the instruction.
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
abstractmethod
¶
The arguments to the instruction, in the order they should be printed in the assembly.
assembly_instruction_name() -> str
¶
By default, the name of the instruction is the same as the name of the operation.
assembly_line() -> str | None
¶
Source code in xdsl/dialects/x86/ops.py
RS_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT]
A base class for x86 operations that have one register that is read and written to, and one source register.
Source code in xdsl/dialects/x86/ops.py
register_in = operand_def(R1InvT)
class-attribute
instance-attribute
¶
register_out: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
source = operand_def(R2InvT)
class-attribute
instance-attribute
¶
assembly_format = '$register_in `,` $source attr-dict `:` `(` type($register_in) `,` type($source) `)` `->` type($register_out)'
class-attribute
instance-attribute
¶
__init__(register_in: Operation | SSAValue, source: Operation | SSAValue, *, comment: str | StringAttr | None = None, register_out: R1InvT | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
DS_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT]
A base class for x86 operations that have one destination register and one source register.
Source code in xdsl/dialects/x86/ops.py
destination: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
source = operand_def(R2InvT)
class-attribute
instance-attribute
¶
assembly_format = '$source attr-dict `:` `(` type($source) `)` `->` type($destination)'
class-attribute
instance-attribute
¶
__init__(source: Operation | SSAValue, *, comment: str | StringAttr | None = None, destination: R1InvT)
¶
Source code in xdsl/dialects/x86/ops.py
DSK_Operation
¶
Bases: X86Instruction, ABC
A base class for x86 operations that have one destination register and one source register.
Source code in xdsl/dialects/x86/ops.py
destination: OpResult[X86VectorRegisterType] = result_def(X86VectorRegisterType)
class-attribute
instance-attribute
¶
source = operand_def(X86VectorRegisterType)
class-attribute
instance-attribute
¶
mask_reg = operand_def(AVX512MaskRegisterType)
class-attribute
instance-attribute
¶
z = opt_attr_def(UnitAttr)
class-attribute
instance-attribute
¶
assembly_format = '$source `,` $mask_reg attr-dict `:` `(` type($source) `,` type($mask_reg) `)` `->` type($destination)'
class-attribute
instance-attribute
¶
__init__(source: Operation | SSAValue, mask_reg: Operation | SSAValue, *, z: bool = False, comment: str | StringAttr | None = None, destination: X86VectorRegisterType)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
DK_Operation
¶
Bases: X86Instruction, X86CustomFormatOperation, HasRegisterConstraints, ABC
A base class for x86 operations that have one general purpose destination register and one writemask source register.
Source code in xdsl/dialects/x86/ops.py
destination: OpResult[GeneralRegisterType] = result_def(GeneralRegisterType)
class-attribute
instance-attribute
¶
source = operand_def(AVX512MaskRegisterType)
class-attribute
instance-attribute
¶
__init__(source: Operation | SSAValue, *, comment: str | StringAttr | None = None, destination: GeneralRegisterType)
¶
Source code in xdsl/dialects/x86/ops.py
get_register_constraints() -> RegisterConstraints
¶
KS_Operation
¶
Bases: X86Instruction, X86CustomFormatOperation, HasRegisterConstraints, ABC
A base class for x86 operations that have one general purpose destination register and one writemask source register.
Source code in xdsl/dialects/x86/ops.py
destination: OpResult[AVX512MaskRegisterType] = result_def(AVX512MaskRegisterType)
class-attribute
instance-attribute
¶
source = operand_def(GeneralRegisterType)
class-attribute
instance-attribute
¶
__init__(source: Operation | SSAValue, *, comment: str | StringAttr | None = None, destination: AVX512MaskRegisterType)
¶
Source code in xdsl/dialects/x86/ops.py
get_register_constraints() -> RegisterConstraints
¶
R_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT]
A base class for x86 operations that have one register that is read and written to.
Source code in xdsl/dialects/x86/ops.py
register_in = operand_def(R1InvT)
class-attribute
instance-attribute
¶
register_out: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
assembly_format = '$register_in attr-dict `:` `(` type($register_in) `)` `->` type($register_out)'
class-attribute
instance-attribute
¶
__init__(register_in: SSAValue[R1InvT], *, comment: str | StringAttr | None = None, register_out: R1InvT | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
RM_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT]
A base class for x86 operations that have one register read and written to and one memory access with an optional offset.
Source code in xdsl/dialects/x86/ops.py
register_in = operand_def(R1InvT)
class-attribute
instance-attribute
¶
register_out: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
memory = operand_def(R2InvT)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[I64], default_value=IntegerAttr(0, i64))
class-attribute
instance-attribute
¶
traits = traits_def(MemoryReadEffect())
class-attribute
instance-attribute
¶
assembly_format = '$register_in `,` `[` $memory (`+` $memory_offset^)? `]` attr-dict `:` `(` type($register_in) `,` type($memory) `)` `->` type($register_out)'
class-attribute
instance-attribute
¶
__init__(register_in: Operation | SSAValue, memory: Operation | SSAValue, memory_offset: int | IntegerAttr[I64], *, comment: str | StringAttr | None = None, register_out: R1InvT | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
DM_OperationHasCanonicalizationPatterns
dataclass
¶
Bases: HasCanonicalizationPatternsTrait
Source code in xdsl/dialects/x86/ops.py
get_canonicalization_patterns() -> tuple[RewritePattern, ...]
classmethod
¶
DM_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT]
A base class for x86 operations that load from memory into a destination register.
Source code in xdsl/dialects/x86/ops.py
destination: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
memory = operand_def(R2InvT)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[I64], default_value=IntegerAttr(0, i64))
class-attribute
instance-attribute
¶
traits = traits_def(DM_OperationHasCanonicalizationPatterns(), MemoryReadEffect())
class-attribute
instance-attribute
¶
assembly_format = '` ` `[` $memory (`+` $memory_offset^)? `]` attr-dict `:` functional-type($memory, $destination)'
class-attribute
instance-attribute
¶
__init__(memory: Operation | SSAValue, memory_offset: int | IntegerAttr, *, comment: str | StringAttr | None = None, destination: R1InvT)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
DMK_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT]
A base class for x86 AVX512 operations that have one destination register d that is written to, a source register m that contains a pointer, a constant offset, and a mask register k. The z attribute enables zero masking, which sets the elements of the destination register to zero where the corresponding bit in the mask is zero.
Source code in xdsl/dialects/x86/ops.py
destination = result_def(X86VectorRegisterType)
class-attribute
instance-attribute
¶
memory = operand_def(R1InvT)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[I64], default_value=IntegerAttr(0, i64))
class-attribute
instance-attribute
¶
mask_reg = operand_def(AVX512MaskRegisterType)
class-attribute
instance-attribute
¶
z = opt_attr_def(UnitAttr)
class-attribute
instance-attribute
¶
traits = traits_def(MemoryReadEffect())
class-attribute
instance-attribute
¶
assembly_format = '`[` $memory (`+` $memory_offset^)? `]` `,` $mask_reg attr-dict `:` `(` type($memory) `,` type($mask_reg) `)` `->` type($destination)'
class-attribute
instance-attribute
¶
__init__(memory: Operation | SSAValue, mask_reg: Operation | SSAValue, memory_offset: int | IntegerAttr, *, z: bool = False, comment: str | StringAttr | None = None, destination: X86VectorRegisterType)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
Source code in xdsl/dialects/x86/ops.py
DI_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT]
A base class for x86 operations that have one destination register and an immediate value.
Source code in xdsl/dialects/x86/ops.py
immediate = attr_def(IntegerAttr[SI32])
class-attribute
instance-attribute
¶
destination: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
assembly_format = '$immediate attr-dict `:` `(` `)` `->` type($destination)'
class-attribute
instance-attribute
¶
__init__(immediate: int | IntegerAttr[SI32], *, comment: str | StringAttr | None = None, destination: R1InvT)
¶
Source code in xdsl/dialects/x86/ops.py
RI_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT]
A base class for x86 operations that have one register that is read and written to and an immediate value.
Source code in xdsl/dialects/x86/ops.py
register_in = operand_def(R1InvT)
class-attribute
instance-attribute
¶
register_out: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
immediate = attr_def(IntegerAttr[SI32])
class-attribute
instance-attribute
¶
assembly_format = '$register_in `,` $immediate attr-dict `:` `(` type($register_in) `)` `->` type($register_out)'
class-attribute
instance-attribute
¶
__init__(register_in: Operation | SSAValue, immediate: int | IntegerAttr[SI32], *, comment: str | StringAttr | None = None, register_out: R1InvT | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
MS_OperationHasCanonicalizationPatterns
dataclass
¶
Bases: HasCanonicalizationPatternsTrait
Source code in xdsl/dialects/x86/ops.py
get_canonicalization_patterns() -> tuple[RewritePattern, ...]
classmethod
¶
MS_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT]
A base class for x86 operations that write one source register to a memory destination. Read-modify-write subclasses must additionally declare a memory read.
Source code in xdsl/dialects/x86/ops.py
memory = operand_def(R1InvT)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[I64], default_value=IntegerAttr(0, i64))
class-attribute
instance-attribute
¶
source = operand_def(R2InvT)
class-attribute
instance-attribute
¶
traits = traits_def(MS_OperationHasCanonicalizationPatterns(), MemoryWriteEffect())
class-attribute
instance-attribute
¶
assembly_format = '` ` `[` $memory (`+` $memory_offset^)? `]` `,` $source attr-dict `:` `(` type($memory) `,` type($source) `)` `->` `(` `)`'
class-attribute
instance-attribute
¶
__init__(memory: Operation | SSAValue, source: Operation | SSAValue, memory_offset: int | IntegerAttr[I64], *, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
MSK_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT]
A base class for x86 AVX512 operations that have one destination register that is written to, a memory operand (with optional offset), a source register, and a mask register. The z attribute enables zero-masking, which sets the elements of the destination register to zero where the mask is zero.
Typical usage: [m+offset]{k} := s where [m+offset] is the memory location addressed by the base register and offset, s is the source vector register, and k is the mask.
Source code in xdsl/dialects/x86/ops.py
memory = operand_def(R1InvT)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[I64], default_value=IntegerAttr(0, i64))
class-attribute
instance-attribute
¶
source = operand_def(R2InvT)
class-attribute
instance-attribute
¶
mask_reg = operand_def(AVX512MaskRegisterType)
class-attribute
instance-attribute
¶
z = opt_attr_def(UnitAttr)
class-attribute
instance-attribute
¶
traits = traits_def(MemoryWriteEffect())
class-attribute
instance-attribute
¶
assembly_format = '`[` $memory (`+` $memory_offset^)? `]` `,` $source `,` $mask_reg attr-dict `:` `(` type($memory) `,` type($source) `,` type($mask_reg) `)` `->` `(` `)`'
class-attribute
instance-attribute
¶
__init__(memory: Operation | SSAValue, source: Operation | SSAValue, mask_reg: Operation | SSAValue, memory_offset: int | IntegerAttr, *, z: bool = False, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
MI_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT]
A base class for x86 operations that have one memory reference and an immediate value.
Source code in xdsl/dialects/x86/ops.py
memory = operand_def(R1InvT)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[SI64], default_value=IntegerAttr(0, si64))
class-attribute
instance-attribute
¶
immediate = attr_def(IntegerAttr[SI32])
class-attribute
instance-attribute
¶
traits = traits_def(MemoryReadEffect(), MemoryWriteEffect())
class-attribute
instance-attribute
¶
assembly_format = '` ` `[` $memory (`+` $memory_offset^)? `]` `,` $immediate attr-dict `:` `(` type($memory) `)` `->` `(` `)`'
class-attribute
instance-attribute
¶
__init__(memory: Operation | SSAValue, memory_offset: int | IntegerAttr[SI64], immediate: int | IntegerAttr[SI32], *, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
DSI_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT]
A base class for x86 operations that have one destination register, one source register and an immediate value.
Source code in xdsl/dialects/x86/ops.py
destination: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
source = operand_def(R2InvT)
class-attribute
instance-attribute
¶
immediate = attr_def(IntegerAttr[SI32])
class-attribute
instance-attribute
¶
assembly_format = '$source `,` $immediate attr-dict `:` `(` type($source) `)` `->` type($destination)'
class-attribute
instance-attribute
¶
__init__(source: Operation | SSAValue, immediate: int | IntegerAttr[SI32], *, comment: str | StringAttr | None = None, destination: R1InvT)
¶
Source code in xdsl/dialects/x86/ops.py
DSI8_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT]
A base class for x86 operations that have one destination register, one source register, and an unsigned 8-bit immediate value.
Source code in xdsl/dialects/x86/ops.py
destination: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
source = operand_def(R2InvT)
class-attribute
instance-attribute
¶
immediate = prop_def(IntegerAttr[UI8])
class-attribute
instance-attribute
¶
assembly_format = '$source `,` $immediate attr-dict `:` functional-type($source, $destination)'
class-attribute
instance-attribute
¶
__init__(source: Operation | SSAValue, immediate: int | IntegerAttr[UI8], *, comment: str | StringAttr | None = None, destination: R1InvT)
¶
Source code in xdsl/dialects/x86/ops.py
DMI_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT]
A base class for x86 operations that have one destination register, one memory reference and an immediate value.
Source code in xdsl/dialects/x86/ops.py
destination: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
memory = operand_def(R2InvT)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[SI64], default_value=IntegerAttr(0, si64))
class-attribute
instance-attribute
¶
immediate = attr_def(IntegerAttr[SI32])
class-attribute
instance-attribute
¶
traits = traits_def(MemoryReadEffect())
class-attribute
instance-attribute
¶
assembly_format = '` ` `[` $memory (`+` $memory_offset^)? `]` `,` $immediate attr-dict `:` `(` type($memory) `)` `->` type($destination)'
class-attribute
instance-attribute
¶
__init__(memory: Operation | SSAValue, immediate: int | IntegerAttr[SI32], memory_offset: int | IntegerAttr[SI64], *, comment: str | StringAttr | None = None, destination: R1InvT)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
Source code in xdsl/dialects/x86/ops.py
M_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT]
A base class for x86 operations with a memory reference.
Source code in xdsl/dialects/x86/ops.py
memory = operand_def(R1InvT)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[SI64], default_value=IntegerAttr(0, si64))
class-attribute
instance-attribute
¶
traits = traits_def(MemoryWriteEffect(), MemoryReadEffect())
class-attribute
instance-attribute
¶
assembly_format = '` ` `[` $memory (`+` $memory_offset^)? `]` attr-dict `:` `(` type($memory) `)` `->` `(` `)`'
class-attribute
instance-attribute
¶
__init__(memory: Operation | SSAValue, memory_offset: int | IntegerAttr[SI64], *, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
ConditionalJumpOperation
¶
Bases: X86Instruction, X86CustomFormatOperation, ABC
A base class for Jcc operations.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 | |
rflags = operand_def(RFLAGS)
class-attribute
instance-attribute
¶
then_values = var_operand_def(X86RegisterType)
class-attribute
instance-attribute
¶
else_values = var_operand_def(X86RegisterType)
class-attribute
instance-attribute
¶
irdl_options = (AttrSizedOperandSegments(),)
class-attribute
instance-attribute
¶
then_block = successor_def()
class-attribute
instance-attribute
¶
else_block = successor_def()
class-attribute
instance-attribute
¶
traits = traits_def(IsTerminator())
class-attribute
instance-attribute
¶
__init__(rflags: Operation | SSAValue, then_values: Sequence[SSAValue], else_values: Sequence[SSAValue], then_block: Successor, else_block: Successor, *, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
verify_() -> None
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg, ...]
¶
Source code in xdsl/dialects/x86/ops.py
print(printer: Printer) -> None
¶
Source code in xdsl/dialects/x86/ops.py
parse(parser: Parser) -> Self
classmethod
¶
Source code in xdsl/dialects/x86/ops.py
RSS_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT, R3InvT]
A base class for x86 operations that have one register that is read and written to, and two source registers.
Source code in xdsl/dialects/x86/ops.py
register_in = operand_def(R1InvT)
class-attribute
instance-attribute
¶
register_out: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
source1 = operand_def(R2InvT)
class-attribute
instance-attribute
¶
source2 = operand_def(R3InvT)
class-attribute
instance-attribute
¶
assembly_format = '$register_in `,` $source1 `,` $source2 attr-dict `:` `(` type($register_in) `,` type($source1) `,` type($source2) `)` `->` type($register_out)'
class-attribute
instance-attribute
¶
__init__(register_in: SSAValue[R1InvT], source1: Operation | SSAValue, source2: Operation | SSAValue, *, comment: str | StringAttr | None = None, register_out: R1InvT | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
RSSK_Operation
¶
Bases: X86Instruction, ABC
A base class for x86 AVX512 operations that have one register r that is read and written to, and two source registers s1 and s2, with mask register k. The z attribute enables zero masking, which sets the elements of the destination register to zero where the corresponding bit in the mask is zero.
Source code in xdsl/dialects/x86/ops.py
T: VarConstraint = VarConstraint('T', base(X86VectorRegisterType))
class-attribute
¶
register_in = operand_def(T)
class-attribute
instance-attribute
¶
register_out = result_def(T)
class-attribute
instance-attribute
¶
source1 = operand_def(X86VectorRegisterType)
class-attribute
instance-attribute
¶
source2 = operand_def(X86VectorRegisterType)
class-attribute
instance-attribute
¶
mask_reg = operand_def(AVX512MaskRegisterType)
class-attribute
instance-attribute
¶
z = opt_attr_def(UnitAttr)
class-attribute
instance-attribute
¶
assembly_format = '$register_in `,` $source1 `,` $source2 `,` $mask_reg attr-dict `:` `(` type($register_in) `,` type($source1) `,` type($source2) `,` type($mask_reg) `)` `->` type($register_out)'
class-attribute
instance-attribute
¶
__init__(register_in: SSAValue[R1InvT], source1: Operation | SSAValue, source2: Operation | SSAValue, mask_reg: Operation | SSAValue, *, z: bool = False, comment: str | StringAttr | None = None, register_out: R1InvT | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
get_register_constraints() -> RegisterConstraints
¶
DSS_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT, R3InvT]
A base class for x86 operations that have one destination register and two source registers.
Source code in xdsl/dialects/x86/ops.py
destination: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
source1 = operand_def(R2InvT)
class-attribute
instance-attribute
¶
source2 = operand_def(R3InvT)
class-attribute
instance-attribute
¶
assembly_format = '$source1 `,` $source2 attr-dict `:` `(` type($source1) `,` type($source2) `)` `->` type($destination)'
class-attribute
instance-attribute
¶
__init__(source1: Operation | SSAValue[R2InvT], source2: Operation | SSAValue[R3InvT], *, comment: str | StringAttr | None = None, destination: R1InvT)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
DSM_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT, R3InvT]
A base class for x86 operations that have one destination register, one source register, and one memory source operand.
Source code in xdsl/dialects/x86/ops.py
destination: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
source = operand_def(R2InvT)
class-attribute
instance-attribute
¶
memory = operand_def(R3InvT)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[SI64], default_value=IntegerAttr(0, si64))
class-attribute
instance-attribute
¶
traits = traits_def(MemoryReadEffect())
class-attribute
instance-attribute
¶
assembly_format = '$source `,` `[` $memory (`+` $memory_offset^)? `]` attr-dict `:` `(` type($source) `,` type($memory) `)` `->` type($destination)'
class-attribute
instance-attribute
¶
__init__(source: Operation | SSAValue, memory: Operation | SSAValue, memory_offset: int | IntegerAttr[SI64], *, comment: str | StringAttr | None = None, destination: R1InvT)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
RSM_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT, R4InvT]
A base class for x86 operations that have one register that is read and written to, one source register and one memory source operand.
Source code in xdsl/dialects/x86/ops.py
register_in = operand_def(R1InvT)
class-attribute
instance-attribute
¶
register_out: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
source1 = operand_def(R2InvT)
class-attribute
instance-attribute
¶
memory = operand_def(R4InvT)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[SI64], default_value=IntegerAttr(0, si64))
class-attribute
instance-attribute
¶
traits = traits_def(MemoryReadEffect())
class-attribute
instance-attribute
¶
assembly_format = '$register_in `,` $source1 `,` `[` $memory (`+` $memory_offset^)? `]` attr-dict `:` `(` type($register_in) `,` type($source1) `,` type($memory) `)` `->` type($register_out)'
class-attribute
instance-attribute
¶
__init__(register_in: SSAValue[R1InvT], source1: Operation | SSAValue, memory: Operation | SSAValue, memory_offset: int | IntegerAttr[SI64], *, comment: str | StringAttr | None = None, register_out: R1InvT | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
Source code in xdsl/dialects/x86/ops.py
RSMB_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT, R4InvT]
A base class for x86 operations that have one register that is read and written to, one source register, and one memory source operand. When the broadcast attribute is set, the memory operand uses EVEX broadcast encoding.
Source code in xdsl/dialects/x86/ops.py
1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 | |
register_in = operand_def(R1InvT)
class-attribute
instance-attribute
¶
register_out: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
source1 = operand_def(R2InvT)
class-attribute
instance-attribute
¶
memory = operand_def(R4InvT)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[SI64], default_value=IntegerAttr(0, si64))
class-attribute
instance-attribute
¶
broadcast = opt_attr_def(UnitAttr)
class-attribute
instance-attribute
¶
traits = traits_def(MemoryReadEffect())
class-attribute
instance-attribute
¶
assembly_format = '$register_in `,` $source1 `,` `[` $memory (`+` $memory_offset^)? `]` attr-dict `:` `(` type($register_in) `,` type($source1) `,` type($memory) `)` `->` type($register_out)'
class-attribute
instance-attribute
¶
__init__(register_in: SSAValue[R1InvT], source1: Operation | SSAValue, memory: Operation | SSAValue, memory_offset: int | IntegerAttr[SI64], *, broadcast: bool = False, comment: str | StringAttr | None = None, register_out: R1InvT | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
lane_bitwidth() -> int
abstractmethod
classmethod
¶
The bitwidth of a single lane of the vector this operation operates on.
broadcast_modifier() -> str
¶
The EVEX broadcast modifier for this operation, e.g. 1to8.
The lane count is the register width divided by the lane width, so it
depends on the register bank this operation is allocated to: vfmadd231pd
broadcasts 1to2 on xmm, 1to4 on ymm and 1to8 on zmm.
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
Source code in xdsl/dialects/x86/ops.py
DSSI_Operation
¶
Bases: X86Instruction, ABC, Generic[R1InvT, R2InvT, R3InvT]
A base class for x86 operations that have one destination register, one source register and an immediate value.
Source code in xdsl/dialects/x86/ops.py
destination: OpResult[R1InvT] = result_def(R1InvT)
class-attribute
instance-attribute
¶
source0 = operand_def(R2InvT)
class-attribute
instance-attribute
¶
source1 = operand_def(R3InvT)
class-attribute
instance-attribute
¶
immediate = attr_def(IntegerAttr[UI8])
class-attribute
instance-attribute
¶
assembly_format = '$source0 `,` $source1 `,` $immediate attr-dict `:` `(` type($source0) `,` type($source1) `)` `->` type($destination)'
class-attribute
instance-attribute
¶
__init__(source0: Operation | SSAValue, source1: Operation | SSAValue, immediate: int | IntegerAttr[UI8], *, comment: str | StringAttr | None = None, destination: R1InvT)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
RS_AddOpHasCanonicalizationPatterns
dataclass
¶
Bases: HasCanonicalizationPatternsTrait
Source code in xdsl/dialects/x86/ops.py
get_canonicalization_patterns() -> tuple[RewritePattern, ...]
classmethod
¶
RS_AddOp
dataclass
¶
Bases: RS_Operation[GeneralRegisterType, GeneralRegisterType]
Adds the registers r and s and stores the result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
RS_SubOp
dataclass
¶
Bases: RS_Operation[GeneralRegisterType, GeneralRegisterType]
subtracts s from r and stores the result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rs.sub'
class-attribute
instance-attribute
¶
RS_ImulOp
dataclass
¶
Bases: RS_Operation[GeneralRegisterType, GeneralRegisterType]
Multiplies the registers r and s and stores the result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rs.imul'
class-attribute
instance-attribute
¶
RS_FAddOp
dataclass
¶
Bases: RS_Operation[GeneralRegisterType, GeneralRegisterType]
Adds the floating point values in registers r and s and stores the result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rs.fadd'
class-attribute
instance-attribute
¶
RS_FMulOp
dataclass
¶
Bases: RS_Operation[GeneralRegisterType, GeneralRegisterType]
Multiplies the floating point values in registers r and s and stores the result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rs.fmul'
class-attribute
instance-attribute
¶
RS_AndOp
dataclass
¶
Bases: RS_Operation[GeneralRegisterType, GeneralRegisterType]
bitwise and of r and s, stored in r
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rs.and'
class-attribute
instance-attribute
¶
RS_OrOp
dataclass
¶
Bases: RS_Operation[GeneralRegisterType, GeneralRegisterType]
bitwise or of r and s, stored in r
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rs.or'
class-attribute
instance-attribute
¶
RS_XorOp
dataclass
¶
Bases: RS_Operation[GeneralRegisterType, GeneralRegisterType]
bitwise xor of r and s, stored in r
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rs.xor'
class-attribute
instance-attribute
¶
DS_MovOpHasCanonicalizationPatterns
dataclass
¶
Bases: HasCanonicalizationPatternsTrait
Source code in xdsl/dialects/x86/ops.py
get_canonicalization_patterns() -> tuple[RewritePattern, ...]
classmethod
¶
DS_MovOp
dataclass
¶
Bases: DS_Operation[GeneralRegisterType, GeneralRegisterType]
Copies the value of s into r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
DS_VpbroadcastdOp
dataclass
¶
Bases: DS_Operation[X86VectorRegisterType, GeneralRegisterType]
Broadcast single precision floating-point scalar in s to d.
See external documentation
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ds.vpbroadcastd'
class-attribute
instance-attribute
¶
DS_VpbroadcastqOp
dataclass
¶
Bases: DS_Operation[X86VectorRegisterType, GeneralRegisterType]
Broadcast double precision floating-point scalar in s to d.
See external documentation
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ds.vpbroadcastq'
class-attribute
instance-attribute
¶
S_PushOp
¶
Bases: X86Instruction
Decreases %rsp and places s at the new memory location pointed to by %rsp.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.s.push'
class-attribute
instance-attribute
¶
rsp_in = operand_def(RSP)
class-attribute
instance-attribute
¶
rsp_out = result_def(RSP)
class-attribute
instance-attribute
¶
source = operand_def(GeneralRegisterType)
class-attribute
instance-attribute
¶
assembly_format = '$rsp_in `,` $source attr-dict `:` `(` type($rsp_in) `,` type($source) `)` `->` type($rsp_out)'
class-attribute
instance-attribute
¶
__init__(rsp_in: Operation | SSAValue, source: Operation | SSAValue, *, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
D_PopOp
¶
Bases: X86Instruction
Copies the value at the top of the stack into d and increases %rsp.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.d.pop'
class-attribute
instance-attribute
¶
rsp_in = operand_def(RSP)
class-attribute
instance-attribute
¶
rsp_out = result_def(RSP)
class-attribute
instance-attribute
¶
destination: OpResult[GeneralRegisterType] = result_def(GeneralRegisterType)
class-attribute
instance-attribute
¶
assembly_format = '$rsp_in attr-dict `:` `(` type($rsp_in) `)` `->` `(` type($rsp_out) `,` type($destination) `)`'
class-attribute
instance-attribute
¶
__init__(rsp_in: Operation | SSAValue, *, comment: str | StringAttr | None = None, destination: X86RegisterType)
¶
Source code in xdsl/dialects/x86/ops.py
R_NegOp
dataclass
¶
Bases: R_Operation[GeneralRegisterType]
Negates r and stores the result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.r.neg'
class-attribute
instance-attribute
¶
R_NotOp
dataclass
¶
Bases: R_Operation[GeneralRegisterType]
bitwise not of r, stored in r
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.r.not'
class-attribute
instance-attribute
¶
R_IncOp
dataclass
¶
Bases: R_Operation[GeneralRegisterType]
Increments r by 1 and stores the result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.r.inc'
class-attribute
instance-attribute
¶
R_DecOp
dataclass
¶
Bases: R_Operation[GeneralRegisterType]
Decrements r by 1 and stores the result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.r.dec'
class-attribute
instance-attribute
¶
S_IDivOp
¶
Bases: X86Instruction
Divides the value in RDX:RAX by s and stores the quotient in RAX and the remainder in RDX.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.s.idiv'
class-attribute
instance-attribute
¶
source = operand_def(X86RegisterType)
class-attribute
instance-attribute
¶
rdx_input = operand_def(RDX)
class-attribute
instance-attribute
¶
rax_input = operand_def(RAX)
class-attribute
instance-attribute
¶
rdx_output = result_def(RDX)
class-attribute
instance-attribute
¶
rax_output = result_def(RAX)
class-attribute
instance-attribute
¶
assembly_format = '$source `,` $rdx_input `,` $rax_input attr-dict `:` `(` type($source) `,` type($rdx_input) `,` type($rax_input) `)` `->` `(` type($rdx_output) `,` type($rax_output) `)`'
class-attribute
instance-attribute
¶
__init__(source: Operation | SSAValue, rdx_input: Operation | SSAValue, rax_input: Operation | SSAValue, *, comment: str | StringAttr | None = None, rdx_output: GeneralRegisterType, rax_output: GeneralRegisterType)
¶
Source code in xdsl/dialects/x86/ops.py
S_ImulOp
¶
Bases: X86Instruction
The source operand is multiplied by the value in the RAX register and the product is stored in the RDX:RAX registers.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.s.imul'
class-attribute
instance-attribute
¶
source = operand_def(GeneralRegisterType)
class-attribute
instance-attribute
¶
rax_input = operand_def(RAX)
class-attribute
instance-attribute
¶
rdx_output = result_def(RDX)
class-attribute
instance-attribute
¶
rax_output = result_def(RAX)
class-attribute
instance-attribute
¶
assembly_format = '$source `,` $rax_input attr-dict `:` `(` type($source) `,` type($rax_input) `)` `->` `(` type($rdx_output) `,` type($rax_output) `)`'
class-attribute
instance-attribute
¶
__init__(source: Operation | SSAValue, rax_input: Operation | SSAValue, *, comment: str | StringAttr | None = None, rdx_output: GeneralRegisterType, rax_output: GeneralRegisterType)
¶
Source code in xdsl/dialects/x86/ops.py
RM_AddOp
dataclass
¶
Bases: RM_Operation[GeneralRegisterType, GeneralRegisterType]
Adds the value from the memory location pointed to by m to r and stores the result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rm.add'
class-attribute
instance-attribute
¶
RM_SubOp
dataclass
¶
Bases: RM_Operation[GeneralRegisterType, GeneralRegisterType]
Subtracts the value from the memory location pointed to by m from r and stores the result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rm.sub'
class-attribute
instance-attribute
¶
RM_ImulOp
dataclass
¶
Bases: RM_Operation[GeneralRegisterType, GeneralRegisterType]
Multiplies the value from the memory location pointed to by m with r and stores the result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rm.imul'
class-attribute
instance-attribute
¶
RM_AndOp
dataclass
¶
Bases: RM_Operation[GeneralRegisterType, GeneralRegisterType]
bitwise and of r and [m], stored in r
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rm.and'
class-attribute
instance-attribute
¶
RM_OrOp
dataclass
¶
Bases: RM_Operation[GeneralRegisterType, GeneralRegisterType]
bitwise or of r and [m], stored in r
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rm.or'
class-attribute
instance-attribute
¶
RM_XorOp
dataclass
¶
Bases: RM_Operation[GeneralRegisterType, GeneralRegisterType]
bitwise xor of r and [m], stored in r
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rm.xor'
class-attribute
instance-attribute
¶
DM_MovOp
dataclass
¶
Bases: DM_Operation[GeneralRegisterType, GeneralRegisterType]
Copies the value from the memory location pointed to by source register m into destination register d.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dm.mov'
class-attribute
instance-attribute
¶
DM_LeaOp
dataclass
¶
Bases: DM_Operation[GeneralRegisterType, GeneralRegisterType]
Loads the effective address of the memory location pointed to by m into d.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dm.lea'
class-attribute
instance-attribute
¶
RI_AddOp
dataclass
¶
Bases: RI_Operation[GeneralRegisterType]
Adds the immediate value to r and stores the result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ri.add'
class-attribute
instance-attribute
¶
RI_SubOp
dataclass
¶
Bases: RI_Operation[GeneralRegisterType]
Subtracts the immediate value from r and stores the result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ri.sub'
class-attribute
instance-attribute
¶
RI_AndOp
dataclass
¶
Bases: RI_Operation[GeneralRegisterType]
bitwise and of r and immediate, stored in r
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ri.and'
class-attribute
instance-attribute
¶
RI_OrOp
dataclass
¶
Bases: RI_Operation[GeneralRegisterType]
bitwise or of r and immediate, stored in r
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ri.or'
class-attribute
instance-attribute
¶
RI_XorOp
dataclass
¶
Bases: RI_Operation[GeneralRegisterType]
bitwise xor of r and immediate, stored in r
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ri.xor'
class-attribute
instance-attribute
¶
DI_MovOp
dataclass
¶
Bases: DI_Operation[GeneralRegisterType]
Copies the immediate value into r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
MS_AddOp
dataclass
¶
Bases: MS_Operation[GeneralRegisterType, GeneralRegisterType]
Adds the value from s to the memory location pointed to by m.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
MS_SubOp
dataclass
¶
Bases: MS_Operation[GeneralRegisterType, GeneralRegisterType]
Subtracts the value from s from the memory location pointed to by m. [x[m]] = [x[m]] - x[s]
See external documentation.
Source code in xdsl/dialects/x86/ops.py
MS_AndOp
dataclass
¶
Bases: MS_Operation[GeneralRegisterType, GeneralRegisterType]
bitwise and of [m] and s [x[m]] = [x[m]] & x[s]
See external documentation.
Source code in xdsl/dialects/x86/ops.py
MS_OrOp
dataclass
¶
Bases: MS_Operation[GeneralRegisterType, GeneralRegisterType]
bitwise or of [m] and s [x[m]] = [x[m]] | x[s]
See external documentation.
Source code in xdsl/dialects/x86/ops.py
MS_XorOp
dataclass
¶
Bases: MS_Operation[GeneralRegisterType, GeneralRegisterType]
bitwise xor of [m] and s [x[m]] = [x[m]] ^ x[s]
See external documentation.
Source code in xdsl/dialects/x86/ops.py
MS_MovOp
dataclass
¶
Bases: MS_Operation[GeneralRegisterType, GeneralRegisterType]
Copies the value from s into the memory location pointed to by m. [x[m]] = x[s]
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ms.mov'
class-attribute
instance-attribute
¶
MI_AddOp
dataclass
¶
Bases: MI_Operation[GeneralRegisterType]
Adds the immediate value to the memory location pointed to by m. [x[m]] = [x[m]] + immediate
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.mi.add'
class-attribute
instance-attribute
¶
MI_SubOp
dataclass
¶
Bases: MI_Operation[GeneralRegisterType]
Subtracts the immediate value from the memory location pointed to by m. [x[m]] = [x[m]] - immediate
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.mi.sub'
class-attribute
instance-attribute
¶
MI_AndOp
dataclass
¶
Bases: MI_Operation[GeneralRegisterType]
bitwise and of immediate and [m], stored in [m]
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.mi.and'
class-attribute
instance-attribute
¶
MI_OrOp
dataclass
¶
Bases: MI_Operation[GeneralRegisterType]
bitwise or of immediate and [m], stored in [m]
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.mi.or'
class-attribute
instance-attribute
¶
MI_XorOp
dataclass
¶
Bases: MI_Operation[GeneralRegisterType]
bitwise xor of immediate and [m], stored in [m]
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.mi.xor'
class-attribute
instance-attribute
¶
MI_MovOp
dataclass
¶
Bases: MI_Operation[GeneralRegisterType]
Copies the immediate value into the memory location pointed to by m. [x[m]] = immediate
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.mi.mov'
class-attribute
instance-attribute
¶
DSI_ImulOp
dataclass
¶
Bases: DSI_Operation[GeneralRegisterType, GeneralRegisterType]
Multiplies the immediate value with the source register and stores the result in the destination register. x[d] = x[s] * immediate
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dsi.imul'
class-attribute
instance-attribute
¶
DMI_ImulOp
dataclass
¶
Bases: DMI_Operation[GeneralRegisterType, GeneralRegisterType]
Multiplies the immediate value with the memory location pointed to by m and stores the result in d. x[d] = [x[m]] * immediate
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dmi.imul'
class-attribute
instance-attribute
¶
M_PushOp
¶
Bases: X86Instruction
Decreases %rsp and places [m] at the new memory location pointed to by %rsp.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.m.push'
class-attribute
instance-attribute
¶
rsp_in = operand_def(RSP)
class-attribute
instance-attribute
¶
rsp_out = result_def(RSP)
class-attribute
instance-attribute
¶
memory = operand_def(X86RegisterType)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[I64], default_value=IntegerAttr(0, i64))
class-attribute
instance-attribute
¶
traits = traits_def(MemoryWriteEffect())
class-attribute
instance-attribute
¶
assembly_format = '$rsp_in `,` `[` $memory (`+` $memory_offset^)? `]` attr-dict `:` `(` type($rsp_in) `,` type($memory) `)` `->` type($rsp_out)'
class-attribute
instance-attribute
¶
__init__(rsp_in: Operation | SSAValue, memory: Operation | SSAValue, *, comment: str | StringAttr | None = None, memory_offset: int | IntegerAttr, rsp_out: GeneralRegisterType)
¶
Source code in xdsl/dialects/x86/ops.py
M_PopOp
¶
Bases: X86Instruction
Copies the value at the top of the stack into [m] and increases %rsp. The value held by m is a pointer to the memory location where the value is stored. The only register modified by this operation is %rsp.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.m.pop'
class-attribute
instance-attribute
¶
rsp_in = operand_def(RSP)
class-attribute
instance-attribute
¶
memory = operand_def(GeneralRegisterType)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[I64], default_value=IntegerAttr(0, i64))
class-attribute
instance-attribute
¶
rsp_out = result_def(RSP)
class-attribute
instance-attribute
¶
traits = traits_def(MemoryWriteEffect())
class-attribute
instance-attribute
¶
assembly_format = '$rsp_in `,` `[` $memory (`+` $memory_offset^)? `]` attr-dict `:` `(` type($rsp_in) `,` type($memory) `)` `->` type($rsp_out)'
class-attribute
instance-attribute
¶
__init__(rsp_in: Operation | SSAValue, memory: Operation | SSAValue, *, comment: str | StringAttr | None = None, memory_offset: int | IntegerAttr, rsp_out: GeneralRegisterType)
¶
Source code in xdsl/dialects/x86/ops.py
M_NegOp
dataclass
¶
Bases: M_Operation[GeneralRegisterType]
Negates the value at the memory location pointed to by m.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.m.neg'
class-attribute
instance-attribute
¶
M_NotOp
dataclass
¶
Bases: M_Operation[GeneralRegisterType]
bitwise not of [m], stored in [m]
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.m.not'
class-attribute
instance-attribute
¶
M_IncOp
dataclass
¶
Bases: M_Operation[GeneralRegisterType]
Increments the value at the memory location pointed to by m. [x[m]] = [x[m]] + 1
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.m.inc'
class-attribute
instance-attribute
¶
M_DecOp
dataclass
¶
Bases: M_Operation[GeneralRegisterType]
Decrements the value at the memory location pointed to by m. [x[m]] = [x[m]] - 1
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.m.dec'
class-attribute
instance-attribute
¶
M_IDivOp
¶
Bases: X86Instruction
Divides the value in RDX:RAX by [m] and stores the quotient in RAX and the remainder in RDX.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.m.idiv'
class-attribute
instance-attribute
¶
memory = operand_def(X86RegisterType)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[I64], default_value=IntegerAttr(0, i64))
class-attribute
instance-attribute
¶
rdx_in = operand_def(RDX)
class-attribute
instance-attribute
¶
rdx_out = result_def(RDX)
class-attribute
instance-attribute
¶
rax_in = operand_def(RAX)
class-attribute
instance-attribute
¶
rax_out = result_def(RAX)
class-attribute
instance-attribute
¶
traits = traits_def(MemoryReadEffect())
class-attribute
instance-attribute
¶
assembly_format = '` ` `[` $memory (`+` $memory_offset^)? `]` `,` $rdx_in `,` $rax_in attr-dict `:` `(` type($memory) `,` type($rdx_in) `,` type($rax_in) `)` `->` `(` type($rdx_out) `,` type($rax_out) `)`'
class-attribute
instance-attribute
¶
__init__(memory: Operation | SSAValue, rdx_in: Operation | SSAValue, rax_in: Operation | SSAValue, memory_offset: int | IntegerAttr, *, comment: str | StringAttr | None = None, rdx_out: GeneralRegisterType, rax_out: GeneralRegisterType)
¶
Source code in xdsl/dialects/x86/ops.py
M_ImulOp
¶
Bases: X86Instruction
The source operand is multiplied by the value in the RAX register and the product is stored in the RDX:RAX registers. x[RDX:RAX] = x[RAX] * [x[m]]
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.m.imul'
class-attribute
instance-attribute
¶
memory = operand_def(GeneralRegisterType)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[I64], default_value=IntegerAttr(0, i64))
class-attribute
instance-attribute
¶
rdx_out = result_def(RDX)
class-attribute
instance-attribute
¶
rax_in = operand_def(RAX)
class-attribute
instance-attribute
¶
rax_out = result_def(RAX)
class-attribute
instance-attribute
¶
traits = traits_def(MemoryReadEffect())
class-attribute
instance-attribute
¶
assembly_format = '` ` `[` $memory (`+` $memory_offset^)? `]` `,` $rax_in attr-dict `:` `(` type($memory) `,` type($rax_in) `)` `->` `(` type($rdx_out) `,` type($rax_out) `)`'
class-attribute
instance-attribute
¶
__init__(memory: Operation | SSAValue, rax_in: Operation | SSAValue, memory_offset: int | IntegerAttr, *, comment: str | StringAttr | None = None, rdx_out: GeneralRegisterType, rax_out: GeneralRegisterType)
¶
Source code in xdsl/dialects/x86/ops.py
LabelOp
¶
Bases: X86AsmOperation, X86HasRegisterConstraints
The label operation is used to emit text labels (e.g. loop:) that are used as branch, unconditional jump targets and symbol offsets.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.label'
class-attribute
instance-attribute
¶
label = attr_def(StringAttr)
class-attribute
instance-attribute
¶
comment = opt_attr_def(StringAttr)
class-attribute
instance-attribute
¶
assembly_format = '$label attr-dict'
class-attribute
instance-attribute
¶
__init__(label: str | StringAttr, *, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
DirectiveOp
¶
Bases: X86AsmOperation, X86HasRegisterConstraints, X86CustomFormatOperation
The directive operation is used to represent a directive in the assembly code. (e.g. .globl; .type etc)
Source code in xdsl/dialects/x86/ops.py
2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 | |
name = 'x86.directive'
class-attribute
instance-attribute
¶
directive = attr_def(StringAttr)
class-attribute
instance-attribute
¶
value = opt_attr_def(StringAttr)
class-attribute
instance-attribute
¶
__init__(directive: str | StringAttr, value: str | StringAttr | None)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line() -> str | None
¶
Source code in xdsl/dialects/x86/ops.py
custom_parse_attributes(parser: Parser) -> dict[str, Attribute]
classmethod
¶
Source code in xdsl/dialects/x86/ops.py
custom_print_attributes(printer: Printer) -> AbstractSet[str]
¶
Source code in xdsl/dialects/x86/ops.py
print_op_type(printer: Printer) -> None
¶
C_JmpOp
¶
Bases: X86Instruction, X86CustomFormatOperation
Unconditional jump to the label specified in destination.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 | |
name = 'x86.c.jmp'
class-attribute
instance-attribute
¶
block_values = var_operand_def(X86RegisterType)
class-attribute
instance-attribute
¶
successor = successor_def()
class-attribute
instance-attribute
¶
traits = traits_def(IsTerminator())
class-attribute
instance-attribute
¶
__init__(block_values: Sequence[SSAValue], successor: Successor, *, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
verify_() -> None
¶
Source code in xdsl/dialects/x86/ops.py
print(printer: Printer) -> None
¶
Source code in xdsl/dialects/x86/ops.py
parse(parser: Parser) -> Self
classmethod
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg, ...]
¶
Source code in xdsl/dialects/x86/ops.py
FallthroughOp
¶
Bases: X86AsmOperation, X86HasRegisterConstraints, X86CustomFormatOperation
Continue execution into the next block. The successor of this operation must be immediately after this operation's parent.
Source code in xdsl/dialects/x86/ops.py
2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 | |
name = 'x86.fallthrough'
class-attribute
instance-attribute
¶
block_values = var_operand_def(X86RegisterType)
class-attribute
instance-attribute
¶
successor = successor_def()
class-attribute
instance-attribute
¶
traits = traits_def(IsTerminator(), NoMemoryEffect())
class-attribute
instance-attribute
¶
__init__(block_values: Sequence[SSAValue], successor: Successor, *, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
verify_() -> None
¶
Source code in xdsl/dialects/x86/ops.py
print(printer: Printer) -> None
¶
Source code in xdsl/dialects/x86/ops.py
parse(parser: Parser) -> Self
classmethod
¶
Source code in xdsl/dialects/x86/ops.py
SS_CmpOp
¶
Bases: X86Instruction
Compares the first source operand with the second source operand and sets the status flags in the EFLAGS register according to the results.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ss.cmp'
class-attribute
instance-attribute
¶
source1 = operand_def(X86RegisterType)
class-attribute
instance-attribute
¶
source2 = operand_def(X86RegisterType)
class-attribute
instance-attribute
¶
result = result_def(RFLAGS)
class-attribute
instance-attribute
¶
assembly_format = '$source1 `,` $source2 attr-dict `:` `(` type($source1) `,` type($source2) `)` `->` type($result)'
class-attribute
instance-attribute
¶
__init__(source1: Operation | SSAValue, source2: Operation | SSAValue, *, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
SM_CmpOp
¶
Bases: X86Instruction
Compares the first source operand with the second source operand and sets the status flags in the EFLAGS register according to the results.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.sm.cmp'
class-attribute
instance-attribute
¶
source = operand_def(GeneralRegisterType)
class-attribute
instance-attribute
¶
memory = operand_def(GeneralRegisterType)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[I64], default_value=IntegerAttr(0, i64))
class-attribute
instance-attribute
¶
result = result_def(RFLAGS)
class-attribute
instance-attribute
¶
traits = traits_def(MemoryReadEffect())
class-attribute
instance-attribute
¶
assembly_format = '$source `,` `[` $memory (`+` $memory_offset^)? `]` attr-dict `:` `(` type($source) `,` type($memory) `)` `->` type($result)'
class-attribute
instance-attribute
¶
__init__(source: Operation | SSAValue, memory: Operation | SSAValue, memory_offset: int | IntegerAttr, *, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
SI_CmpOp
¶
Bases: X86Instruction
Compares the first source operand with the second source operand and sets the status flags in the EFLAGS register according to the results.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.si.cmp'
class-attribute
instance-attribute
¶
source = operand_def(GeneralRegisterType)
class-attribute
instance-attribute
¶
immediate = attr_def(IntegerAttr[SI32])
class-attribute
instance-attribute
¶
result = result_def(RFLAGS)
class-attribute
instance-attribute
¶
assembly_format = '$source `,` $immediate attr-dict `:` `(` type($source) `)` `->` type($result)'
class-attribute
instance-attribute
¶
__init__(source: Operation | SSAValue, immediate: int | IntegerAttr[SI32], *, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
MS_CmpOp
¶
Bases: X86Instruction
Compares the first source operand with the second source operand and sets the status flags in the EFLAGS register according to the results.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ms.cmp'
class-attribute
instance-attribute
¶
memory = operand_def(GeneralRegisterType)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[I64], default_value=IntegerAttr(0, i64))
class-attribute
instance-attribute
¶
source = operand_def(GeneralRegisterType)
class-attribute
instance-attribute
¶
result = result_def(RFLAGS)
class-attribute
instance-attribute
¶
traits = traits_def(MemoryReadEffect())
class-attribute
instance-attribute
¶
assembly_format = '` ` `[` $memory (`+` $memory_offset^)? `]` `,` $source attr-dict `:` `(` type($memory) `,` type($source) `)` `->` type($result)'
class-attribute
instance-attribute
¶
__init__(memory: Operation | SSAValue, source: Operation | SSAValue, memory_offset: int | IntegerAttr, *, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
MI_CmpOp
¶
Bases: X86Instruction
Compares the first source operand with the second source operand and sets the status flags in the EFLAGS register according to the results.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.mi.cmp'
class-attribute
instance-attribute
¶
memory = operand_def(GeneralRegisterType)
class-attribute
instance-attribute
¶
memory_offset = attr_def(IntegerAttr[SI64], default_value=IntegerAttr(0, si64))
class-attribute
instance-attribute
¶
immediate = attr_def(IntegerAttr[SI32])
class-attribute
instance-attribute
¶
result = result_def(RFLAGS)
class-attribute
instance-attribute
¶
traits = traits_def(MemoryReadEffect())
class-attribute
instance-attribute
¶
assembly_format = '` ` `[` $memory (`+` $memory_offset^)? `]` `,` $immediate attr-dict `:`type($memory) `->` type($result)'
class-attribute
instance-attribute
¶
__init__(memory: Operation | SSAValue, memory_offset: int | IntegerAttr[SI64], immediate: int | IntegerAttr[SI32], *, comment: str | StringAttr | None = None)
¶
Source code in xdsl/dialects/x86/ops.py
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
C_JaOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if above (CF=0 and ZF=0).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.ja'
class-attribute
instance-attribute
¶
C_JaeOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if above or equal (CF=0).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jae'
class-attribute
instance-attribute
¶
C_JbOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if below (CF=1).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jb'
class-attribute
instance-attribute
¶
C_JbeOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if below or equal (CF=1 or ZF=1).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jbe'
class-attribute
instance-attribute
¶
C_JcOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if carry (CF=1).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jc'
class-attribute
instance-attribute
¶
C_JeOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if equal (ZF=1).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.je'
class-attribute
instance-attribute
¶
C_JgOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if greater (ZF=0 and SF=OF).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jg'
class-attribute
instance-attribute
¶
C_JgeOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if greater or equal (SF=OF).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jge'
class-attribute
instance-attribute
¶
C_JlOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if less (SF≠OF).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jl'
class-attribute
instance-attribute
¶
C_JleOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if less or equal (ZF=1 or SF≠OF).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jle'
class-attribute
instance-attribute
¶
C_JnaOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not above (CF=1 or ZF=1).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jna'
class-attribute
instance-attribute
¶
C_JnaeOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not above or equal (CF=1).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jnae'
class-attribute
instance-attribute
¶
C_JnbOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not below (CF=0).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jnb'
class-attribute
instance-attribute
¶
C_JnbeOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not below or equal (CF=0 and ZF=0).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jnbe'
class-attribute
instance-attribute
¶
C_JncOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not carry (CF=0).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jnc'
class-attribute
instance-attribute
¶
C_JneOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not equal (ZF=0).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jne'
class-attribute
instance-attribute
¶
C_JngOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not greater (ZF=1 or SF≠OF).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jng'
class-attribute
instance-attribute
¶
C_JngeOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not greater or equal (SF≠OF).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jnge'
class-attribute
instance-attribute
¶
C_JnlOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not less (SF=OF).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jnl'
class-attribute
instance-attribute
¶
C_JnleOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not less or equal (ZF=0 and SF=OF).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jnle'
class-attribute
instance-attribute
¶
C_JnoOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not overflow (OF=0).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jno'
class-attribute
instance-attribute
¶
C_JnpOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not parity (PF=0).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jnp'
class-attribute
instance-attribute
¶
C_JnsOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not sign (SF=0).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jns'
class-attribute
instance-attribute
¶
C_JnzOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if not zero (ZF=0).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jnz'
class-attribute
instance-attribute
¶
C_JoOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if overflow (OF=1).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jo'
class-attribute
instance-attribute
¶
C_JpOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if parity (PF=1).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jp'
class-attribute
instance-attribute
¶
C_JpeOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if parity even (PF=1).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jpe'
class-attribute
instance-attribute
¶
C_JpoOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if parity odd (PF=0).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jpo'
class-attribute
instance-attribute
¶
C_JsOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if sign (SF=1).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.js'
class-attribute
instance-attribute
¶
C_JzOp
dataclass
¶
Bases: ConditionalJumpOperation
Jump if zero (ZF=1).
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.c.jz'
class-attribute
instance-attribute
¶
RSS_Vfmadd231pdOp
dataclass
¶
Bases: RSS_Operation[X86VectorRegisterType, X86VectorRegisterType, X86VectorRegisterType]
Multiply packed double-precision floating-point elements in s1 and s2, add the intermediate result to r, and store the final result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rss.vfmadd231pd'
class-attribute
instance-attribute
¶
RSSK_Vfmadd231pdOp
dataclass
¶
Bases: RSSK_Operation
AVX512 masked multiply packed double-precision floating-point elements in s1 and s2, add the intermediate result to r, and store the final result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rssk.vfmadd231pd'
class-attribute
instance-attribute
¶
RSM_Vfmadd231pdOp
dataclass
¶
Bases: RSMB_Operation[X86VectorRegisterType, X86VectorRegisterType, GeneralRegisterType]
Multiply packed double-precision floating-point elements in s1 and at specified memory location, add the intermediate result to r, and store the final result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
RSS_Vfmadd231psOp
dataclass
¶
Bases: RSS_Operation[X86VectorRegisterType, X86VectorRegisterType, X86VectorRegisterType]
Multiply packed single-precision floating-point elements in s1 and s2, add the intermediate result to r, and store the final result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.rss.vfmadd231ps'
class-attribute
instance-attribute
¶
RSM_Vfmadd231psOp
dataclass
¶
Bases: RSMB_Operation[X86VectorRegisterType, X86VectorRegisterType, GeneralRegisterType]
Multiply packed single-precision floating-point elements in s1 and at specified memory location, add the intermediate result to r, and store the final result in r.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
DSM_VmulpdOp
dataclass
¶
Bases: DSM_Operation[X86VectorRegisterType, X86VectorRegisterType, GeneralRegisterType]
Multiply packed double-precision floating-point elements in s and at the specified memory location and store the result in d.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
DSS_AddpdOp
dataclass
¶
Bases: DSS_Operation[X86VectorRegisterType, X86VectorRegisterType, X86VectorRegisterType]
Add packed double-precision floating-point elements in s1 and s2 and store the result in d.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dss.addpd'
class-attribute
instance-attribute
¶
DSS_AddpsOp
dataclass
¶
Bases: DSS_Operation[X86VectorRegisterType, X86VectorRegisterType, X86VectorRegisterType]
Add packed single-precision floating-point elements in s1 and s2 and store the result in d.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dss.addps'
class-attribute
instance-attribute
¶
DSS_VaddpdOp
dataclass
¶
Bases: DSS_Operation[X86VectorRegisterType, X86VectorRegisterType, X86VectorRegisterType]
Add packed double-precision floating-point elements in s1 and s2 and store the result in d.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dss.vaddpd'
class-attribute
instance-attribute
¶
DSM_VaddsdOp
dataclass
¶
Bases: DSM_Operation[SSERegisterType, SSERegisterType, GeneralRegisterType]
Add the low double-precision floating-point elements in s and at the specified memory location and store the result in d.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dsm.vaddsd'
class-attribute
instance-attribute
¶
DSS_VaddpsOp
dataclass
¶
Bases: DSS_Operation[X86VectorRegisterType, X86VectorRegisterType, X86VectorRegisterType]
Add packed single-precision floating-point elements in s1 and s2 and store the result in d.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dss.vaddps'
class-attribute
instance-attribute
¶
DSS_VpxordOp
dataclass
¶
Bases: DSS_Operation[X86VectorRegisterType, X86VectorRegisterType, X86VectorRegisterType]
Bitwise XOR of packed doubleword integers in s1 and s2 and store the result in d.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dss.vpxord'
class-attribute
instance-attribute
¶
DSS_VpxorqOp
dataclass
¶
Bases: DSS_Operation[X86VectorRegisterType, X86VectorRegisterType, X86VectorRegisterType]
Bitwise XOR of packed quadword integers in s1 and s2 and store the result in d.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dss.vpxorq'
class-attribute
instance-attribute
¶
DSS_VxorpdOp
dataclass
¶
Bases: DSS_Operation[X86VectorRegisterType, X86VectorRegisterType, X86VectorRegisterType]
Bitwise XOR of packed double-precision floating-point elements in s1 and s2 and store the result in d.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dss.vxorpd'
class-attribute
instance-attribute
¶
DSS_VxorpsOp
dataclass
¶
Bases: DSS_Operation[X86VectorRegisterType, X86VectorRegisterType, X86VectorRegisterType]
Bitwise XOR of packed single-precision floating-point elements in s1 and s2 and store the result in d.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dss.vxorps'
class-attribute
instance-attribute
¶
DS_VmovapdOp
dataclass
¶
Bases: DS_Operation[X86VectorRegisterType, X86VectorRegisterType]
Move aligned packed double precision floating-point values from zmm1 to zmm2
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ds.vmovapd'
class-attribute
instance-attribute
¶
DSK_VmovapdOp
dataclass
¶
Bases: DSK_Operation
Move aligned packed double precision floating-point values from zmm1 to zmm2 using writemask k1
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dsk.vmovapd'
class-attribute
instance-attribute
¶
DS_VmovapsOp
dataclass
¶
Bases: DS_Operation[X86VectorRegisterType, X86VectorRegisterType]
Move aligned packed single precision floating-point values from zmm1 to zmm2
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ds.vmovaps'
class-attribute
instance-attribute
¶
MS_VmovapdOp
dataclass
¶
Bases: MS_Operation[GeneralRegisterType, X86VectorRegisterType]
Move aligned packed double precision floating-point values from zmm1 to m512
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ms.vmovapd'
class-attribute
instance-attribute
¶
MS_VmovapsOp
dataclass
¶
Bases: MS_Operation[GeneralRegisterType, X86VectorRegisterType]
Move aligned packed single precision floating-point values from zmm1 to m512
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ms.vmovaps'
class-attribute
instance-attribute
¶
MS_VmovupdOp
dataclass
¶
Bases: MS_Operation[GeneralRegisterType, X86VectorRegisterType]
Move unaligned packed double precision floating-point values from vector register to memory
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ms.vmovupd'
class-attribute
instance-attribute
¶
MS_VmovupsOp
dataclass
¶
Bases: MS_Operation[GeneralRegisterType, X86VectorRegisterType]
Move unaligned packed single precision floating-point values from vector register to memory
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ms.vmovups'
class-attribute
instance-attribute
¶
MS_VmovsdOp
dataclass
¶
Bases: MS_Operation[GeneralRegisterType, SSERegisterType]
Move a scalar double-precision floating-point value from an XMM register to memory.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ms.vmovsd'
class-attribute
instance-attribute
¶
DM_VmovapdOp
dataclass
¶
Bases: DM_Operation[X86VectorRegisterType, GeneralRegisterType]
Move aligned packed double precision floating-point values from memory to vector register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dm.vmovapd'
class-attribute
instance-attribute
¶
DM_VmovapsOp
dataclass
¶
Bases: DM_Operation[X86VectorRegisterType, GeneralRegisterType]
Move aligned packed single precision floating-point values from memory to vector register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dm.vmovaps'
class-attribute
instance-attribute
¶
DM_VmovupdOp
dataclass
¶
Bases: DM_Operation[X86VectorRegisterType, GeneralRegisterType]
Move unaligned packed double precision floating-point values from memory to vector register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dm.vmovupd'
class-attribute
instance-attribute
¶
DM_VmovupsOp
dataclass
¶
Bases: DM_Operation[X86VectorRegisterType, GeneralRegisterType]
Move unaligned packed single precision floating-point values from memory to vector register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dm.vmovups'
class-attribute
instance-attribute
¶
DMK_VmovapdOp
dataclass
¶
Bases: DMK_Operation[GeneralRegisterType]
Move aligned packed double precision floating-point values from memory to vector register using writemask k.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dmk.vmovapd'
class-attribute
instance-attribute
¶
DMK_VmovupdOp
dataclass
¶
Bases: DMK_Operation[GeneralRegisterType]
Move unaligned packed double precision floating-point values from memory to vector register using writemask k.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dmk.vmovupd'
class-attribute
instance-attribute
¶
DMK_VmovapsOp
dataclass
¶
Bases: DMK_Operation[GeneralRegisterType]
Move aligned packed single precision floating-point values from memory to vector register using writemask k.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dmk.vmovaps'
class-attribute
instance-attribute
¶
DMK_VmovupsOp
dataclass
¶
Bases: DMK_Operation[GeneralRegisterType]
Move unaligned packed single precision floating-point values from memory to vector register using writemask k.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dmk.vmovups'
class-attribute
instance-attribute
¶
MSK_VmovapdOp
dataclass
¶
Bases: MSK_Operation[GeneralRegisterType, X86VectorRegisterType]
Move aligned packed double precision floating-point values from vector register to memory using writemask k.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.msk.vmovapd'
class-attribute
instance-attribute
¶
MSK_VmovupdOp
dataclass
¶
Bases: MSK_Operation[GeneralRegisterType, X86VectorRegisterType]
Move unaligned packed double precision floating-point values from vector register to memory using writemask k.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.msk.vmovupd'
class-attribute
instance-attribute
¶
MSK_VmovapsOp
dataclass
¶
Bases: MSK_Operation[GeneralRegisterType, X86VectorRegisterType]
Move aligned packed single precision floating-point values from vector register to memory using writemask k.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.msk.vmovaps'
class-attribute
instance-attribute
¶
MSK_VmovupsOp
dataclass
¶
Bases: MSK_Operation[GeneralRegisterType, X86VectorRegisterType]
Move unaligned packed single precision floating-point values from vector register to memory using writemask k.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.msk.vmovups'
class-attribute
instance-attribute
¶
MS_VmovntpdOp
dataclass
¶
Bases: MS_Operation[GeneralRegisterType, X86VectorRegisterType]
Moves the packed double precision floating-point values in the source operand to the destination operand using a non-temporal hint to prevent caching of the data during the write to memory.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ms.vmovntpd'
class-attribute
instance-attribute
¶
MS_VmovntpsOp
dataclass
¶
Bases: MS_Operation[GeneralRegisterType, X86VectorRegisterType]
Moves the packed single precision floating-point values in the source operand to the destination operand using a non-temporal hint to prevent caching of the data during the write to memory.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ms.vmovntps'
class-attribute
instance-attribute
¶
DM_VbroadcastsdOp
dataclass
¶
Bases: DM_Operation[X86VectorRegisterType, GeneralRegisterType]
Broadcast low double precision floating-point element in m64 to eight locations in zmm1 using writemask k1
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dm.vbroadcastsd'
class-attribute
instance-attribute
¶
DM_VbroadcastssOp
dataclass
¶
Bases: DM_Operation[X86VectorRegisterType, GeneralRegisterType]
Broadcast single precision floating-point element to eight locations in memory
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dm.vbroadcastss'
class-attribute
instance-attribute
¶
DK_KMovBOp
dataclass
¶
Bases: DK_Operation
Move 8 bits mask from source mask register to general-purpose register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dk.kmovb'
class-attribute
instance-attribute
¶
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
Source code in xdsl/dialects/x86/ops.py
KS_KMovBOp
dataclass
¶
Bases: KS_Operation
Move 8 bits mask from general-purpose register to destination mask register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ks.kmovb'
class-attribute
instance-attribute
¶
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
Source code in xdsl/dialects/x86/ops.py
DK_KMovWOp
dataclass
¶
Bases: DK_Operation
Move 16 bits mask from source mask register to general-purpose register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dk.kmovw'
class-attribute
instance-attribute
¶
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
Source code in xdsl/dialects/x86/ops.py
KS_KMovWOp
dataclass
¶
Bases: KS_Operation
Move 16 bits mask from general-purpose register to destination mask register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ks.kmovw'
class-attribute
instance-attribute
¶
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
Source code in xdsl/dialects/x86/ops.py
DK_KMovDOp
dataclass
¶
Bases: DK_Operation
Move 32 bits mask from source mask register to general-purpose register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dk.kmovd'
class-attribute
instance-attribute
¶
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
Source code in xdsl/dialects/x86/ops.py
KS_KMovDOp
dataclass
¶
Bases: KS_Operation
Move 32 bits mask from general-purpose register to destination mask register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ks.kmovd'
class-attribute
instance-attribute
¶
assembly_line_args() -> tuple[AssemblyInstructionArg | None, ...]
¶
Source code in xdsl/dialects/x86/ops.py
DK_KMovQOp
dataclass
¶
Bases: DK_Operation
Move 64 bits mask from source mask register to general-purpose register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dk.kmovq'
class-attribute
instance-attribute
¶
KS_KMovQOp
dataclass
¶
Bases: KS_Operation
Move 64 bits mask from general-purpose register to destination mask register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.ks.kmovq'
class-attribute
instance-attribute
¶
DSI_Vextractf64x4Op
dataclass
¶
Bases: DSI8_Operation[AVX2RegisterType, AVX512RegisterType]
Extract 256 bits of packed double-precision floating-point elements from a ZMM register into a YMM register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dsi.vextractf64x4'
class-attribute
instance-attribute
¶
DSI_Vextractf128Op
dataclass
¶
Bases: DSI8_Operation[SSERegisterType, AVX2RegisterType]
Extract 128 bits of packed floating-point elements from a YMM register into an XMM register.
See external documentation.
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dsi.vextractf128'
class-attribute
instance-attribute
¶
DSSI_ShufpsOp
dataclass
¶
Bases: DSSI_Operation[X86VectorRegisterType, X86VectorRegisterType, X86VectorRegisterType]
Selects a single precision floating-point value of an input quadruplet using a two-bit control and move to a designated element of the destination operand. Each 64-bit element-pair of a 128-bit lane of the destination operand is interleaved between the corresponding lane of the first source operand and the second source operand at the granularity 128 bits. Each two bits in the imm8 byte, starting from bit 0, is the select control of the corresponding element of a 128-bit lane of the destination to received the shuffled result of an input quadruplet. The two lower elements of a 128-bit lane in the destination receives shuffle results from the quadruple of the first source operand. The next two elements of the destination receives shuffle results from the quadruple of the second source operand.
See external documentation
Source code in xdsl/dialects/x86/ops.py
name = 'x86.dssi.shufps'
class-attribute
instance-attribute
¶
GetAnyRegisterOperation
¶
Bases: X86AsmOperation, X86HasRegisterConstraints, ABC, Generic[R1InvT]
This instruction allows us to create an SSAValue for a given register name.
Source code in xdsl/dialects/x86/ops.py
GetRegisterOp
dataclass
¶
Bases: GetAnyRegisterOperation[GeneralRegisterType]
Source code in xdsl/dialects/x86/ops.py
name = 'x86.get_register'
class-attribute
instance-attribute
¶
GetAVXRegisterOp
dataclass
¶
Bases: GetAnyRegisterOperation[X86VectorRegisterType]
Source code in xdsl/dialects/x86/ops.py
name = 'x86.get_avx_register'
class-attribute
instance-attribute
¶
GetMaskRegisterOp
dataclass
¶
Bases: GetAnyRegisterOperation[AVX512MaskRegisterType]
Source code in xdsl/dialects/x86/ops.py
name = 'x86.get_mask_register'
class-attribute
instance-attribute
¶
ParallelMovOp
¶
Bases: X86HasRegisterConstraints