Trait winch_codegen::isa::TargetIsa
source · pub trait TargetIsa: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn triple(&self) -> &Triple;
fn compile_function(
&self,
sig: &FuncType,
body: &FunctionBody<'_>,
validator: FuncValidator<ValidatorResources>
) -> Result<MachBufferFinalized<Final>>;
// Provided methods
fn call_conv(&self) -> CallConv { ... }
fn endianness(&self) -> Endianness { ... }
}
Expand description
A trait representing commonalities between the supported instruction set architectures.
Required Methods§
fn compile_function( &self, sig: &FuncType, body: &FunctionBody<'_>, validator: FuncValidator<ValidatorResources> ) -> Result<MachBufferFinalized<Final>>
Provided Methods§
sourcefn call_conv(&self) -> CallConv
fn call_conv(&self) -> CallConv
Get the default calling convention of the underlying target triple.
sourcefn endianness(&self) -> Endianness
fn endianness(&self) -> Endianness
Get the endianess of the underlying target triple.