Apply eqsat pdl interp
apply_eqsat_pdl_interp
EqsatConstraintFunctions
dataclass
Bases: InterpreterFunctions
Source code in xdsl/transforms/apply_eqsat_pdl_interp.py
28 29 30 31 32 33 34 35 | |
run_is_not_unsound(interp: Interpreter, _op: Operation, args: PythonValues)
Source code in xdsl/transforms/apply_eqsat_pdl_interp.py
30 31 32 33 34 35 | |
ApplyEqsatPDLInterpPass
dataclass
Bases: ModulePass
Source code in xdsl/transforms/apply_eqsat_pdl_interp.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |
name = 'apply-eqsat-pdl-interp'
class-attribute
instance-attribute
pdl_interp_file: str | None = None
class-attribute
instance-attribute
max_iterations: int = _DEFAULT_MAX_ITERATIONS
class-attribute
instance-attribute
Maximum number of iterations to run, default 20.
__init__(pdl_interp_file: str | None = None, max_iterations: int = _DEFAULT_MAX_ITERATIONS) -> None
apply(ctx: Context, op: builtin.ModuleOp) -> None
Source code in xdsl/transforms/apply_eqsat_pdl_interp.py
91 92 93 94 95 96 97 98 99 100 101 | |
apply_eqsat_pdl_interp(op: builtin.ModuleOp, ctx: Context, pdl_interp_module: builtin.ModuleOp, max_iterations: int = _DEFAULT_MAX_ITERATIONS, callback: Callable[[builtin.ModuleOp], None] | None = None)
Source code in xdsl/transforms/apply_eqsat_pdl_interp.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | |