Lift arith to linalg
lift_arith_to_linalg
LiftAddfPass
Bases: RewritePattern
Source code in xdsl/transforms/lift_arith_to_linalg.py
18 19 20 21 22 23 24 | |
match_and_rewrite(op: arith.AddfOp, rewriter: PatternRewriter)
Source code in xdsl/transforms/lift_arith_to_linalg.py
19 20 21 22 23 24 | |
LiftSubfPass
Bases: RewritePattern
Source code in xdsl/transforms/lift_arith_to_linalg.py
27 28 29 30 31 32 33 | |
match_and_rewrite(op: arith.SubfOp, rewriter: PatternRewriter)
Source code in xdsl/transforms/lift_arith_to_linalg.py
28 29 30 31 32 33 | |
LiftMulfPass
Bases: RewritePattern
Source code in xdsl/transforms/lift_arith_to_linalg.py
36 37 38 39 40 41 42 | |
match_and_rewrite(op: arith.MulfOp, rewriter: PatternRewriter)
Source code in xdsl/transforms/lift_arith_to_linalg.py
37 38 39 40 41 42 | |
LiftArithToLinalg
dataclass
Bases: ModulePass
Pass that lifts arith ops to linalg in order to make use of destination-passing style and bufferization.
Source code in xdsl/transforms/lift_arith_to_linalg.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
name = 'lift-arith-to-linalg'
class-attribute
instance-attribute
__init__() -> None
apply(ctx: Context, op: ModuleOp) -> None
Source code in xdsl/transforms/lift_arith_to_linalg.py
53 54 55 56 57 58 59 60 61 62 63 64 65 | |