pub struct DebugInstrumenter {}

Implementations§

Trait Implementations§

source§

impl FunctionTargetProcessor for DebugInstrumenter

source§

fn process( &self, _targets: &mut FunctionTargetsHolder, fun_env: &FunctionEnv<'_>, data: FunctionData ) -> FunctionData

Processes a function variant. Takes as parameter a target holder which can be mutated, the env of the function being processed, and the target data. During the time the processor is called, the target data is removed from the holder, and added back once transformation has finished. This allows the processor to take ownership on the target data.
source§

fn name(&self) -> String

Returns a name for this processor. This should be suitable as a file suffix.
source§

fn process_and_maybe_remove( &self, targets: &mut FunctionTargetsHolder, func_env: &FunctionEnv<'_>, data: FunctionData ) -> Option<FunctionData>

Same as process but can return None to indicate that the function variant is removed. By default, this maps to Some(self.process(..)). One needs to implement either this function or process.
source§

fn initialize(&self, _env: &GlobalEnv, _targets: &mut FunctionTargetsHolder)

A function which is called once before any process call is issued.
source§

fn finalize(&self, _env: &GlobalEnv, _targets: &mut FunctionTargetsHolder)

A function which is called once after the last process call.
source§

fn is_single_run(&self) -> bool

A function which can be implemented to indicate that instead of a sequence of initialize, process, and finalize, this processor has a single run function for the analysis of the whole set of functions.
source§

fn run(&self, _env: &GlobalEnv, _targets: &mut FunctionTargetsHolder)

To be implemented if is_single_run() is true.
source§

fn dump_result( &self, _f: &mut Formatter<'_>, _env: &GlobalEnv, _targets: &FunctionTargetsHolder ) -> Result

A function which creates a dump of the processors results, for debugging.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V