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
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |
arch: Arch
instance-attribute
__init__(arch: Arch) -> None
match_and_rewrite(op: arith.ConstantOp, rewriter: PatternRewriter)
Source code in xdsl/backend/x86/lowering/convert_arith_to_x86.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |
ArithBinaryToX86
dataclass
Bases: RewritePattern
Source code in xdsl/backend/x86/lowering/convert_arith_to_x86.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | |
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
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | |
ConvertArithToX86Pass
dataclass
Bases: ModulePass
Source code in xdsl/backend/x86/lowering/convert_arith_to_x86.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
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
85 86 87 88 89 90 91 92 93 94 95 | |