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

Struct allowing to query the pass manager for the result of analyses on module IR.

Implementations§

Returns the result of the analysis on a given module IR.

If the result is not in cache, the pass manager will execute the analysis pass. Otherwise, the result is directly returned from cache.

Panics

Panics if the given analysis wasn’t registered, or if this function was called within the given analysis itself.

Returns the result of the analysis on a given module IR.

If the result is not in cache, None is returned. Otherwise, the result is directly returned from cache.

This function never triggers the execution of an analysis.

Panics

Panics if the given analysis wasn’t registered, or if this function was called within the given analysis itself.

Returns a FunctionAnalysisManagerProxy, which is essentially an interface allowing management of analyses at the function level.

Register an analysis pass to the analysis manager.

Panics

Panics if the given analysis was already registered.

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.