Struct cranelift_codegen::isa::riscv64::Riscv64Backend

source ·
pub struct Riscv64Backend { /* private fields */ }
Expand description

An riscv64 backend.

Implementations§

source§

impl Riscv64Backend

source

pub fn new_with_flags( triple: Triple, flags: Flags, isa_flags: Flags ) -> Riscv64Backend

Create a new riscv64 backend with the given (shared) flags.

Trait Implementations§

source§

impl Display for Riscv64Backend

source§

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

Formats the value using the given formatter. Read more
source§

impl TargetIsa for Riscv64Backend

source§

fn compile_function( &self, func: &Function, domtree: &DominatorTree, want_disasm: bool, ctrl_plane: &mut ControlPlane ) -> CodegenResult<CompiledCodeBase<Stencil>>

Compile the given function.
source§

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

Get the name of this ISA.
source§

fn dynamic_vector_bytes(&self, _dynamic_ty: Type) -> u32

Get the ISA-dependent maximum vector register size, in bytes.
source§

fn triple(&self) -> &Triple

Get the target triple that was used to make this trait object.
source§

fn flags(&self) -> &Flags

Get the ISA-independent flags that were used to make this trait object.
source§

fn isa_flags(&self) -> Vec<Value>

Get the ISA-dependent flag values that were used to make this trait object.
source§

fn emit_unwind_info( &self, result: &CompiledCode, kind: UnwindInfoKind ) -> CodegenResult<Option<UnwindInfo>>

Creates unwind information for the function. Read more
source§

fn create_systemv_cie(&self) -> Option<CommonInformationEntry>

Creates a new System V Common Information Entry for the ISA. Read more
source§

fn text_section_builder(&self, num_funcs: usize) -> Box<dyn TextSectionBuilder>

Returns an object that can be used to build the text section of an executable. Read more
source§

fn map_regalloc_reg_to_dwarf( &self, reg: Reg ) -> Result<u16, RegisterMappingError>

Map a regalloc::Reg to its corresponding DWARF register.
source§

fn function_alignment(&self) -> FunctionAlignment

Returns the minimum function alignment and the preferred function alignment, for performance, required by this ISA.
source§

fn to_capstone(&self) -> Result<Capstone, Error>

Generate a Capstone context for disassembling bytecode for this architecture.
source§

fn has_native_fma(&self) -> bool

Returns whether this ISA has a native fused-multiply-and-add instruction for floats. Read more
source§

fn has_x86_blendv_lowering(&self, _: Type) -> bool

Returns whether the CLIF x86_blendv instruction is implemented for this ISA for the specified type.
source§

fn has_x86_pshufb_lowering(&self) -> bool

Returns whether the CLIF x86_pshufb instruction is implemented for this ISA.
source§

fn has_x86_pmulhrsw_lowering(&self) -> bool

Returns whether the CLIF x86_pmulhrsw instruction is implemented for this ISA.
source§

fn has_x86_pmaddubsw_lowering(&self) -> bool

Returns whether the CLIF x86_pmaddubsw instruction is implemented for this ISA.
source§

fn is_branch_protection_enabled(&self) -> bool

Get a flag indicating whether branch protection is enabled.
source§

fn wrapped(self) -> OwnedTargetIsa
where Self: Sized + 'static,

Create a polymorphic TargetIsa from this specific implementation.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.