Func to pdl rewrite
func_to_pdl_rewrite
¶
A pass that applies the interpreter to operations with no side effects where all the inputs are constant, replacing the computation with a constant value.
FuncOpToPdlRewritePattern
dataclass
¶
Bases: RewritePattern
Rewrite pattern that transforms a function into a PDL rewrite operation.
Source code in xdsl/transforms/experimental/func_to_pdl_rewrite.py
__init__() -> None
¶
match_and_rewrite(op: func.FuncOp, rewriter: PatternRewriter)
¶
Source code in xdsl/transforms/experimental/func_to_pdl_rewrite.py
ReturnOpToPdlRewritePattern
dataclass
¶
Bases: RewritePattern
Rewrite pattern that erases return ops in PDL rewrite operations.
Source code in xdsl/transforms/experimental/func_to_pdl_rewrite.py
FuncToPdlRewrite
dataclass
¶
Bases: ModulePass
A pass that transforms a function into a PDL rewrite operation.