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
match_and_rewrite(op: linalg.abstract_ops.LinalgStructuredOperation, rewriter: PatternRewriter) -> None
¶
Source code in xdsl/transforms/test_linalg_tiling.py
TestLinalgTilingPass
dataclass
¶
Bases: ModulePass
Tile supported structured linalg ops annotated with test_tile_sizes.