[][src]Struct cranelift_codegen::ir::ReplaceBuilder

pub struct ReplaceBuilder<'f> { /* fields omitted */ }

Instruction builder that replaces an existing instruction.

The inserted instruction will have the same Inst number as the old one.

If the old instruction still has result values attached, it is assumed that the new instruction produces the same number and types of results. The old result values are preserved. If the replacement instruction format does not support multiple results, the builder panics. It is a bug to leave result values dangling.

Methods

impl<'f> ReplaceBuilder<'f>[src]

pub fn new(dfg: &'f mut DataFlowGraph, inst: Inst) -> Self[src]

Create a ReplaceBuilder that will overwrite inst.

Trait Implementations

impl<'f> InstBuilderBase<'f> for ReplaceBuilder<'f>[src]

Auto Trait Implementations

impl<'f> RefUnwindSafe for ReplaceBuilder<'f>

impl<'f> Send for ReplaceBuilder<'f>

impl<'f> Sync for ReplaceBuilder<'f>

impl<'f> Unpin for ReplaceBuilder<'f>

impl<'f> !UnwindSafe for ReplaceBuilder<'f>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.