Bases: ModulePass
Folds memref_stream.fill operations that run immediately before a
memref_stream.generic operation into the init value.
Assumes that none of the memrefs involved are aliased.
Source code in xdsl/transforms/memref_stream_fold_fill.py
57
58
59
60
61
62
63
64
65
66
67
68 | @dataclass(frozen=True)
class MemRefStreamFoldFillPass(ModulePass):
"""
Folds `memref_stream.fill` operations that run immediately before a
`memref_stream.generic` operation into the init value.
Assumes that none of the memrefs involved are aliased.
"""
name = "memref-stream-fold-fill"
def apply(self, ctx: Context, op: ModuleOp) -> None:
fold_fills_in_module(op)
|
Source code in xdsl/transforms/memref_stream_fold_fill.py
| def apply(self, ctx: Context, op: ModuleOp) -> None:
fold_fills_in_module(op)
|