[][src]Struct cranelift_faerie::FaerieBuilder

pub struct FaerieBuilder { /* fields omitted */ }

A builder for FaerieBackend.

Implementations

impl FaerieBuilder[src]

pub fn new(
    isa: Box<dyn TargetIsa>,
    name: String,
    libcall_names: Box<dyn Fn(LibCall) -> String>
) -> ModuleResult<Self>
[src]

👎 Deprecated since 0.65.0:

the Cranelift developer team intends to stop maintaining the cranelift-faerie crate and remove it from the wasmtime git repository on or after August 3, 2020. We recommend users use its successor, the cranelift-object crate.

Create a new FaerieBuilder using the given Cranelift target, that can be passed to Module::new

Faerie output requires that TargetIsa have PIC (Position Independent Code) enabled.

The libcall_names function provides a way to translate cranelift_codegen's ir::LibCall enum to symbols. LibCalls are inserted in the IR as part of the legalization for certain floating point instructions, and for stack probes. If you don't know what to use for this argument, use cranelift_module::default_libcall_names().

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.