Apply pdl interp
apply_pdl_interp
¶
PDLInterpRewritePattern
dataclass
¶
Bases: RewritePattern
A rewrite pattern that uses the pdl_interp dialect for matching and rewriting operations.
Source code in xdsl/transforms/apply_pdl_interp.py
functions: PDLInterpFunctions = functions
instance-attribute
¶
interpreter: Interpreter = interpreter
instance-attribute
¶
matcher: pdl_interp.FuncOp = matcher
instance-attribute
¶
name: str | None = name
class-attribute
instance-attribute
¶
__init__(matcher: pdl_interp.FuncOp, interpreter: Interpreter, functions: PDLInterpFunctions, name: str | None = None)
¶
Source code in xdsl/transforms/apply_pdl_interp.py
match_and_rewrite(xdsl_op: Operation, rewriter: PatternRewriter) -> None
¶
Source code in xdsl/transforms/apply_pdl_interp.py
ApplyPDLInterpPass
dataclass
¶
Bases: ModulePass