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
Auto Trait Implementations
impl RefUnwindSafe for MachCompileResult
impl Send for MachCompileResult
impl Sync for MachCompileResult
impl Unpin for MachCompileResult
impl UnwindSafe for MachCompileResult