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§

source

fn name(&self) -> &'static str

Get the name of the ISA.

source

fn triple(&self) -> &Triple

Get the target triple of the ISA.

source

fn compile_function( &self, sig: &FuncType, body: &FunctionBody<'_>, validator: FuncValidator<ValidatorResources> ) -> Result<MachBufferFinalized<Final>>

Provided Methods§

source

fn call_conv(&self) -> CallConv

Get the default calling convention of the underlying target triple.

source

fn endianness(&self) -> Endianness

Get the endianess of the underlying target triple.

Trait Implementations§

source§

impl Debug for &dyn TargetIsa

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§