Struct cranelift_codegen::machinst::adapter::TargetIsaAdapter [−][src]
pub struct TargetIsaAdapter { /* fields omitted */ }
A wrapper around a MachBackend
that provides a TargetIsa
impl.
Implementations
impl TargetIsaAdapter
[src]
impl TargetIsaAdapter
[src]pub fn new<B: MachBackend + Send + Sync + 'static>(
backend: B
) -> TargetIsaAdapter
[src]
backend: B
) -> TargetIsaAdapter
Create a new TargetIsa
wrapper around a MachBackend
.
Trait Implementations
impl TargetIsa for TargetIsaAdapter
[src]
impl TargetIsa for TargetIsaAdapter
[src]fn name(&self) -> &'static str
[src]
fn triple(&self) -> &Triple
[src]
fn flags(&self) -> &Flags
[src]
fn register_info(&self) -> RegInfo
[src]
fn legal_encodings<'a>(
&'a self,
_func: &'a Function,
_inst: &'a InstructionData,
_ctrl_typevar: Type
) -> Encodings<'a>ⓘ
[src]
&'a self,
_func: &'a Function,
_inst: &'a InstructionData,
_ctrl_typevar: Type
) -> Encodings<'a>ⓘ
fn encode(
&self,
_func: &Function,
_inst: &InstructionData,
_ctrl_typevar: Type
) -> Result<Encoding, Legalize>
[src]
&self,
_func: &Function,
_inst: &InstructionData,
_ctrl_typevar: Type
) -> Result<Encoding, Legalize>
fn encoding_info(&self) -> EncInfo
[src]
fn legalize_signature(&self, _sig: &mut Cow<'_, Signature>, _current: bool)
[src]
fn regclass_for_abi_type(&self, _ty: Type) -> RegClass
[src]
fn allocatable_registers(&self, _func: &Function) -> RegisterSet
[src]
fn prologue_epilogue(&self, _func: &mut Function) -> CodegenResult<()>
[src]
fn emit_function_to_memory(
&self,
_func: &Function,
_sink: &mut MemoryCodeSink<'_>
)
[src]
&self,
_func: &Function,
_sink: &mut MemoryCodeSink<'_>
)
Emit a whole function into memory.
fn get_mach_backend(&self) -> Option<&dyn MachBackend>
[src]
fn unsigned_add_overflow_condition(&self) -> IntCC
[src]
fn unsigned_sub_overflow_condition(&self) -> IntCC
[src]
fn create_systemv_cie(&self) -> Option<CommonInformationEntry>
[src]
fn as_any(&self) -> &dyn Any
[src]
fn default_call_conv(&self) -> CallConv
[src]
fn endianness(&self) -> Endianness
[src]
fn pointer_type(&self) -> Type
[src]
fn pointer_width(&self) -> PointerWidth
[src]
fn pointer_bits(&self) -> u8
[src]
fn pointer_bytes(&self) -> u8
[src]
fn frontend_config(&self) -> TargetFrontendConfig
[src]
fn uses_cpu_flags(&self) -> bool
[src]
fn uses_complex_addresses(&self) -> bool
[src]
fn map_dwarf_register(&self, _: RegUnit) -> Result<u16, RegisterMappingError>
[src]
fn create_unwind_info(
&self,
_func: &Function
) -> CodegenResult<Option<UnwindInfo>>
[src]
&self,
_func: &Function
) -> CodegenResult<Option<UnwindInfo>>