[−][src]Struct cranelift_object::ObjectBackend
A ObjectBackend
implements Backend
and emits ".o" files using the object
library.
See the ObjectBuilder
for a convenient way to construct ObjectBackend
instances.
Trait Implementations
impl Backend for ObjectBackend
[src]
type Builder = ObjectBuilder
A builder for constructing Backend
instances.
type CompiledFunction = ObjectCompiledFunction
The results of compiling a function.
type CompiledData = ObjectCompiledData
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 = ObjectProduct
This is an object returned by Module
's finish
function, if the Backend
has a purpose for this. Read more
fn new(builder: ObjectBuilder) -> Self
[src]
Create a new ObjectBackend
using the given Cranelift target.
fn isa(&self) -> &dyn TargetIsa
[src]
fn declare_function(&mut self, id: FuncId, name: &str, linkage: Linkage)
[src]
fn declare_data(
&mut self,
id: DataId,
name: &str,
linkage: Linkage,
_writable: bool,
_align: Option<u8>
)
[src]
&mut self,
id: DataId,
name: &str,
linkage: Linkage,
_writable: bool,
_align: Option<u8>
)
fn define_function(
&mut self,
func_id: FuncId,
_name: &str,
ctx: &Context,
_namespace: &ModuleNamespace<Self>,
code_size: u32
) -> ModuleResult<ObjectCompiledFunction>
[src]
&mut self,
func_id: FuncId,
_name: &str,
ctx: &Context,
_namespace: &ModuleNamespace<Self>,
code_size: u32
) -> ModuleResult<ObjectCompiledFunction>
fn define_data(
&mut self,
data_id: DataId,
_name: &str,
writable: bool,
align: Option<u8>,
data_ctx: &DataContext,
_namespace: &ModuleNamespace<Self>
) -> ModuleResult<ObjectCompiledData>
[src]
&mut self,
data_id: DataId,
_name: &str,
writable: bool,
align: Option<u8>,
data_ctx: &DataContext,
_namespace: &ModuleNamespace<Self>
) -> ModuleResult<ObjectCompiledData>
fn write_data_funcaddr(
&mut self,
_data: &mut ObjectCompiledData,
_offset: usize,
_what: FuncRef
)
[src]
&mut self,
_data: &mut ObjectCompiledData,
_offset: usize,
_what: FuncRef
)
fn write_data_dataaddr(
&mut self,
_data: &mut ObjectCompiledData,
_offset: usize,
_what: GlobalValue,
_usize: Addend
)
[src]
&mut self,
_data: &mut ObjectCompiledData,
_offset: usize,
_what: GlobalValue,
_usize: Addend
)
fn finalize_function(
&mut self,
_id: FuncId,
func: &ObjectCompiledFunction,
namespace: &ModuleNamespace<Self>
)
[src]
&mut self,
_id: FuncId,
func: &ObjectCompiledFunction,
namespace: &ModuleNamespace<Self>
)
fn get_finalized_function(&self, _func: &ObjectCompiledFunction)
[src]
fn finalize_data(
&mut self,
_id: DataId,
data: &ObjectCompiledData,
namespace: &ModuleNamespace<Self>
)
[src]
&mut self,
_id: DataId,
data: &ObjectCompiledData,
namespace: &ModuleNamespace<Self>
)
fn get_finalized_data(&self, _data: &ObjectCompiledData)
[src]
fn publish(&mut self)
[src]
fn finish(self) -> ObjectProduct
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ObjectBackend
impl !Send for ObjectBackend
impl !Sync for ObjectBackend
impl Unpin for ObjectBackend
impl !UnwindSafe for ObjectBackend
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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>,