Struct cranelift_codegen::machinst::lower::Lower[][src]

pub struct Lower<'func, I: VCodeInst> { /* fields omitted */ }

Machine-independent lowering driver / machine-instruction container. Maintains a correspondence from original Inst to MachInsts.

Implementations

impl<'func, I: VCodeInst> Lower<'func, I>[src]

pub fn new(
    f: &'func Function,
    abi: Box<dyn ABICallee<I = I>>,
    emit_info: I::Info,
    block_order: BlockLoweringOrder
) -> CodegenResult<Lower<'func, I>>
[src]

Prepare a new lowering context for the given IR function.

pub fn lower<B: LowerBackend<MInst = I>>(
    self,
    backend: &B
) -> CodegenResult<(VCode<I>, StackmapRequestInfo)>
[src]

Lower the function.

Trait Implementations

impl<'func, I: VCodeInst> LowerCtx for Lower<'func, I>[src]

type I = I

The instruction type for which this lowering framework is instantiated.

Auto Trait Implementations

impl<'func, I> !RefUnwindSafe for Lower<'func, I>

impl<'func, I> !Send for Lower<'func, I>

impl<'func, I> !Sync for Lower<'func, I>

impl<'func, I> Unpin for Lower<'func, I> where
    I: Unpin,
    <I as MachInstEmit>::Info: Unpin

impl<'func, I> !UnwindSafe for Lower<'func, I>

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.