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

A processing pipeline for function targets.

Implementations

Adds a processor to this pipeline. Processor will be called in the order they have been added.

Gets the last processor in the pipeline, for testing.

Sort functions in topological order. This is important for the function target processors. In programs without recursion or mutual recursion, processing functions in topological order means that when a processor sees a caller function, it is guaranteed that all the callees have already been analyzed.

Runs the pipeline on all functions in the targets holder. Processors are run on each individual function in breadth-first fashion; i.e. a processor can expect that processors preceding it in the pipeline have been executed for all functions before it is called.

Run the pipeline on all functions in the targets holder, with no hooks in effect

Runs the pipeline on all functions in the targets holder, dump the bytecode before the pipeline as well as after each processor pass. If dump_cfg is set, dump the per-function control-flow graph (in dot format) too.

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.

Should always be Self

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.