sway_ir

Module pass_manager

Source

Structs§

AnalysisResults
Pass
An analysis or transformation pass.
PassGroup
A group of passes. Can contain sub-groups.
PassManager
PrintPassesOpts
Options for printing Passes in case of running them with printing requested.

Enums§

PassMutability
Is a pass an Analysis or a Transformation over the IR?
PassOrGroup
An individual pass, or a group (with possible subgroup) of passes.
ScopedPass
A concrete version of PassScope.

Traits§

AnalysisResultT
Result of an analysis. Specific result must be downcasted to.
PassScope
Program scope over which a pass executes.

Functions§

create_o1_pass_group
insert_after_each
Utility to insert a pass after every pass in the given group pg. It preserves the pg group’s structure. This means if pg has subgroups and those have subgroups, the resulting PassGroup will have the same subgroups, but with the pass inserted after every pass in every subgroup, as well as all passes outside of any groups.
register_known_passes
A convenience utility to register known passes.

Type Aliases§

AnalysisResult