Struct cranelift_codegen::machinst::MachCompileResult[][src]

pub struct MachCompileResult {
    pub buffer: MachBufferFinalized,
    pub frame_size: u32,
    pub disasm: Option<String>,
    pub value_labels_ranges: ValueLabelsRanges,
    pub stackslot_offsets: PrimaryMap<StackSlot, u32>,
}

The result of a MachBackend::compile_function() call. Contains machine code (as bytes) and a disassembly, if requested.

Fields

buffer: MachBufferFinalized

Machine code.

frame_size: u32

Size of stack frame, in bytes.

disasm: Option<String>

Disassembly, if requested.

value_labels_ranges: ValueLabelsRanges

Debug info: value labels to registers/stackslots at code offsets.

stackslot_offsets: PrimaryMap<StackSlot, u32>

Debug info: stackslots to stack pointer offsets.

Implementations

impl MachCompileResult[src]

pub fn code_info(&self) -> CodeInfo[src]

Get a CodeInfo describing section sizes from this compilation result.

Auto Trait Implementations

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.