Convert arith to x86
convert_arith_to_x86
¶
X86_OP_BY_ARITH_BINARY_OP = {arith.AddiOp: x86.RS_AddOp, arith.AddfOp: x86.RS_FAddOp, arith.MuliOp: x86.RS_ImulOp, arith.MulfOp: x86.RS_FMulOp}
module-attribute
¶
ArithConstantToX86
dataclass
¶
Bases: RewritePattern
Source code in xdsl/backend/x86/lowering/convert_arith_to_x86.py
arch: X86Arch
instance-attribute
¶
__init__(arch: X86Arch) -> None
¶
match_and_rewrite(op: arith.ConstantOp, rewriter: PatternRewriter)
¶
Source code in xdsl/backend/x86/lowering/convert_arith_to_x86.py
ArithBinaryToX86
dataclass
¶
Bases: RewritePattern
Source code in xdsl/backend/x86/lowering/convert_arith_to_x86.py
arch: X86Arch
instance-attribute
¶
__init__(arch: X86Arch) -> None
¶
match_and_rewrite(op: Operation, rewriter: PatternRewriter)
¶
Source code in xdsl/backend/x86/lowering/convert_arith_to_x86.py
ConvertArithToX86Pass
dataclass
¶
Bases: ModulePass