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>,
    pub bb_starts: Vec<CodeOffset>,
    pub bb_edges: Vec<(CodeOffset, CodeOffset)>,
}
Expand description

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.

bb_starts: Vec<CodeOffset>

Basic-block layout info: block start offsets.

This info is generated only if the machine_code_cfg_info flag is set.

bb_edges: Vec<(CodeOffset, CodeOffset)>

Basic-block layout info: block edges. Each edge is (from, to), where from and to are basic-block start offsets of the respective blocks.

This info is generated only if the machine_code_cfg_info flag is set.

Implementations

Get a CodeInfo describing section sizes from this compilation result.

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

Performs the conversion.

Performs the conversion.

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.