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
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
__init__() -> None
match_and_rewrite(op: arith.ConstantOp, rewriter: PatternRewriter)
Source code in xdsl/backend/x86/lowering/convert_arith_to_x86.py
25 26 27 28 29 30 31 32 33 34 35 36 37 | |
ArithBinaryToX86
dataclass
Bases: RewritePattern
Source code in xdsl/backend/x86/lowering/convert_arith_to_x86.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |
arch: Arch
instance-attribute
__init__(arch: Arch) -> None
match_and_rewrite(op: Operation, rewriter: PatternRewriter)
Source code in xdsl/backend/x86/lowering/convert_arith_to_x86.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |
ConvertArithToX86Pass
dataclass
Bases: ModulePass
Source code in xdsl/backend/x86/lowering/convert_arith_to_x86.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
name = 'convert-arith-to-x86'
class-attribute
instance-attribute
__init__() -> None
apply(ctx: Context, op: builtin.ModuleOp) -> None
Source code in xdsl/backend/x86/lowering/convert_arith_to_x86.py
80 81 82 83 84 85 86 87 88 89 90 91 | |