Skip to content

Migrate passes to use the new PassScope #2771

@aborgna-q

Description

@aborgna-q

See #2772

/// Set the scope configuration used to run the pass.
///
/// See [`PassScope`] for more details.
///
/// In `hugr 0.25.*`, this configuration is only a guidance, and may be
/// ignored by the pass.
///
/// From `hugr >=0.26.0`, passes must respect the scope configuration.
fn ComposablePass::with_scope(self, scope: &PassScope) -> Self;
  • ConstantFoldPass
  • DeadCodeElimPass
  • RemoveDeadFuncsPass
  • InlineDFGsPass
  • MonomorphizePass
  • LocalizeEdges
  • NormalizeCFGPass
  • RedundantOrderEdgesPass
  • ReplaceTypes
  • UntuplePass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions