pub struct PassManager { /* private fields */ }
Expand description

Structure that tracks all registered passes for the compiler.

Implementations

Register a new Calyx pass and return an error if another pass with the same name has already been registered.

Example
let pm = PassManager::default();
pm.register_pass::<WellFormed>()?;

Adds a new alias for groups of passes. An alias is a list of strings that represent valid pass names OR an alias. The passes and aliases are executed in the order of specification.

Return a string representation to show all available passes and aliases. Appropriate for help text.

Executes a given “plan” constructed using the incl and excl lists.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.