Csl stencil materialize stores
csl_stencil_materialize_stores
¶
MaterializeInApplyDest
dataclass
¶
Bases: RewritePattern
Stores the yielded values to the buffers specified in apply.dest instead of yielding them.
Source code in xdsl/transforms/csl_stencil_materialize_stores.py
__init__() -> None
¶
match_and_rewrite(op: csl_stencil.YieldOp, rewriter: PatternRewriter)
¶
Source code in xdsl/transforms/csl_stencil_materialize_stores.py
DisableComputeInBorderRegion
dataclass
¶
Bases: RewritePattern
Processing elements in the border region do not need to do compute or store their values back to a buffer.
For simplicity, wrap the full csl_stencil.apply.done_exchange region in an scf.if.
Source code in xdsl/transforms/csl_stencil_materialize_stores.py
__init__() -> None
¶
match_and_rewrite(op: csl_stencil.ApplyOp, rewriter: PatternRewriter)
¶
Source code in xdsl/transforms/csl_stencil_materialize_stores.py
CslStencilMaterializeStores
dataclass
¶
Bases: ModulePass
This pass creates stores for values yielded from csl_stencil.apply.done_exchange.yield
to the buffers in apply.dest.
Stores should only be materialised for PEs not in the border region.
The pass operates on memrefs, run after bufferization.