[−][src]Struct cranelift_faerie::FaerieBackend
A FaerieBackend
implements Backend
and emits ".o" files using the faerie
library.
See the FaerieBuilder
for a convenient way to construct FaerieBackend
instances.
Trait Implementations
impl Backend for FaerieBackend
[src]
type Builder = FaerieBuilder
A builder for constructing Backend
instances.
type CompiledFunction = FaerieCompiledFunction
The results of compiling a function.
type CompiledData = FaerieCompiledData
The results of "compiling" a data object.
type FinalizedFunction = ()
The completed output artifact for a function, if this is meaningful for the Backend
. Read more
type FinalizedData = ()
The completed output artifact for a data object, if this is meaningful for the Backend
. Read more
type Product = FaerieProduct
The returned value here provides functions for emitting object files to memory and files.
fn new(builder: FaerieBuilder) -> Self
[src]
Create a new FaerieBackend
using the given Cranelift target.
fn isa(&self) -> &dyn TargetIsa
[src]
fn declare_function(&mut self, name: &str, linkage: Linkage)
[src]
fn declare_data(
&mut self,
name: &str,
linkage: Linkage,
writable: bool,
align: Option<u8>
)
[src]
&mut self,
name: &str,
linkage: Linkage,
writable: bool,
align: Option<u8>
)
fn define_function(
&mut self,
name: &str,
ctx: &Context,
namespace: &ModuleNamespace<Self>,
total_size: u32
) -> ModuleResult<FaerieCompiledFunction>
[src]
&mut self,
name: &str,
ctx: &Context,
namespace: &ModuleNamespace<Self>,
total_size: u32
) -> ModuleResult<FaerieCompiledFunction>
fn define_data(
&mut self,
name: &str,
_writable: bool,
_align: Option<u8>,
data_ctx: &DataContext,
namespace: &ModuleNamespace<Self>
) -> ModuleResult<FaerieCompiledData>
[src]
&mut self,
name: &str,
_writable: bool,
_align: Option<u8>,
data_ctx: &DataContext,
namespace: &ModuleNamespace<Self>
) -> ModuleResult<FaerieCompiledData>
fn write_data_funcaddr(
&mut self,
_data: &mut FaerieCompiledData,
_offset: usize,
_what: FuncRef
)
[src]
&mut self,
_data: &mut FaerieCompiledData,
_offset: usize,
_what: FuncRef
)
fn write_data_dataaddr(
&mut self,
_data: &mut FaerieCompiledData,
_offset: usize,
_what: GlobalValue,
_usize: Addend
)
[src]
&mut self,
_data: &mut FaerieCompiledData,
_offset: usize,
_what: GlobalValue,
_usize: Addend
)
fn finalize_function(
&mut self,
_func: &FaerieCompiledFunction,
_namespace: &ModuleNamespace<Self>
)
[src]
&mut self,
_func: &FaerieCompiledFunction,
_namespace: &ModuleNamespace<Self>
)
fn get_finalized_function(&self, _func: &FaerieCompiledFunction)
[src]
fn finalize_data(
&mut self,
_data: &FaerieCompiledData,
_namespace: &ModuleNamespace<Self>
)
[src]
&mut self,
_data: &FaerieCompiledData,
_namespace: &ModuleNamespace<Self>
)
fn get_finalized_data(&self, _data: &FaerieCompiledData)
[src]
fn publish(&mut self)
[src]
fn finish(self) -> FaerieProduct
[src]
Auto Trait Implementations
impl Unpin for FaerieBackend
impl !Sync for FaerieBackend
impl !Send for FaerieBackend
impl !UnwindSafe for FaerieBackend
impl !RefUnwindSafe for FaerieBackend
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,