Test linalg tiling
test_linalg_tiling
TileLinalgFromAttributePattern
Bases: RewritePattern
Rewrite supported structured linalg ops annotated with test_tile_sizes into
tiled form.
A tile size is normally taken straight from that attribute. Dimensions named
by test_dynamic_tile_sizes instead take a tile size that is not known until
the op runs, which the pass has no way of writing in an attribute, so one is
produced by a test.op for the tiling to consume.
Source code in xdsl/transforms/test_linalg_tiling.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
match_and_rewrite(op: linalg.abstract_ops.LinalgStructuredOperation, rewriter: PatternRewriter) -> None
Source code in xdsl/transforms/test_linalg_tiling.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
TestLinalgTilingPass
dataclass
Bases: ModulePass
Tile supported structured linalg ops annotated with test_tile_sizes.
Source code in xdsl/transforms/test_linalg_tiling.py
61 62 63 64 65 66 67 68 69 70 71 72 73 | |
name = 'test-linalg-tiling'
class-attribute
instance-attribute
__init__() -> None
apply(ctx: Context, op: ModuleOp) -> None
Source code in xdsl/transforms/test_linalg_tiling.py
69 70 71 72 73 | |