Csl stencil
csl_stencil
RedundantAccumulatorInitialisation
Bases: RewritePattern
Removes redundant allocations of empty tensors with no uses other than passed
as iter_arg to csl_stencil.apply. Prefer re-use where possible.
Source code in xdsl/transforms/canonicalization_patterns/csl_stencil.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
match_and_rewrite(op: csl_stencil.ApplyOp, rewriter: PatternRewriter) -> None
Source code in xdsl/transforms/canonicalization_patterns/csl_stencil.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |