Reconcile unrealized casts
reconcile_unrealized_casts
¶
ReconcileUnrealizedCastsPattern
dataclass
¶
Bases: RewritePattern
Removes the chains of builtin.unrealized_conversion_cast operations
that are no longer necessary and that start with the matched
builtin.unrealized_conversion_cast.
Source code in xdsl/transforms/reconcile_unrealized_casts.py
ReconcileUnrealizedCastsPass
dataclass
¶
Bases: ModulePass
Source code in xdsl/transforms/reconcile_unrealized_casts.py
reconcile_unrealized_casts(module: ModuleOp, *, warn_on_failure: bool = True)
¶
Removes all builtin.unrealized_conversion_cast operations
that are not needed anymore in a module.