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§

Get the name of the ISA.

Get the target triple of the ISA.

Provided Methods§

Get the default calling convention of the underlying target triple.

Examples found in repository?
src/isa/mod.rs (line 109)
104
105
106
107
108
109
110
111
    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
        write!(
            f,
            "Target ISA {{ triple: {:?}, calling convention: {:?} }}",
            self.triple(),
            self.call_conv()
        )
    }

Get the endianess of the underlying target triple.

Trait Implementations§

Formats the value using the given formatter. Read more

Implementors§