ComposedPass¶
- class hugr.passes.composable.ComposedPass(*passes: ComposablePass)[source]¶
Bases:
ComposablePassA sequence of composable passes.
Methods
Run the pass to transform a HUGR, returning a PassResult.
Perform another composable pass after this pass.
Set the scope configuration for the composed pass.
Attributes
Returns the name of the pass.
passes- run(hugr: Hugr, *, inplace: bool = True) PassResult[source]¶
Run the pass to transform a HUGR, returning a PassResult.
See
implement_pass_run()for a helper function to implement this method.
- then(other: ComposablePass) ComposablePass¶
Perform another composable pass after this pass.
- with_scope(scope: PassScope) ComposedPass[source]¶
Set the scope configuration for the composed pass.