Trait winch_codegen::isa::TargetIsa
source · pub trait TargetIsa: Send + Sync {
fn name(&self) -> &'static str;
fn triple(&self) -> &Triple;
fn compile_function(
&self,
sig: &FuncType,
body: FunctionBody<'_>,
validator: FuncValidator<ValidatorResources>
) -> Result<Vec<String>>;
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<Vec<String>>
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.