Lower affine
lower_affine
¶
LowerAffineStore
¶
Bases: RewritePattern
Source code in xdsl/transforms/lower_affine.py
match_and_rewrite(op: affine.StoreOp, rewriter: PatternRewriter)
¶
Source code in xdsl/transforms/lower_affine.py
LowerAffineLoad
¶
Bases: RewritePattern
Source code in xdsl/transforms/lower_affine.py
match_and_rewrite(op: affine.LoadOp, rewriter: PatternRewriter)
¶
Source code in xdsl/transforms/lower_affine.py
LowerAffineFor
¶
Bases: RewritePattern
Source code in xdsl/transforms/lower_affine.py
match_and_rewrite(op: affine.ForOp, rewriter: PatternRewriter)
¶
Source code in xdsl/transforms/lower_affine.py
LowerAffineYield
¶
Bases: RewritePattern
Source code in xdsl/transforms/lower_affine.py
LowerAffineApply
¶
Bases: RewritePattern
Source code in xdsl/transforms/lower_affine.py
match_and_rewrite(op: affine.ApplyOp, rewriter: PatternRewriter)
¶
Source code in xdsl/transforms/lower_affine.py
LowerAffinePass
dataclass
¶
Bases: ModulePass
Source code in xdsl/transforms/lower_affine.py
affine_expr_ops(expr: AffineExpr, dims: Sequence[SSAValue], symbols: Sequence[SSAValue]) -> tuple[list[Operation], SSAValue]
¶
Returns the operations that evaluate the affine expression when given input SSA values, along with the SSAValue representing the result.
Source code in xdsl/transforms/lower_affine.py
insert_affine_map_ops(map: AffineMapAttr | None, dims: Sequence[SSAValue], symbols: list[SSAValue]) -> tuple[list[Operation], list[SSAValue]]
¶
Returns operations that evaluate the affine map when given input SSA values and the resulting indices.