pub struct SimpleJITBackend { /* private fields */ }
Expand description

A SimpleJITBackend implements Backend and emits code and data into memory where it can be directly called and accessed.

See the SimpleJITBuilder for a convenient way to construct SimpleJITBackend instances.

Trait Implementations

SimpleJIT compiled function and data objects may have outstanding relocations that need to be performed before the memory can be used. These relocations are performed within finalize_function and finalize_data.

SimpleJIT emits code and data into memory, and provides raw pointers to them.

SimpleJIT emits code and data into memory as it processes them, so it doesn’t need to provide anything after the Module is complete.

Create a new SimpleJITBackend.

SimpleJIT emits code and data into memory as it processes them, so it doesn’t need to provide anything after the Module is complete.

A builder for constructing Backend instances.
The results of “compiling” a data object.
The completed output artifact for a data object, if this is meaningful for the Backend. Read more
Return the TargetIsa to compile for.
Declare a function.
Declare a data object.
Define a function, producing the function body from the given Context. Read more
Define a zero-initialized data object of the given size. Read more
Write the address of what into the data for data at offset. data must refer to a defined data object. Read more
Write the address of what plus addend into the data for data at offset. data must refer to a defined data object. Read more
Perform all outstanding relocations on the given function. This requires all Local and Export entities referenced to be defined. Read more
Return the finalized artifact from the backend, if relevant.
Perform all outstanding relocations on the given data object. This requires all Local and Export entities referenced to be defined. Read more
Return the finalized artifact from the backend, if relevant.
“Publish” all finalized functions and data objects to their ultimate destinations.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.