Struct llvm_ir_analysis::CrossModuleAnalysis[][src]

pub struct CrossModuleAnalysis<'m> { /* fields omitted */ }
Expand description

Analyzes multiple Modules, providing a ModuleAnalysis for each; and also provides a few additional cross-module analyses (e.g., a cross-module call graph)

Implementations

Create a new CrossModuleAnalysis for the given set of Modules.

This method itself is cheap; individual analyses will be computed lazily on demand.

Iterate over the analyzed Module(s).

Iterate over all the Functions in the analyzed Module(s).

Get the full CallGraph for the Module(s).

This will include both cross-module and within-module calls.

Get the FunctionsByType for the Module(s).

Get the ModuleAnalysis for the module with the given name.

Panics if no module of that name exists in the Module(s) which the CrossModuleAnalysis was created with.

Get the Function with the given name from the analyzed Module(s).

Returns both the Function and the Module it was found in, or None if no function was found with that name.

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

Performs the conversion.

Performs the conversion.

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.